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

reduce the CloudImage size when building #1163

Open
BussanQ opened this issue Feb 18, 2022 · 1 comment
Open

reduce the CloudImage size when building #1163

BussanQ opened this issue Feb 18, 2022 · 1 comment
Assignees
Labels
ClusterImage kind/feature Category issues or PRs related to feature request

Comments

@BussanQ
Copy link

BussanQ commented Feb 18, 2022

构建时尽量减小镜像大小,将不必要的文件进行压缩,在run的流程中才解压。
比如registry缓存镜像目录,可以build之后压缩,run的时候进行解压,需要满足镜像的layer机制。
bin目录下的二进制进行upx压缩后,kubernetes:v1.19.8镜像从774MB减小到391MB。

@BussanQ BussanQ added the kind/feature Category issues or PRs related to feature request label Feb 18, 2022
@fanux
Copy link
Collaborator

fanux commented Feb 18, 2022

I think when registry dir > 1G, trigger to compress the DIR.

@allencloud allencloud changed the title build构建时尽量减小镜像大小 reduce the CloudImage size when building May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ClusterImage kind/feature Category issues or PRs related to feature request
Projects
None yet
Development

No branches or pull requests

4 participants