forked from GoogleCloudPlatform/cloud-builders-community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (21 loc) · 944 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/cloud-builders/gcloud
ARG HELM_VERSION=v3.0.1
ARG HELMFILE_VERSION=v0.94.1
COPY helmfile.bash /builder/helmfile.bash
# install curl
RUN apt-get update && \
apt-get install -y curl && \
apt-get --purge -y autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# install helm, helmfile and helm-diff plugin
RUN chmod +x /builder/helmfile.bash && \
mkdir -p /builder/helmfile && \
curl -SL https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -o helm.tar.gz && \
tar zxvf helm.tar.gz --strip-components=1 -C /builder/helmfile linux-amd64 && \
rm helm.tar.gz && \
curl -SsL https://github.com/roboll/helmfile/releases/download/${HELMFILE_VERSION}/helmfile_linux_amd64 > /builder/helmfile/helmfile && \
chmod 700 /builder/helmfile/helmfile && \
/builder/helmfile/helm plugin install https://github.com/databus23/helm-diff
ENV PATH=/builder/helmfile/:$PATH
ENTRYPOINT ["/builder/helmfile.bash"]