Skip to content

Commit 13f1fb0

Browse files
committed
Add rocky-container-stackhpc
Provides 9-stackhpc containerfile Uses cloud-init with NM support from c9s and explicitly sets network renderer and activator to network-manager. In addition to that install 'Minimal Install' dnf group to get the core packages installed - currently lacks microcode_ctl amongst others (so we don't update microcode on CPUs to mitigate vulnerabilities).
1 parent 293fc07 commit 13f1fb0

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

elements/ofed-rpm/README.rst

Whitespace-only changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
if [ "${DIB_DEBUG_TRACE:-1}" -gt 0 ]; then
4+
set -x
5+
fi
6+
set -u
7+
set -o pipefail
8+
9+
if [ -n "${DIB_OFED_REPO_URL:-}" ] ; then
10+
echo "OFED URL: ${DIB_OFED_REPO_URL}"
11+
curl ${DIB_OFED_REPO_URL} -o /etc/yum.repos.d/ofed.repo
12+
dnf -y install mlnx-ofed-all
13+
fi
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Based on https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/rocky-container/containerfiles/9
2+
3+
FROM docker.io/rockylinux/rockylinux:9
4+
5+
RUN dnf group install -y 'Minimal Install' --allowerasing && \
6+
dnf install -y findutils util-linux \
7+
https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/cloud-init-23.1.1-12.el9.noarch.rpm
8+
9+
RUN sed -i "s/renderers:.*/renderers: ['network-manager']\n activators: ['network-manager']/" /etc/cloud/cloud.cfg
10+
11+
RUN systemctl unmask console-getty.service dev-hugepages.mount \
12+
getty.target sys-fs-fuse-connections.mount systemd-logind.service \
13+
systemd-remount-fs.service
14+
15+
# /etc/machine-id needs to be populated for /bin/kernel-install to
16+
# correctly copy kernels into /boot. We will clear this out in the
17+
# final image.
18+
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)