Skip to content

Instantly share code, notes, and snippets.

@radu-matei
Last active January 14, 2018 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radu-matei/d9351e4cfcb634275620deba15350290 to your computer and use it in GitHub Desktop.
Save radu-matei/d9351e4cfcb634275620deba15350290 to your computer and use it in GitHub Desktop.
FROM ubuntu:16.04
LABEL maintainer Radu Matei <matei.radu94@gmail.com>
# Versions of kubectl and helm
ENV KUBE_VERSION="v1.8.0"
ENV HELM_VERSION="v2.6.2"
RUN apt-get update && apt-get install -y \
curl
# Download and install kubectl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/bin/linux/amd64/kubectl
RUN chmod +x ./kubectl
RUN mv ./kubectl /usr/local/bin/kubectl
# Download and install helm
RUN curl -LO https://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz
RUN tar -xvf helm-${HELM_VERSION}-linux-amd64.tar.gz
RUN mv linux-amd64/helm /usr/local/bin
# Expose port for kubectl proxy - if you want to use it locally
# EXPOSE 8080
ENTRYPOINT ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment