File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed
elements/rocky-container-stackhpc Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ rocky-container
You can’t perform that action at this time.
0 commit comments