-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from anderbubble/nvidia-installer
Example container using the Nvidia .run installer
- Loading branch information
Showing
3 changed files
with
26 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 @@ | ||
*.run |
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,5 @@ | ||
FROM ghcr.io/warewulf/warewulf-rockylinux:9 | ||
|
||
RUN dnf -y install kernel-devel \ | ||
&& dnf clean all \ | ||
&& for dir in /usr/src/kernels/*; do /bin/sh /mnt/NVIDIA-Linux.run -X --ui=none --no-backup --no-questions --kernel-name=$(basename $dir); 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,20 @@ | ||
# Rocky Linux with the Nvidia driver (.run installer) | ||
|
||
This container definition demonstrates building a Rocky Linux based container | ||
incorporating the Nvidia driver from the `.run` installer. | ||
|
||
The container may be built with Podman. | ||
|
||
```shell | ||
|
||
podman build --volume <local .run installer>:/mnt/NVIDIA-Linux.run . --tag rockylinux-9-nvidia-installer | ||
``` | ||
|
||
This can then be imported directly into Warewulf. | ||
|
||
``` | ||
wwctl container import $(podman image mount rockylinux-9-nvidia-installer) rockylinux-9-nvidia-installer | ||
podman image unmount rockylinux-9-nvidia-installer | ||
``` | ||
|
||
The host that builds the container does _not_ need to have a GPU installed. |