Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Optimise target image for cross compilation #13

Merged
merged 5 commits into from
Feb 2, 2022
Merged

Optimise target image for cross compilation #13

merged 5 commits into from
Feb 2, 2022

Conversation

pjbgf
Copy link
Member

@pjbgf pjbgf commented Jan 31, 2022

Improvements:

  • Remove golang and XX tools from target image. The generated image now only contains the bare minimum files to consume the static libraries and their copyright notes.
  • The test image generates the target binaries through cross compilation, instead of emulated compilation at the target architectures. Using this approach should result in faster build times for SC/IAC in amd64/arm/v7.
  • Introduce make dev-test which allows for a check that the libraries can be used at development time at amd64 and arm64 linux targets.

Paulo Gomes added 5 commits January 31, 2022 11:10
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Aligns with what is being used for IAC and SC.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Allows local development without dependending on musl being installed on the development machine.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @pjbgf

@stefanprodan stefanprodan merged commit a05dea1 into fluxcd:libgit2-1.1.1 Feb 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants