-
Notifications
You must be signed in to change notification settings - Fork 643
/
Copy pathDockerfile
37 lines (26 loc) · 1.23 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
FROM bencdr/dev-env-base:latest
USER root
RUN apt-get update
RUN apt-get install -y apt-transport-https gnupg
# Install kubectl
RUN curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg && \
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | tee /etc/apt/sources.list.d/kubernetes.list && \
apt-get update && apt-get install -y kubectl
# Install helm
RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
# Install gcloud
RUN curl -fsSLo /usr/share/keyrings/cloud.google.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg && \
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
apt-get update && apt-get install -y google-cloud-sdk
# Install AWS CLI
RUN pip3 install awscli
USER coder
# Install terraform
RUN brew tap hashicorp/tap && \
brew install hashicorp/tap/terraform
# Install kubectx
RUN brew install kubectl
# Install Docker
RUN sudo apt-get install -y docker.io systemd systemd-sysv
RUN systemctl enable docker
USER coder