-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (29 loc) · 1.04 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
FROM google/cloud-sdk:alpine
ENV XDG_DATA_HOME=/helm3home
# Install openssl
RUN apk add --no-cache openssl
# Install Helm
RUN curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh
RUN chmod +x get_helm.sh
RUN ./get_helm.sh -v v3.11.2
# Create Helm folder
RUN mkdir /helm3home
RUN chmod 775 -R /helm3home
# Install Helm GCS plugin
RUN helm plugin install https://github.com/viglesiasce/helm-gcs.git --version v0.2.0
# Install yq
RUN curl -L https://github.com/mikefarah/yq/releases/download/2.4.1/yq_linux_amd64 > /usr/local/bin/yq
RUN chmod +x /usr/local/bin/yq
# Install kubectl
RUN gcloud components install kubectl
# Copy scripts and make executable
COPY deploy.sh /deploy.sh
COPY applicationName.sh /applicationName.sh
RUN chmod +x /deploy.sh && chmod +x /applicationName.sh
WORKDIR /github/workspace/
# Temporary fix git permission issue
# https://github.com/actions/runner/issues/2033
# https://gloot.atlassian.net/browse/GL-3833
RUN chown -R $(id -u):$(id -g) $PWD
RUN chmod 777 -R $PWD
ENTRYPOINT [ "/deploy.sh" ]