-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tim Smith <[email protected]>
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
FROM fedora:41 | ||
LABEL maintainer="[email protected]" | ||
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" ] |