-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (18 loc) · 989 Bytes
/
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
FROM gcr.io/google.com/cloudsdktool/cloud-sdk:467.0.0-alpine
ARG KUBECTL_VERSION=1.23.4
ARG HELM_VERSION=3.10.1
ARG HELM_DIFF_VERSION=3.4.2
ARG HELMFILE_VERSION=0.145.2
# hadolint ignore=DL3018
RUN apk add --no-cache ca-certificates git bash curl jq \
&& gcloud components install gke-gcloud-auth-plugin --quiet --verbosity=none
ADD https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl /usr/local/bin/kubectl
RUN chmod +x /usr/local/bin/kubectl
ADD https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz /tmp
RUN tar -zxvf /tmp/helm* -C /tmp \
&& mv /tmp/linux-amd64/helm /bin/helm \
&& rm -rf /tmp/* \
&& helm plugin install https://github.com/databus23/helm-diff --version ${HELM_DIFF_VERSION}
ADD https://github.com/helmfile/helmfile/releases/download/v${HELMFILE_VERSION}/helmfile_${HELMFILE_VERSION}_linux_amd64.tar.gz /bin/helmfile
RUN chmod 0755 /bin/helmfile
CMD ["/usr/local/bin/helmfile", "--help"]