-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (25 loc) · 934 Bytes
/
Dockerfile
File metadata and controls
34 lines (25 loc) · 934 Bytes
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
FROM google/cloud-sdk:alpine
LABEL maintainer Justin Liu <justintwd@gmail.com>
RUN apk --update add --no-cache --virtual \
build-dependencies \
build-base \
ca-certificates \
openssl \
py-openssl && \
rm -rf /var/cache/apk/*
ENV HELM_VERSION v2.9.0
ENV HELM_GCS_PLUGIN_VERSION 0.1.4
RUN adduser -S gkh gkh
RUN gcloud components install \
docker-credential-gcr -q --no-user-output-enabled
RUN gcloud components install kubectl -q --no-user-output-enabled
RUN curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh
RUN chmod 700 get_helm.sh
RUN ./get_helm.sh --version $HELM_VERSION
RUN mkdir helm-bulk-plugin
ENV HELM_HOME /home/gkh/.helm/
USER gkh
RUN helm init --client-only
RUN helm plugin install https://github.com/nouney/helm-gcs --version $HELM_GCS_PLUGIN_VERSION
RUN helm plugin install https://github.com/ovotech/helm-bulk
CMD [ "tail", "-f", "/dev/null" ]