Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to speed up container builds #1088

Closed
wants to merge 6 commits into from
Closed

Conversation

blt
Copy link
Collaborator

@blt blt commented Nov 4, 2024

What does this PR do?

The lading container build right now is roughly 1 hour. This is a very long loop to wait on. Introduce cargo-chef and more aggressive caching to hopefully cut this time.

The lading container build right now is roughly 1 hour. This is a very
long loop to wait on. Introduce cargo-chef and more aggressive caching
to hopefully cut this time.

Signed-off-by: Brian L. Troutwine <[email protected]>
@blt blt requested a review from a team as a code owner November 4, 2024 17:45
Signed-off-by: Brian L. Troutwine <[email protected]>
Signed-off-by: Brian L. Troutwine <[email protected]>
Signed-off-by: Brian L. Troutwine <[email protected]>
@blt blt enabled auto-merge (squash) November 4, 2024 19:34
@GeorgeHahn
Copy link
Contributor

As a smoke test, could you push a small code change?

Dockerfile Outdated Show resolved Hide resolved
Signed-off-by: Brian L. Troutwine <[email protected]>
Signed-off-by: Brian L. Troutwine <[email protected]>
@scottopell
Copy link
Contributor

Does stripping the release binary help with compile time? I think its useful to preserve debug symbols as a general practice, unless there's a compelling reason.

@blt
Copy link
Collaborator Author

blt commented Nov 6, 2024

Does stripping the release binary help with compile time? I think its useful to preserve debug symbols as a general practice, unless there's a compelling reason.

Yeah it shaves ~4 minutes off. The lading binary has gotten fairly big.

On the whole, I'm meh on this change I think. It complicates the build non-trivially and it doesn't really improve build speed. An ARM build machine is what we need.

@blt blt disabled auto-merge November 6, 2024 23:03
@blt blt closed this Nov 6, 2024
blt added a commit that referenced this pull request Nov 6, 2024
This commit replaces #1088 and attempts to build a lading multi-platform
image by use of organization provided ARM native builders. Unsure if this'll
work but I figure it's worth a shot.

Signed-off-by: Brian L. Troutwine <[email protected]>
blt added a commit that referenced this pull request Nov 7, 2024
This commit replaces #1088 and attempts to build a lading multi-platform
image by use of organization provided ARM native builders. Unsure if this'll
work but I figure it's worth a shot.

Signed-off-by: Brian L. Troutwine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants