-
Notifications
You must be signed in to change notification settings - Fork 216
Add support to build UBI based images #2203
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
base: main
Are you sure you want to change the base?
Conversation
build/docker/templates/intel-idxd-config-initcontainer.Dockerfile.in
Outdated
Show resolved
Hide resolved
|
Do we (still) have reasons to keep two somewhat different flavors in one Dockerfile. For the normal dockerhub publishing flows in our repo, we can get the tag from from any source |
To build UBI based images, set UBI=1 for the make command. For idxd or levelzero images, the build host needs to be registered to RH (subscription-manager) so packages can be installed from repositories. Signed-off-by: Tuomas Katila <[email protected]>
idxd-config-initcontainer and gpu-levelzero are not built as they require repositories which are not available in GH. Signed-off-by: Tuomas Katila <[email protected]>
295b932 to
d8b6dc6
Compare
|
Discussed with @mythi offline. I split the idxd and levelzero Dockerfiles into two (one for deb, one for rpm). This has the benefit of removing the if statements from the Dockerfiles. Building image works the same way: |
eero-t
left a comment
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.
Seems fine now, except for use of unstable repo, that should be explained.
Signed-off-by: Tuomas Katila <[email protected]>
d8b6dc6 to
bdf39d7
Compare
| ### | ||
| ARG CMD=gpu_levelzero | ||
| ## At the time of writing this, 9.6 is the latest supported version for Intel GPU repos. | ||
| ARG FINAL_BASE_UBI=registry.access.redhat.com/ubi9/ubi:9.6 |
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.
FINAL_BASE_UBI does not seem to be used in Makefile. Is that intentional?
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.
Yes. It's an ARG here only as it's used both in the build and the final phases.
Fixes: #1693