-
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.
- Update for Rocky Linux 8 - Additional example for Rocky Linux 9 Signed-off-by: Jonathon Anderson <[email protected]>
- Loading branch information
1 parent
cf54ccc
commit cc0663c
Showing
4 changed files
with
49 additions
and
4 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,26 @@ | ||
FROM ghcr.io/warewulf/warewulf-rockylinux:8.10 | ||
|
||
ARG MOFED_TGZ | ||
|
||
RUN dnf -y install \ | ||
kernel-{core,devel,headers,modules-extra} \ | ||
autoconf \ | ||
patch \ | ||
libtool \ | ||
rpm-build \ | ||
kernel-rpm-macros \ | ||
gdb-headless \ | ||
automake \ | ||
gcc-gfortran \ | ||
tcl \ | ||
tk \ | ||
libnl3 \ | ||
lsof \ | ||
numactl-libs \ | ||
python36 \ | ||
&& dnf -y remove $(dnf repoquery --installonly --latest-limit=-1 -q) \ | ||
&& dnf clean all | ||
|
||
RUN (cd /tmp && tar -xf /mnt/$MOFED_TGZ) \ | ||
&& (cd /tmp/MLNX_OFED_LINUX* && ./mlnxofedinstall --distro rhel8.10 --skip-repo --kernel $(rpm -q kernel-core --qf '%{version}-%{release}.%{arch}\n' | tail -n 1) --add-kernel-support --hpc) \ | ||
&& rm -rf /tmp/MLNX_OFED_LINUX* |
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,16 @@ | ||
# Rocky Linux with the Mellanox OFED | ||
|
||
This container definition demonstrates building a Rocky Linux based container | ||
incorporating the Mellanox OFED for InfiniBand support. | ||
|
||
This definition requires that the [Mellanox OFED .tgz][1] for the desired | ||
version be placed in the `rockylinux-8-mofed` directory. | ||
|
||
[1]: https://network.nvidia.com/products/infiniband-drivers/linux/mlnx_ofed/ | ||
|
||
With that in place, the container may be built with Podman. | ||
|
||
```shell | ||
|
||
podman build . --volume $PWD:/mnt:ro --build-arg MOFED_TGZ=MLNX_OFED_LINUX-24.10-0.7.0.0-rhel8.10-aarch64.tgz --file Containerfile | ||
``` |
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
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