-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example Rocky Linux containers including the Nvidia driver
Closes #31 Signed-off-by: Jonathon Anderson <[email protected]>
- Loading branch information
1 parent
13db06a
commit 3c694bb
Showing
2 changed files
with
20 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM ghcr.io/hpcng/warewulf-rockylinux:8 | ||
|
||
RUN dnf -y install epel-release \ | ||
&& dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel8/$(arch)/cuda-rhel8.repo \ | ||
&& dnf -y install kernel-{core,devel,headers,modules-extra} \ | ||
&& dnf -y remove $(dnf repoquery --installonly --latest-limit=-1 -q) \ | ||
&& dnf -y module install nvidia-driver:520-dkms \ | ||
&& dnf clean all | ||
|
||
RUN for module in $(dkms status | grep -o '^[^:]*'); do for kernel in $(cd /lib/modules; ls); do dkms build ${module} -k ${kernel}; done; done |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM ghcr.io/hpcng/warewulf-rockylinux:9 | ||
|
||
RUN dnf -y install epel-release \ | ||
&& dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel9/$(arch)/cuda-rhel9.repo \ | ||
&& dnf -y install kernel-{core,devel,headers,modules-extra} \ | ||
&& dnf -y remove $(dnf repoquery --installonly --latest-limit=-1 -q) \ | ||
&& dnf -y module install nvidia-driver:520-dkms \ | ||
&& dnf clean all | ||
|
||
RUN for module in $(dkms status | grep -o '^[^:]*'); do for kernel in $(cd /lib/modules; ls); do dkms build ${module} -k ${kernel}; done; done |