From 5f56e69dbb26483cc961bdb1be7b4841254a2866 Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Wed, 16 Feb 2022 04:49:19 +0000 Subject: [PATCH] Leverage the upstream containers and add kernel to container --- containers/Docker/centos-8 | 36 ++++++++++++++++++++++++++++++++++++ containers/Docker/rocky-8 | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 containers/Docker/centos-8 create mode 100644 containers/Docker/rocky-8 diff --git a/containers/Docker/centos-8 b/containers/Docker/centos-8 new file mode 100644 index 00000000..4df5070e --- /dev/null +++ b/containers/Docker/centos-8 @@ -0,0 +1,36 @@ +FROM docker.io/library/centos:8 + +RUN dnf install -y --allowerasing coreutils \ + cpio \ + dhclient \ + e2fsprogs \ + ethtool \ + findutils \ + initscripts \ + ipmitool \ + iproute \ + kernel-core \ + net-tools \ + network-scripts \ + nfs-utils \ + openssh-clients \ + openssh-server \ + pciutils \ + psmisc \ + rsync \ + rsyslog \ + strace \ + wget \ + which \ + words + +RUN sed -i 's/^root:.:/root::/g' /etc/passwd + +# These changes make it possible for users to ssh into nodes even +# if there is no shadow entry for the user +RUN sed -i -e '/^account.*pam_unix\.so\s*$/s/\s*$/\ broken_shadow/' /etc/pam.d/system-auth +RUN sed -i -e '/^account.*pam_unix\.so\s*$/s/\s*$/\ broken_shadow/' /etc/pam.d/password-auth + +RUN systemctl unmask console-getty.service dev-hugepages.mount \ + getty.target sys-fs-fuse-connections.mount systemd-logind.service \ + systemd-remount-fs.service diff --git a/containers/Docker/rocky-8 b/containers/Docker/rocky-8 new file mode 100644 index 00000000..9c500913 --- /dev/null +++ b/containers/Docker/rocky-8 @@ -0,0 +1,36 @@ +FROM docker.io/library/rockylinux:8 + +RUN dnf install -y --allowerasing coreutils \ + cpio \ + dhclient \ + e2fsprogs \ + ethtool \ + findutils \ + initscripts \ + ipmitool \ + iproute \ + kernel-core \ + net-tools \ + network-scripts \ + nfs-utils \ + openssh-clients \ + openssh-server \ + pciutils \ + psmisc \ + rsync \ + rsyslog \ + strace \ + wget \ + which \ + words + +RUN sed -i 's/^root:.:/root::/g' /etc/passwd + +# These changes make it possible for users to ssh into nodes even +# if there is no shadow entry for the user +RUN sed -i -e '/^account.*pam_unix\.so\s*$/s/\s*$/\ broken_shadow/' /etc/pam.d/system-auth +RUN sed -i -e '/^account.*pam_unix\.so\s*$/s/\s*$/\ broken_shadow/' /etc/pam.d/password-auth + +RUN systemctl unmask console-getty.service dev-hugepages.mount \ + getty.target sys-fs-fuse-connections.mount systemd-logind.service \ + systemd-remount-fs.service