-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.Dockerfile
25 lines (21 loc) · 936 Bytes
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Test with:
# > docker build -f .gitpod.Dockerfile -t gitpod-dockerfile-test .
FROM gitpod/workspace-go:latest
# Useful tools
RUN \
sudo apt-get update && \
sudo apt-get install -y iputils-ping dnsutils mc rsync
# Install `kubectl` and `helm`
RUN \
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
rm kubectl && \
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
# Install the latest official Tailscale
USER root
RUN curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.gpg | apt-key add - \
&& curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.list | tee /etc/apt/sources.list.d/tailscale.list \
&& apt-get update \
&& apt-get install -y tailscale \
&& update-alternatives --set ip6tables /usr/sbin/ip6tables-nft
USER gitpod