Last active
April 6, 2020 16:42
-
-
Save mikamboo/d92656d37b58633829babe3105a52cf8 to your computer and use it in GitHub Desktop.
Docker : Alpine Kubectl + EnvSubs + Helm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.10 | |
ENV K8S_RELEASE_BASE_URL=https://storage.googleapis.com/kubernetes-release/release | |
ENV K8S_STABLE_VERSION=https://storage.googleapis.com/kubernetes-release/release/stable.txt | |
ENV HELM_VERSION=v3.1.2 | |
RUN apk add --update --no-cache curl gettext libintl | |
RUN curl -LO ${K8S_RELEASE_BASE_URL}/$(curl -s $K8S_STABLE_VERSION)/bin/linux/amd64/kubectl && \ | |
chmod +x ./kubectl && mv ./kubectl /usr/local/bin/kubectl && \ | |
curl -LO https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz && \ | |
tar -zxvf helm-${HELM_VERSION}-linux-amd64.tar.gz && \ | |
mv linux-amd64/helm /usr/local/bin/helm && \ | |
rm -rf linux-amd64 helm-${HELM_VERSION}-linux-amd64.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment