From 17b2931f4f744f206a93325e6d13caff210196ee Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Thu, 1 Aug 2024 09:38:44 -0700 Subject: [PATCH] Remove EOL CentOS 7 and 8 These are both failing now that CentOS is dead Signed-off-by: Tim Smith --- .github/workflows/main.yaml | 2 -- centos-7/Dockerfile | 68 ----------------------------------- centos-8/Dockerfile | 70 ------------------------------------- 3 files changed, 140 deletions(-) delete mode 100644 centos-7/Dockerfile delete mode 100644 centos-8/Dockerfile diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index d9c6742..97876bd 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -17,8 +17,6 @@ jobs: - "almalinux-9" - "amazonlinux-2" - "amazonlinux-2023" - - "centos-7" - - "centos-8" - "centos-stream-9" - "debian-11" - "debian-12" diff --git a/centos-7/Dockerfile b/centos-7/Dockerfile deleted file mode 100644 index 796f2f7..0000000 --- a/centos-7/Dockerfile +++ /dev/null @@ -1,68 +0,0 @@ -FROM centos:7 -LABEL maintainer="sean@sean.io" -ARG BUILD_DATE -ARG VCS_REF - -LABEL org.opencontainers.image.created=$BUILD_DATE -LABEL org.opencontainers.image.title="test-kitchen/dokken-images" -LABEL org.opencontainers.image.description="A Docker container for testing centos-7" -LABEL org.opencontainers.image.source="https://github.com/test-kitchen/dokken-images" -LABEL org.opencontainers.image.revision=$VCS_REF -LABEL org.opencontainers.image.vendor="test-kitchen" -LABEL org.opencontainers.image.licenses="Apache-2.0" - -# hadolint ignore=DL3033 -RUN yum -y install yum-plugin-copr && \ - yum -y copr enable jsynacek/systemd-backports-for-centos-7 && \ - yum -y update systemd && \ - yum -y install \ - binutils \ - ca-certificates \ - cronie \ - curl \ - dmidecode \ - e2fsprogs \ - ethtool \ - file \ - gnupg2 \ - hostname \ - initscripts \ - iproute \ - iptables \ - iputils \ - less \ - lsof \ - nc \ - net-tools \ - nmap \ - openssl \ - passwd \ - procps \ - strace \ - sudo \ - system-lsb-core \ - systemd-sysv \ - tcpdump \ - telnet \ - util-linux \ - vim-minimal \ - wget \ - which && \ - yum upgrade -y && \ - yum clean all && \ - rm -rf /var/cache/yum && \ - rm -rf /var/log/* && \ - # Don't start any optional services. - find /etc/systemd/system \ - /lib/systemd/system \ - -path '*.wants/*' \ - \( -name '*getty*' \ - -or -name '*systemd-logind*' \ - -or -name '*systemd-vconsole-setup*' \ - -or -name '*systemd-readahead*' \ - -or -name '*udev*' \) \ - -exec rm -v {} \; && \ - systemctl set-default multi-user.target && \ - systemctl mask dev-hugepages.mount sys-fs-fuse-connections.mount network.service - -CMD [ "/usr/lib/systemd/systemd" ] diff --git a/centos-8/Dockerfile b/centos-8/Dockerfile deleted file mode 100644 index 8bd1e13..0000000 --- a/centos-8/Dockerfile +++ /dev/null @@ -1,70 +0,0 @@ -FROM centos:8 -LABEL maintainer="tim@mondoo.com" -ARG BUILD_DATE -ARG VCS_REF - -LABEL org.opencontainers.image.created=$BUILD_DATE -LABEL org.opencontainers.image.title="test-kitchen/dokken-images" -LABEL org.opencontainers.image.description="A Docker container for testing centos-8" -LABEL org.opencontainers.image.source="https://github.com/test-kitchen/dokken-images" -LABEL org.opencontainers.image.revision=$VCS_REF -LABEL org.opencontainers.image.vendor="test-kitchen" -LABEL org.opencontainers.image.licenses="Apache-2.0" - -# hadolint ignore=DL3041,SC2016 -RUN sed -i '/mirrorlist/d' /etc/yum.repos.d/*.repo && \ - sed -i -e 's/#baseurl/baseurl/g' /etc/yum.repos.d/*.repo && \ - sed -i -e 's/mirror.centos.org\/$contentdir\/\$releasever/mirrors.vcea.wsu.edu\/centos-vault\/8.5.2111/g' /etc/yum.repos.d/*.repo && \ - dnf -y install \ - binutils \ - ca-certificates \ - cronie \ - curl \ - dmidecode \ - e2fsprogs \ - ethtool \ - file \ - glibc-langpack-en \ - gnupg2 \ - hostname \ - initscripts \ - iproute \ - iptables \ - iputils \ - lsof \ - nc \ - net-tools \ - nmap \ - openssl \ - passwd \ - procps \ - strace \ - sudo \ - systemd-sysv \ - systemd-udev \ - redhat-lsb-core \ - tcpdump \ - telnet \ - util-linux \ - vim-minimal \ - wget \ - which && \ - dnf upgrade -y && \ - dnf clean all && \ - rm -rf /var/log/* && \ - # Don't start any optional services. - find /etc/systemd/system \ - /lib/systemd/system \ - -path '*.wants/*' \ - \( -name '*getty*' \ - -or -name '*systemd-logind*' \ - -or -name '*systemd-vconsole-setup*' \ - -or -name '*systemd-readahead*' \ - -or -name '*kdump*' \ - -or -name '*dnf-makecache*' \ - -or -name '*udev*' \) \ - -exec rm -v {} \; && \ - systemctl set-default multi-user.target && \ - systemctl mask dev-hugepages.mount sys-fs-fuse-connections.mount network.service - -CMD [ "/usr/lib/systemd/systemd" ]