forked from test-kitchen/dokken-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
65 lines (62 loc) · 1.53 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM fedora:35
LABEL maintainer="[email protected]"
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.name="test-kitchen/dokken-images"
LABEL org.label-schema.description="A Docker container for testing fedora-35"
LABEL org.label-schema.vcs-url="https://github.com/test-kitchen/dokken-images"
LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.vendor="test-kitchen"
RUN 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 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" ]