forked from test-kitchen/dokken-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (65 loc) · 1.67 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
66
67
68
FROM ubuntu:21.10
LABEL maintainer="tsmith84@gmail.com"
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 ubuntu-21.10"
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"
ENV DEBIAN_FRONTEND noninteractive
RUN /usr/bin/apt-get update && \
/usr/bin/apt-get dist-upgrade -y && \
/usr/bin/apt-get -y install \
apt-transport-https \
apt-utils \
curl \
dbus \
cron \
dirmngr \
dmidecode \
gnupg \
iproute2 \
iptables \
iputils-ping \
kmod \
less \
linux-base \
locales \
lsb-release \
lsof \
net-tools \
netcat \
nmap \
perl \
procps \
snapd \
strace \
sudo \
systemd \
tcpdump \
telnet \
tzdata \
udev \
vim-tiny \
wget && \
/usr/bin/apt-get clean && \
/usr/bin/apt-get -y autoremove && \
rm -rf /tmp/* /var/tmp/* && \
# Don't start any optional services.
find /etc/systemd/system \
/lib/systemd/system \
-path '*.wants/*' \
\( -name '*getty*' \
-or -name '*apt-daily*' \
-or -name '*systemd-timesyncd*' \
-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 [ "/bin/systemd" ]