Skip to content

Commit

Permalink
Add Fedora 41
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <tsmith84@gmail.com>
  • Loading branch information
tas50 committed Jul 1, 2024
1 parent 034e410 commit 67f9168
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- "eurolinux-9"
- "fedora-39"
- "fedora-40"
- "fedora-41"
- "fedora-latest"
- "opensuse-leap-15"
- "opensuse-leap-15.3"
Expand Down
68 changes: 68 additions & 0 deletions fedora-41/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit 67f9168

Please sign in to comment.