Skip to content

Conversation

@tkatila
Copy link
Contributor

@tkatila tkatila commented Jan 9, 2026

Fixes: #1693

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>
@tkatila tkatila requested review from bart0sh, kad and mythi as code owners January 9, 2026 14:54
COPY ./LICENSE /licenses/intel-device-plugins-for-kubernetes/LICENSE
FROM ${FINAL_BASE_DYN}

ARG UBI
Copy link
Contributor

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).
Copy link
Contributor

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"?

Suggested change
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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:

Suggested change
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}
Copy link
Contributor

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
Copy link
Contributor

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?

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

Successfully merging this pull request may close these issues.

intel-idxd-config-initcontainer cannot use UBI base images.

2 participants