Skip to content
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

cuda: Build using transient-root image #1

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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