forked from mrguitar/rhel9-bootc-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cuda: Build using transient-root image
This builds on top of the test image using ostreedev/ostree#3114 and related PRs.
- Loading branch information
Showing
1 changed file
with
3 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |