-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
59 lines (49 loc) · 2.25 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
FROM alpine:3.12
ENV CLOUD_SDK_VERSION=321.0.0
ENV CLOUDSDK_PYTHON=python3
ENV TERRAFORM_VERSION=0.14.3
ENV HELM_VERSION=v3.4.2
ARG HELMFILE_VERSION=v0.135.0
ARG KUBECTL_VERSION=1.18.14
ENV SOPS_VERSION=3.6.1
ENV PATH /google-cloud-sdk/bin:$PATH
RUN apk --no-cache add \
curl \
python3 \
py3-crcmod \
bash \
libc6-compat \
git \
gnupg \
gettext \
coreutils \
openssh-client
RUN curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
tar xzf google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
rm google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
ln -s /lib /lib64 && \
gcloud config set core/disable_usage_reporting true && \
gcloud config set core/disable_prompts true && \
gcloud config set metrics/environment github_docker_image && \
gcloud config set component_manager/disable_update_check true
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \
chmod +x kubectl && mv kubectl /usr/bin/
RUN wget --quiet https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz \
&& tar -xzf helm-${HELM_VERSION}-linux-amd64.tar.gz \
&& mv linux-amd64/helm /usr/bin \
&& rm -rf linux-amd64
RUN curl -L -o /usr/bin/helmfile https://github.com/roboll/helmfile/releases/download/${HELMFILE_VERSION}/helmfile_linux_amd64 && \
chmod +x /usr/bin/helmfile
RUN curl -L -o /usr/local/bin/sops https://github.com/mozilla/sops/releases/download/v${SOPS_VERSION}/sops-v${SOPS_VERSION}.linux && \
chmod +x /usr/local/bin/sops
RUN mkdir -p ~/.helm/plugins && \
helm plugin install https://github.com/databus23/helm-diff && \
helm plugin install https://github.com/futuresimple/helm-secrets && \
helm plugin install https://github.com/hayorov/helm-gcs.git
RUN wget --quiet https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& mv terraform /usr/bin \
&& rm terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& rm -rf /tmp/* \
&& rm -rf /var/cache/apk/* \
&& rm -rf /var/tmp/*