-
Notifications
You must be signed in to change notification settings - Fork 214
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
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 <tuomas.katila@intel.com>
idxd-config-initcontainer and gpu-levelzero are not built as they require repositories which are not available in GH. Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
| COPY ./LICENSE /licenses/intel-device-plugins-for-kubernetes/LICENSE | ||
| FROM ${FINAL_BASE_DYN} | ||
|
|
||
| ARG UBI |
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.
Set default value, like the other Docker files do.
| * intel-idxd-config-initcontainer | ||
| * intel-gpu-levelzero | ||
|
|
||
| To build these containers, the build host has to be registered via `subscription-manager`. Typically the host OS has to be RHEL or some rpm based Linux variant (e.g. Fedora). |
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.
If it refers to format, use RPM, if to file extension use ".rpm"?
| To build these containers, the build host has to be registered via `subscription-manager`. Typically the host OS has to be RHEL or some rpm based Linux variant (e.g. Fedora). | |
| To build these containers, the build host has to be registered via `subscription-manager`. Typically the host OS has to be RHEL or some other RPM based Linux variant (e.g. Fedora). |
| UBI=1 BUILDER=podman make <image-name> | ||
| ``` | ||
|
|
||
| Docker doesn't support installing RPM packages with `subscription-manager`, so podman needs to be used. |
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.
| Docker doesn't support installing RPM packages with `subscription-manager`, so podman needs to be used. | |
| Docker doesn't support installing RPM packages with `subscription-manager`, so Podman needs to be used. |
or:
| Docker doesn't support installing RPM packages with `subscription-manager`, so podman needs to be used. | |
| Docker doesn't support installing RPM packages with `subscription-manager`, so `podman` needs to be used. |
| BUILDER_NAME: ${{ matrix.builder }} | ||
| UBI: "1" | ||
| run: | | ||
| make ${IMAGE_NAME} BUILDER=${BUILDER_NAME} UBI=${UBI} |
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.
I don't see Makefile passing UBI variable to build-image.sh?
| ## The RedHat build tool does not allow additional image build parameters. | ||
| ARG BUILD_BASE=rockylinux:9 | ||
| ARG FINAL_BASE_DYN=registry.access.redhat.com/ubi9/ubi-minimal:9.3 | ||
| ARG UBI=1 |
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.
Default to 0, like the shell script does, in case UBI images require something extra to access?
Fixes: #1693