Skip to content

Commit f5cc19b

Browse files
committed
Add rocky-container-stackhpc
Provides two containerfiles 9-stackhpc and 9-stackhpc-ofed Uses cloud-init with NM support from c9s and explicitly sets network renderer and activator to network-manager. 9-stackhpc-ofed installs OFED from NVIDIA yum repository
1 parent 293fc07 commit f5cc19b

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM docker.io/rockylinux/rockylinux:9
2+
3+
RUN dnf install -y findutils util-linux sudo python3 NetworkManager \
4+
https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/cloud-init-23.1.1-12.el9.noarch.rpm
5+
6+
RUN sed -i "s/renderers:.*/renderers: ['network-manager']\n activators: ['network-manager']/" /etc/cloud/cloud.cfg
7+
8+
RUN systemctl unmask console-getty.service dev-hugepages.mount \
9+
getty.target sys-fs-fuse-connections.mount systemd-logind.service \
10+
systemd-remount-fs.service
11+
12+
# /etc/machine-id needs to be populated for /bin/kernel-install to
13+
# correctly copy kernels into /boot. We will clear this out in the
14+
# final image.
15+
RUN systemd-machine-id-setup
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM docker.io/rockylinux/rockylinux:9
2+
3+
RUN dnf install -y findutils util-linux sudo python3 NetworkManager \
4+
https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/cloud-init-23.1.1-12.el9.noarch.rpm
5+
6+
RUN echo -n "system_info:\n network:\n renderers:['network-manager']\n activators:['network-manager']\n" > /etc/cloud/cloud.cfg.d/10-cloud-init-nm
7+
8+
RUN curl https://linux.mellanox.com/public/repo/mlnx_ofed/latest-23.07/rhel9.2/mellanox_mlnx_ofed.repo -o \
9+
/etc/yum.repos.d/mellanox_mlnx_ofed.repo && \
10+
rpm --import https://www.mellanox.com/downloads/ofed/RPM-GPG-KEY-Mellanox && \
11+
dnf install mlnx-ofed-all
12+
13+
RUN systemctl unmask console-getty.service dev-hugepages.mount \
14+
getty.target sys-fs-fuse-connections.mount systemd-logind.service \
15+
systemd-remount-fs.service
16+
17+
# /etc/machine-id needs to be populated for /bin/kernel-install to
18+
# correctly copy kernels into /boot. We will clear this out in the
19+
# final image.
20+
RUN systemd-machine-id-setup
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rocky-container

0 commit comments

Comments
 (0)