Skip to content

Instantly share code, notes, and snippets.

@drslump
Created June 12, 2017 16:29
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 drslump/05ab4ec47c46fc391f28bd415f967088 to your computer and use it in GitHub Desktop.
Save drslump/05ab4ec47c46fc391f28bd415f967088 to your computer and use it in GitHub Desktop.
telepresence docker vpn network
FROM ubuntu:xenial
# Install some required base software
RUN apt-get update
RUN apt-get install -y curl sudo iptables
# Install kubectl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
RUN chmod +x kubectl
RUN mv ./kubectl /usr/local/bin/kubectl
# Install telepresence
RUN curl -s https://packagecloud.io/install/repositories/datawireio/telepresence/script.deb.sh | bash
RUN apt-get install -y --no-install-recommends telepresence
# Clean up a bit
RUN rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["telepresence", "--method", "vpn-tcp"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment