One minute
Install Helm2 and 3 in container
FROM google/cloud-sdk:alpine
ENV HELM2_VERSION v2.14.3 ENV HELM3_VERSION v3.0.2 ENV SOPS_VERSION 3.3.1 ENV YQ_BIN_VERSION 2.4.0
COPY install.sh /tmp/install.sh RUN chmod +x /tmp/install.sh && /tmp/install.sh && rm -f /tmp/*
COPY entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]
#!/usr/bin/env bash
set -e set -x
apk update apk add ca-certificates openssl
gcloud components install -q beta kubectl
#helm 3 #must be installed first, and moved binary to helm3 curl -L -o /tmp/get_helm3.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 chmod 700 /tmp/get_helm3.sh /tmp/get_helm3.sh –version “${HELM3_VERSION}” && mv /usr/local/bin/helm /usr/local/bin/helm3 && /usr/local/bin/helm3 plugin install https://github.com/futuresimple/helm-secrets.git && /usr/local/bin/helm3 plugin install https://github.com/helm/helm-2to3
#helm 2 #must be installed second and binary is not moved, dependency on tiller plugin curl -L -o /tmp/get_helm2.sh https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get chmod 700 /tmp/get_helm2.sh /tmp/get_helm2.sh –version “${HELM2_VERSION}” && helm init –client-only && helm plugin install https://github.com/futuresimple/helm-secrets.git && helm plugin install https://github.com/rimusz/helm-tiller.git
#sops curl -L -o /usr/local/bin/sops https://github.com/mozilla/sops/releases/download/"${SOPS_VERSION}"/sops-"${SOPS_VERSION}".linux chmod 755 /usr/local/bin/sops
#yq curl -L -o /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/"${YQ_BIN_VERSION}"/yq_linux_amd64 chmod 755 /usr/local/bin/yq
#cleanup rm -rf /tmp/* rm -rf /var/cache/apk/*