-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
38 lines (32 loc) · 1.56 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
FROM ubuntu:18.04
RUN apt-get update && \
apt-get install -y wget gnupg2 unzip git jq \
apt-transport-https ca-certificates \
dnsutils curl gettext
ENV TERRAFORM_VERSION=0.12.23
ENV HELM_VERSION=2.14.3
ENV KUBECTL_VERSION=1.16.1
ENV GO_VERSION=1.14.2
# Install terraform
RUN wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
chmod +x terraform && \
mv terraform /usr/local/bin && \
rm -rf terraform_${TERRAFORM_VERSION}_linux_amd64.zip
# Install helm
RUN wget -q https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
tar zxfv helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
mv linux-amd64/helm /usr/local/bin && \
rm -rf linux-amd64 helm-v${HELM_VERSION}-linux-amd64.tar.gz
# Install kubectl
RUN wget -q https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \
chmod +x kubectl && \
mv kubectl /usr/local/bin/
# Install gcloud
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 && \
wget -O- https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && \
apt-get update && \
apt-get install -y google-cloud-sdk
#RUN mkdir ~/.ssh && \
# touch ~/.ssh/known_hosts && \
# ssh-keyscan github.com >> ~/.ssh/known_hosts