-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
77 lines (68 loc) · 1.87 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
69
70
71
72
73
74
75
76
77
# Debugcontainer - custom image
#
# Thanks to
# - https://github.com/dbamaster/mssql-tools-alpine
# - https://github.com/ssro/dnsperf
FROM alpine:3.14.2
# Resolve DL4006 https://github.com/hadolint/hadolint/wiki/DL4006
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
# Labels
LABEL org.opencontainers.image.authors="Thomas Deutsch <[email protected]>"
# Repository pinning https://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management#Repository_pinning
RUN echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
echo "@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
COPY scripts/* /scripts/
# hadolint ignore=DL3017,DL3018
RUN chmod +x /scripts/* \
&& apk upgrade --no-cache \
&& apk add --no-cache \
bash \
bash-completion \
bind-libs \
bind-tools \
ca-certificates \
curl \
coreutils \
dnsperf@testing \
git \
htop \
iozone@testing \
jq \
lsof \
mariadb-client \
mc \
minio-client@testing \
mtr \
netcat-openbsd \
net-tools \
nfs-utils \
nmap \
openssl \
p7zip \
screen \
socat \
sslscan@testing \
tcpdump \
tcptraceroute \
# telnet \
tmux \
tree \
vim \
wget \
which \
fio \
ioping \
k9s \
openssh-client \
&& wget -q -O /bin/speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py \
&& chmod +x /bin/speedtest-cli \
&& mkdir /workdir \
&& chmod 777 /workdir
WORKDIR /workdir
# environment settings
ARG TZ="Europe/Zurich"
ENV PS1="\u@debugcontainer($(hostname)):\w\\$ " \
HOME="/workdir" \
TERM="xterm"
CMD ["/bin/sleep","inf"]