-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
49 lines (39 loc) · 1.17 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
FROM alpine
ARG K8S_VERSION=1.22.0
ARG KIND_VERSION=0.11.1
ENV K8S_VERSION ${K8S_VERSION}
ENV KIND_VERSION ${KIND_VERSION}
RUN apk add --no-cache \
bash \
curl \
docker \
git \
jq \
openssl \
vim \
wget \
nano \
ncurses \
unzip \
tar \
gettext
# Install kubectl
RUN wget "https://dl.k8s.io/release/v${K8S_VERSION}/bin/linux/amd64/kubectl"; \
chmod +x ./kubectl; \
mv ./kubectl /usr/local/bin/kubectl
# Install kind
RUN wget "https://github.com/kubernetes-sigs/kind/releases/download/v${KIND_VERSION}/kind-linux-amd64"; \
chmod +x ./kind-linux-amd64; \
mv ./kind-linux-amd64 /usr/local/bin/kind
# Install kubens and kubectx
RUN wget https://raw.githubusercontent.com/ahmetb/kubectx/master/kubens; \
wget https://raw.githubusercontent.com/ahmetb/kubectx/master/kubectx; \
chmod +x kubens kubectx; \
mv kubens kubectx /usr/local/bin
RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3; \
chmod 700 get_helm.sh; \
./get_helm.sh; \
rm get_helm.sh
COPY bootstrap.sh config.yml /root/
RUN chmod +x /root/bootstrap.sh
ENTRYPOINT [ "/root/bootstrap.sh" ]