diff --git a/examples/rockylinux-9.4-amdgpu/Containerfile b/examples/rockylinux-9.4-amdgpu/Containerfile new file mode 100644 index 0000000..d58f9a3 --- /dev/null +++ b/examples/rockylinux-9.4-amdgpu/Containerfile @@ -0,0 +1,7 @@ +FROM ghcr.io/warewulf/warewulf-rockylinux:9.4 + +RUN dnf -y install https://repo.radeon.com/amdgpu-install/6.2.2/el/9.4/amdgpu-install-6.2.60202-1.el9.noarch.rpm \ + && dnf clean all \ + && amdgpu-install -y --usecase=dkms \ + && ls /lib/modules | xargs -n1 /usr/lib/dkms/dkms_autoinstaller start \ + && dkms status diff --git a/examples/rockylinux-9.4-amdgpu/README.md b/examples/rockylinux-9.4-amdgpu/README.md new file mode 100644 index 0000000..baa5036 --- /dev/null +++ b/examples/rockylinux-9.4-amdgpu/README.md @@ -0,0 +1,15 @@ +# Rocky Linux with the AMD GPU driver + +https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/amdgpu-install.html + +This container definition demonstrates building a Rocky Linux based container +incorporating the AMDGPU driver for AMD GPU support. + +The container may be built with Podman. + +```shell + +podman build . +``` + +The host that builds the container does _not_ need to have a GPU installed.