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} .
6 ARG KUBECTL_VERSION=1.19.16
7 ARG KUSTOMIZE_VERSION=v3.8.1
8 ARG KUBESEAL_VERSION=0.18.1
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 && \
21 RUN helm plugin install https://github.com/databus23/helm-diff && rm -rf /tmp/helm-*
24 RUN helm plugin install https://github.com/quintush/helm-unittest && rm -rf /tmp/helm-*
27 RUN helm plugin install https://github.com/chartmuseum/helm-push && rm -rf /tmp/helm-*
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
35 RUN apk add --update --no-cache jq yq
37 # Install for envsubst
38 RUN apk add --update --no-cache gettext
43 RUN chmod a+x deploy.sh