-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerfile-zh
80 lines (71 loc) · 1.48 KB
/
Dockerfile-zh
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
78
79
FROM python:3.7-alpine3.13
# Setting User and Home
USER root
WORKDIR /root
ENV HOSTNAME kube-debug
# Installing debug tools
COPY bin/ctop /usr/local/bin/ctop
COPY bin/etcdctl /usr/local/bin/etcdctl
COPY bin/termshark /usr/local/bin/termshark
COPY bin/kube-debug-ttyd /usr/local/bin/kube-debug-ttyd
RUN set -ex \
&& echo "http://mirrors.tuna.tsinghua.edu.cn/alpine/edge/main" > /etc/apk/repositories \
&& echo "http://mirrors.tuna.tsinghua.edu.cn/alpine/edge/testing" >> /etc/apk/repositories \
&& echo "http://mirrors.tuna.tsinghua.edu.cn/alpine/edge/community" >> /etc/apk/repositories \
&& apk update \
&& apk upgrade \
&& apk add --no-cache \
apache2-utils \
bash \
bash-completion \
bind-tools \
bird \
bridge-utils \
busybox-extras \
conntrack-tools \
curl \
dhcping \
drill \
ebtables \
ethtool \
file\
fping \
graphviz \
httpie \
iftop \
iperf \
iproute2 \
ipset \
iptables \
iptraf-ng \
iputils \
ipvsadm \
jq \
libc6-compat \
liboping \
mtr \
net-snmp-tools \
netcat-openbsd \
nftables \
ngrep \
nmap \
nmap-nping \
openssl \
scapy \
socat \
sox \
strace \
tcpdump \
tcptraceroute \
tshark \
util-linux \
vim \
git \
websocat \
wget
EXPOSE 3080/tcp 22/tcp
# bash Themes
COPY config/bashrc /root/.bashrc
COPY config/motd /etc/motd
# Running
CMD ["kube-debug-ttyd","-p","3080","bash"]