-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (29 loc) · 1.11 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
FROM gcr.io/gcp-ushi-carbon-svcs-dev/google/cloud-sdk:298.0.0-alpine
RUN apk update && \
apk add ca-certificates wget openssl gettext libintl bash && \
rm -rf /var/cache/apk/* && \
update-ca-certificates
ENV KUBE_LATEST_VERSION v1.18.0
ENV HELM_VERSION=v3.2.3
RUN mkdir components && \
curl -LO https://dl.k8s.io/release/$KUBE_LATEST_VERSION/bin/linux/amd64/kubectl && \
chmod +x /kubectl && \
mv /kubectl /usr/local/bin/ && \
curl -LO https://get.helm.sh/helm-$HELM_VERSION-linux-amd64.tar.gz && \
tar -zxvf helm-$HELM_VERSION-linux-amd64.tar.gz && \
chmod +x linux-amd64/helm && \
mv linux-amd64/helm /usr/local/bin/helm && \
apk update && \
apk add jq
ENV HELMFILE_VERSION=v0.138.7
RUN wget https://github.com/roboll/helmfile/releases/download/$HELMFILE_VERSION/helmfile_linux_amd64 && \
mv helmfile_linux_amd64 /usr/local/bin/helmfile && \
chmod +x /usr/local/bin/helmfile
RUN /usr/sbin/adduser -u 10001 carbon -D
WORKDIR /components
COPY . .
RUN chown -R carbon .
RUN chmod +x deploy.sh
RUN chmod +x gen-cert.sh
RUN chmod +x gen-cert-carbonelastic.sh
USER 10001