-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add minimal ubi8 container #61
base: main
Are you sure you want to change the base?
Conversation
23e137c
to
3b184e2
Compare
d626e53
to
1fdf538
Compare
python* \ | ||
dnf* | ||
|
||
microdnf remove \ |
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.
does this ensure there are no broken dependencies? i.e remaining packages in the cuda:12.5.0-base-ubi8 might have dependencies on packages removed with the minimal list as a reference?
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.
In my testing, microdnf
still respects package dependencies, meaning that if x
depends on y
, one cannot remove y
.
For example, let's say we want to remove openssl
we see the following in the image:
$ microdnf remove openssl*
error: Could not depsolve transaction; 1 problem detected:
Problem: package curl-7.61.1-34.el8.x86_64 from @System requires libcrypto.so.1.1()(64bit), but none of the providers can be installed
- package curl-7.61.1-34.el8.x86_64 from @System requires libssl.so.1.1()(64bit), but none of the providers can be installed
- conflicting requests
- problem with installed package curl-7.61.1-34.el8.x86_64
Signed-off-by: Evan Lezar <[email protected]>
1fdf538
to
f78ed87
Compare
I have created NVIDIA/k8s-device-plugin#813 with a POC for this work. Let's keep this open while we iterate on that change. |
This change adds tooling to produce a minimal container image.
The
redhat/ubi8-minimal
image is queried for a list of packages and thenvidia/cuda:12.5.0-base-ubi8
image is updated to match the packages in the minimal image.This is done by:
cuda-*
packages and repositoriesmicrodnf
dnf
andpython
packagesRunning
docker scout
we see:Which matches the output for
redhat/uib8-minimal
For comparison, the
nvidia/cuda:12.5.0-base-ubi8
images has the following report: