Skip to content

Commit c5bf10d

Browse files
committed
Add rhel9 base for vGPU-manager containers
Close #453 Signed-off-by: Michele Valsecchi <[email protected]>
1 parent 87517d2 commit c5bf10d

File tree

4 files changed

+56
-2
lines changed

4 files changed

+56
-2
lines changed

Makefile

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,16 @@ build-vgpuguest-%: DOCKERFILE = $(CURDIR)/$(SUBDIR)/Dockerfile
243243
# Remove '-grid' substring in the image tag
244244
build-vgpuguest-%: DRIVER_TAG = $(DRIVER_VERSION:-grid=)
245245

246-
build-vgpuguest-rhcos%: SUBDIR = rhel8
246+
# Source of truth https://access.redhat.com/articles/6907891
247+
build-vgpuguest-rhcos4.12%: SUBDIR = rhel8
248+
build-vgpuguest-rhcos4.13%: SUBDIR = rhel8
249+
build-vgpuguest-rhcos4.14%: SUBDIR = rhel8
250+
build-vgpuguest-rhcos4.15%: SUBDIR = rhel9
251+
build-vgpuguest-rhcos4.16%: SUBDIR = rhel9
252+
build-vgpuguest-rhcos4.17%: SUBDIR = rhel9
253+
build-vgpuguest-rhcos4.18%: SUBDIR = rhel9
254+
build-vgpuguest-rhcos4.19%: SUBDIR = rhel9
255+
build-vgpuguest-rhcos4.20%: SUBDIR = rhel9
247256

248257
$(VGPU_GUEST_DRIVER_BUILD_TARGETS):
249258
DOCKER_BUILDKIT=1 \
@@ -280,7 +289,16 @@ build-vgpuhost-%: DIST = $(word 3,$(subst -, ,$@))
280289
build-vgpuhost-%: SUBDIR = $(word 3,$(subst -, ,$@))
281290
build-vgpuhost-%: DOCKERFILE = $(CURDIR)/vgpu-manager/$(SUBDIR)/Dockerfile
282291

283-
build-vgpuhost-rhcos%: SUBDIR = rhel8
292+
# Source of truth https://access.redhat.com/articles/6907891
293+
build-vgpuhost-rhcos4.12%: SUBDIR = rhel8
294+
build-vgpuhost-rhcos4.13%: SUBDIR = rhel8
295+
build-vgpuhost-rhcos4.14%: SUBDIR = rhel8
296+
build-vgpuhost-rhcos4.15%: SUBDIR = rhel9
297+
build-vgpuhost-rhcos4.16%: SUBDIR = rhel9
298+
build-vgpuhost-rhcos4.17%: SUBDIR = rhel9
299+
build-vgpuhost-rhcos4.18%: SUBDIR = rhel9
300+
build-vgpuhost-rhcos4.19%: SUBDIR = rhel9
301+
build-vgpuhost-rhcos4.20%: SUBDIR = rhel9
284302

285303
$(VGPU_HOST_DRIVER_BUILD_TARGETS):
286304
DOCKER_BUILDKIT=1 \

vgpu-manager/rhel9/Dockerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM nvcr.io/nvidia/cuda:13.0.1-base-ubi9
2+
3+
ARG DRIVER_VERSION
4+
ENV DRIVER_VERSION=$DRIVER_VERSION
5+
ARG DRIVER_ARCH=x86_64
6+
ENV DRIVER_ARCH=$DRIVER_ARCH
7+
8+
RUN mkdir -p /driver
9+
WORKDIR /driver
10+
COPY NVIDIA-Linux-${DRIVER_ARCH}-${DRIVER_VERSION}-vgpu-kvm.run .
11+
RUN chmod +x NVIDIA-Linux-${DRIVER_ARCH}-${DRIVER_VERSION}-vgpu-kvm.run
12+
13+
COPY nvidia-driver /usr/local/bin
14+
COPY ocp_dtk_entrypoint /usr/local/bin
15+
16+
LABEL io.k8s.display-name="NVIDIA vGPU Manager Container"
17+
LABEL name="NVIDIA vGPU Manager Container"
18+
LABEL vendor="NVIDIA"
19+
LABEL version="${DRIVER_VERSION}"
20+
LABEL release="N/A"
21+
LABEL summary="Provision the NVIDIA vGPU Manager through containers"
22+
LABEL description="See summary"
23+
24+
# Install / upgrade packages here that are required to resolve CVEs
25+
ARG CVE_UPDATES
26+
RUN if [ -n "${CVE_UPDATES}" ]; then \
27+
yum update -y ${CVE_UPDATES} && \
28+
rm -rf /var/cache/yum/*; \
29+
fi
30+
31+
# Add NGC DL license from the CUDA image
32+
RUN mkdir /licenses && mv /NGC-DL-CONTAINER-LICENSE /licenses/NGC-DL-CONTAINER-LICENSE
33+
34+
ENTRYPOINT ["nvidia-driver", "init"]

vgpu-manager/rhel9/nvidia-driver

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../rhel8/nvidia-driver
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../rhel8/ocp_dtk_entrypoint

0 commit comments

Comments
 (0)