From 67f91686486c70d124fba3f785ba7287e21e0cf3 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 1 Jul 2024 11:45:48 -1000 Subject: [PATCH] Add Fedora 41 Signed-off-by: Tim Smith --- .github/workflows/main.yaml | 1 + fedora-41/Dockerfile | 68 +++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 fedora-41/Dockerfile diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index d2f3185..def5835 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -28,6 +28,7 @@ jobs: - "eurolinux-9" - "fedora-39" - "fedora-40" + - "fedora-41" - "fedora-latest" - "opensuse-leap-15" - "opensuse-leap-15.3" diff --git a/fedora-41/Dockerfile b/fedora-41/Dockerfile new file mode 100644 index 0000000..dc3ed41 --- /dev/null +++ b/fedora-41/Dockerfile @@ -0,0 +1,68 @@ +FROM fedora:41 +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 Fedora 41" +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 +RUN mkdir /var/cache/libdnf5 && \ + dnf -y install \ + binutils \ + ca-certificates \ + cronie \ + curl \ + dmidecode \ + ethtool \ + file \ + fipscheck \ + gnupg2 \ + hostname \ + initscripts \ + iproute \ + iptables \ + iputils \ + less \ + lsof \ + nc \ + net-tools \ + nmap \ + openssl \ + passwd \ + procps \ + strace \ + sudo \ + systemd-sysv \ + systemd-udev \ + tcpdump \ + telnet \ + util-linux \ + vim-minimal \ + wget \ + libxcrypt-compat \ + 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 systemd-journal-flush.service + +CMD [ "/usr/lib/systemd/systemd" ]