From 7c4df443f2380bb742a4dac96a51c04085a2d39f Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 11 Dec 2023 10:06:45 -0500 Subject: [PATCH] cude: Build using transient-root image This builds on top of the test image using https://github.com/ostreedev/ostree/pull/3114 and related PRs. --- nvidia/cuda-containerfile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/nvidia/cuda-containerfile b/nvidia/cuda-containerfile index d4dae3d..42273bd 100644 --- a/nvidia/cuda-containerfile +++ b/nvidia/cuda-containerfile @@ -1,19 +1,14 @@ #FROM ubi9/ubi-init #FROM quay.io/mrguitar/rhel-94-soe-bootc -FROM localhost/rhel-93-bootc +#FROM localhost/rhel-93-bootc #FROM quay.io/centos-boot/centos-tier-1-dev:stream9 - - -#rpm-ostree workaround -RUN rm /usr/local && mkdir /usr/local - +FROM quay.io/cgwalters/centos-bootc-dev:stream9 ADD cuda-rhel9.repo /etc/yum.repos.d/cuda-rhel9.repo -ADD rhel9.repo /etc/yum.repos.d/rhel9.repo +ADD rhel93.repo /etc/yum.repos.d/rhel9.repo #add nvidia drivers (requires either a released rhel kernel in the base image or dkms) and cuda toolkit RUN dnf install -y nvidia-driver nvidia-gds cuda-toolkit && rm /var/log/*.log /var/lib/dnf -rf #rpm-ostree workaround #RUN rm -rf var/lib/xkb/README.compiled -RUN ostree container commit