Created
March 21, 2017 19:40
-
-
Save vincent-zurczak/efe30d80513543ba4aa498e558e66ad8 to your computer and use it in GitHub Desktop.
Create a Docker container with both kubectl and helm
This file contains 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
# 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