-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
72 lines (63 loc) · 1.99 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
FROM ubuntu:18.04
RUN echo "Start apt-get update" && \
apt-get update -qq && \
echo "Finish apt-get update" && \
echo "Start apt-get install" && \
apt-get install -qqy --no-install-recommends\
apt-transport-https \
apt-utils \
build-essential \
curl \
ca-certificates \
git \
lsb-release \
python-all \
rlwrap \
vim \
nano \
sudo \
jq \
zsh \
wget \
ssh \
iputils-ping \
dnsutils \
telnet \
tcpdump \
nginx \
locales && \
echo "Finish apt-get install" && \
echo "Start set locale" && \
locale-gen en_US.UTF-8 && \
update-locale LANG=en_US.UTF-8 && \
echo "Finish set locale" && \
echo "Start install azure cli" && \
curl -sL https://aka.ms/InstallAzureCLIDeb | bash && \
echo "Finish install azure cli" && \
echo "Start install kubectl" && \
az aks install-cli && \
echo "Finish install kubectl" && \
echo "Start install zsh" && \
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true && \
chsh -s /usr/bin/zsh root && \
echo "Finish install zsh" && \
echo "Start install krew" && \
set -x; cd "$(mktemp -d)" && \
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/download/v0.3.3/krew.{tar.gz,yaml}" && \
tar zxvf krew.tar.gz && \
KREW=./krew-"$(uname | tr '[:upper:]' '[:lower:]')_amd64" && \
"$KREW" install --manifest=krew.yaml --archive=krew.tar.gz && \
"$KREW" update && \
echo "Finish install krew" && \
echo "Start install krew extensions" && \
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" && \
kubectl krew install whoami && \
echo "Finish install krew extensions"
ADD zshrc /root/.zshrc
ADD utils /root/utils
ADD web/config/default-8080 /etc/nginx/sites-enabled/default-8080
ADD web/html/html-8080 /var/www/html-8080
ADD start.sh /start.sh
RUN chmod +rx /start.sh
ENV LC_ALL="en_US.UTF-8"
CMD [ "/start.sh" ]