Skip to content

Instantly share code, notes, and snippets.

@vincent-zurczak
Created March 21, 2017 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vincent-zurczak/efe30d80513543ba4aa498e558e66ad8 to your computer and use it in GitHub Desktop.
Save vincent-zurczak/efe30d80513543ba4aa498e558e66ad8 to your computer and use it in GitHub Desktop.
Create a Docker container with both kubectl and helm
# Based on https://github.com/wernight/docker-kubectl
# Both kubectl and helm are available when we launch the image (docker run -ti this-image).
# The best option would be mounting the ".kube/config" file as a volume.
FROM wernight/kubectl:1.5.3
# Install Helm
USER root
RUN cd /home \
&& curl https://storage.googleapis.com/kubernetes-helm/helm-v2.2.3-linux-amd64.tar.gz -o helm.tar.gz \
&& tar -xvf helm.tar.gz \
&& rm helm.tar.gz \
&& mv linux-amd64/helm /usr/local/bin/helm \
&& chmod +x /usr/local/bin/helm \
&& helm --help \
&& cd
ENTRYPOINT /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment