Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New example definition file, rockylinux-mofed #42

Merged
merged 1 commit into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ These containers are published on the [GitHub container registry][1].
Additional container definitions that are not actively built and published, but
may still be useful.

* [Rocky Linux 9 with SELinux][examples/rockylinux-9-selinux]
* [Rocky Linux 9 with SELinux](examples/rockylinux-9-selinux)
* [Rocky Linux 9 with Mellanox OFED](examples/rockylinux-9-mofed)

You can build any of these (or the other container definitions) locally for
import into Warewulf v4.
Expand Down
11 changes: 11 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Example container definitions

The container definitions in the `examples/` directory aren't pre-built as
containers published by Warewulf.

Typical reasons may include:

* The resultant container would be too large.
* The definition is too specific to be broadly useful, and covering a wide
enough set of versions would be impractical.
* The definition uses software that may not be redistributed.
25 changes: 25 additions & 0 deletions examples/rockylinux-9-mofed/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM ghcr.io/hpcng/warewulf-rockylinux:9.2

RUN dnf -y install \
gcc \
patch \
libtool \
lsof \
kernel-rpm-macros \
make \
rpm-build \
gdb-headless \
python3-devel \
elfutils-libelf-devel \
gcc-gfortran \
tk \
kernel-{core,devel,headers,modules-extra} \
perl-sigtrap \
numactl-libs \
tcsh \
&& dnf -y remove $(dnf repoquery --installonly --latest-limit=-1 -q) \
&& dnf clean all

RUN (cd /tmp && tar -xf /mnt/MLNX_OFED_LINUX-5.8-3.0.7.0-rhel9.2-x86_64.tgz) \
&& (cd /tmp/MLNX_OFED_LINUX-5.8-3.0.7.0-rhel9.2-x86_64 && ./mlnxofedinstall --distro rhel9.2 --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*
16 changes: 16 additions & 0 deletions examples/rockylinux-9-mofed/README.md
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-9-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 --file Containerfile
```