-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 1.02 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
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
dnsutils \
gnupg \
iperf \
iperf3 \
iproute2 \
iputils-ping \
jq \
python \
speedtest-cli \
stress \
tcpdump \
traceroute \
vim
RUN curl -fsSLo \
/usr/share/keyrings/kubernetes-archive-keyring.gpg \
https://packages.cloud.google.com/apt/doc/apt-key.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] \
https://apt.kubernetes.io/ kubernetes-xenial main" | tee \
/etc/apt/sources.list.d/kubernetes.list
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] \
https://packages.cloud.google.com/apt cloud-sdk main" | tee -a \
/etc/apt/sources.list.d/google-cloud-sdk.list
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key \
--keyring /usr/share/keyrings/cloud.google.gpg add -
RUN apt-get update && apt-get install -y \
google-cloud-sdk \
kubectl
CMD ["sleep", "86400"]