Skip to content

Commit

Permalink
cuda: Build using transient-root image
Browse files Browse the repository at this point in the history
This builds on top of the test image using
ostreedev/ostree#3114
and related PRs.
  • Loading branch information
cgwalters committed Dec 11, 2023
1 parent 6e8b1ff commit b11aed5
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions nvidia/cuda-containerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b11aed5

Please sign in to comment.