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

COSA container images have /root/.cache/go-build/ with 2.4GB content #2872

Closed
travier opened this issue May 23, 2022 · 3 comments · Fixed by #2874
Closed

COSA container images have /root/.cache/go-build/ with 2.4GB content #2872

travier opened this issue May 23, 2022 · 3 comments · Fixed by #2874
Assignees
Labels
bug Something isn't working good first issue Good for newcomers good-first-issue good issue for someone new jira for syncing to jira

Comments

@travier
Copy link
Member

travier commented May 23, 2022

Bug Report

COSA container images have /root/.cache/go-build/ with 2.4GB content. This is probably a left over from the go builds that we should cleanup at the right time to make the image smaller.

@travier travier added bug Something isn't working good first issue Good for newcomers good-first-issue good issue for someone new labels May 23, 2022
@travier
Copy link
Member Author

travier commented May 23, 2022

Cleaning that up in make_and_makeinstall from build.sh should do it.

@jschintag
Copy link
Contributor

Or adding it to the cleanup section in the dockerfile. But then we should also squash the image, so we actually see a smaller image.

@cgwalters
Copy link
Member

Or, switch to a multi-stage build.

@travier travier added the jira for syncing to jira label May 24, 2022
@travier travier self-assigned this May 24, 2022
travier added a commit to travier/coreos-assembler that referenced this issue May 24, 2022
Clean up Go cache to keep the COSA image as small as possible.

Fixes: coreos#2872
dustymabe pushed a commit that referenced this issue May 25, 2022
Clean up Go cache to keep the COSA image as small as possible.

Fixes: #2872
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers good-first-issue good issue for someone new jira for syncing to jira
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants