update to use helm 3 to be consistent with RIC installation; also remove those utilit...
[it/test.git] / XTesting / richelm / Dockerfile
1 FROM alpine
2
3 # Ignore to update versions here
4 # docker build --no-cache --build-arg KUBECTL_VERSION=${tag} --build-arg HELM_VERSION=${helm} --build-arg KUSTOMIZE_VERSION=${kustomize_version} -t ${image}:${tag} .
5 ARG HELM_VERSION=3.5.4
6 ARG KUBECTL_VERSION=1.19.16
7 ARG KUSTOMIZE_VERSION=v3.8.1
8 ARG KUBESEAL_VERSION=0.18.1
9
10 # Install helm (latest release)
11 # ENV BASE_URL="https://storage.googleapis.com/kubernetes-helm"
12 ENV BASE_URL="https://get.helm.sh"
13 ENV TAR_FILE="helm-v${HELM_VERSION}-linux-amd64.tar.gz"
14 RUN apk add --update --no-cache curl ca-certificates bash git && \
15     curl -sL ${BASE_URL}/${TAR_FILE} | tar -xvz && \
16     mv linux-amd64/helm /usr/bin/helm && \
17     chmod +x /usr/bin/helm && \
18     rm -rf linux-amd64
19
20 # add helm-diff
21 RUN helm plugin install https://github.com/databus23/helm-diff && rm -rf /tmp/helm-*
22
23 # add helm-unittest
24 RUN helm plugin install https://github.com/quintush/helm-unittest && rm -rf /tmp/helm-*
25
26 # add helm-push
27 RUN helm plugin install https://github.com/chartmuseum/helm-push && rm -rf /tmp/helm-*
28
29 # Install kubectl (same version of aws esk)
30 RUN curl -sLO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \
31     mv kubectl /usr/bin/kubectl && \
32     chmod +x /usr/bin/kubectl
33
34 # Install jq
35 RUN apk add --update --no-cache jq yq
36
37 # Install for envsubst
38 RUN apk add --update --no-cache gettext
39
40 WORKDIR /apps
41 COPY . .
42
43 RUN chmod a+x deploy.sh
44 CMD ./deploy.sh