-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
docker: Switch to using ubi8/ubi-minimal #55467
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @bdarnell and @jlinder)
build/deploy/Dockerfile, line 1 at r1 (raw file):
FROM registry.access.redhat.com/ubi8/ubi-minimal AS builder
Maybe just use the non-minimal UBI as the builder? (unless you want to use one of the tricks from my other comment to avoid the separate builder image)
build/deploy/Dockerfile, line 11 at r1 (raw file):
# For deployment, we need the following installed (they are installed # by default in RedHat UBI standard):
This comment could use an update.
Before: We were using ubi8/ubi because we hadn't figured out how to get tzdata into the ubi8/ubi-minimal image. Why: The ubi8/ubi-minimal image is smaller and now has everything we need. Now: The docker image is based on ubi8/ubi-minimal. The required tzdata files are acquired by rpm erasing the tzdata package and then reinstalling it (there is no `microdnf reinstall` command in the current image). Release note (backward-incompatible change): The docker image is now based on RedHat's ubi8/ubi-minimal image (instead of ubi8/ubi). This image is smaller.
4676a09
to
6b64490
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @bdarnell)
build/deploy/Dockerfile, line 1 at r1 (raw file):
Previously, bdarnell (Ben Darnell) wrote…
Maybe just use the non-minimal UBI as the builder? (unless you want to use one of the tricks from my other comment to avoid the separate builder image)
I switched to using the rpm erase hack you noted in #54812.
build/deploy/Dockerfile, line 11 at r1 (raw file):
Previously, bdarnell (Ben Darnell) wrote…
This comment could use an update.
Updated.
Josh and Joel, The change to using the |
TFTR! bors r=bdarnell |
Tested on our Helm chart and on CC, both work as expected with this change. |
Build succeeded: |
Before: We were using ubi8/ubi because we hadn't figured out how to get
tzdata into the ubi8/ubi-minimal image.
Why: The ubi8/ubi-minimal image is smaller and now has everything we
need.
Now: The docker image is based on ubi8/ubi-minimal. The required tzdata
files are acquired by rpm erasing the tzdata package and then
reinstalling it (there is no
microdnf reinstall
command in the currentimage).
Release note (backward-incompatible change): The docker image is now
based on RedHat's ubi8/ubi-minimal image (instead of ubi8/ubi). This
image is smaller.