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

Decrease final image size #12

Open
fabiendupont opened this issue Jan 17, 2022 · 0 comments
Open

Decrease final image size #12

fabiendupont opened this issue Jan 17, 2022 · 0 comments

Comments

@fabiendupont
Copy link
Member

With the current Dockerfile, based on ubi8/ubi, the final image weighs 273 MB.
I have run some tests with other flavors of UBI:

  • With ubi8/ubi-minimal, the final image weighs 146 MB.
  • With ubi8/ubi-micro, the final image weighs 77 MB.

The size of the image doesn't have an impact on performance, but will save space both in the registry and on the nodes where pods run.

The downside of ubi8/ubi-micro is that it doesn't ship the tar command that is used by must-gather to copy files from an existing pod with kubectl cp. However, if must-gather doesn't need to pull files from the pod, tar becomes optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant