-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (47 loc) · 1.78 KB
/
Dockerfile
File metadata and controls
57 lines (47 loc) · 1.78 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM debian:buster-20210111-slim
# System Environment Variables
ENV DEBIAN_FRONTEND="noninteractive"
ENV TZ=Europe/Lisbon
# Tooling Versions
ENV TERRAFORM_VERSION=${TERRAFORM_VERSION:-0.12.29}
ENV GCLOUD_CLI_VERSION=${GCLOUD_CLI_VERSION:-324.0.0}
ENV AZURE_CLI_VERSION=${AZURE_CLI_VERSION:-2.18.0}
ENV AWS_CLI_VERSION=${AWS_CLI_VERSION:-2.1.21}
ENV ANSIBLE_VERSION=${ANSIBLE_VERSION:-2.9.11}
# Install apt-get tools
RUN apt update \
&& apt install -y \
# Development Tools
build-essential curl file git vim \
apt-transport-https ca-certificates lsb-release gnupg \
python3 python3-setuptools python3-pip groff \
# Network Troubleshooting
dnsutils \
inetutils-ping \
jq \
nmap \
telnet \
traceroute \
wget \
mtr \
apache2-utils \
# Other tools
graphviz \
&& pip3 install --upgrade pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install brew tools
RUN pip3 --no-cache-dir install --upgrade terraenv
# Install Terraform
RUN terraenv terraform install ${TERRAFORM_VERSION}
RUN terraenv terraform use ${TERRAFORM_VERSION}
# Install gcloud
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && apt-get update -y && apt-get install google-cloud-sdk=${GCLOUD_CLI_VERSION}-0 -y
# Install Azure cli
RUN pip3 --no-cache-dir install azure-cli==${AZURE_CLI_VERSION}
# Install aws-cli
RUN pip3 --no-cache-dir install git+git://github.com/aws/aws-cli.git#${AWS_CLI_VERSION}
# Install Ansible
RUN pip3 --no-cache-dir install ansible==${ANSIBLE_VERSION}
RUN pip3 --no-cache-dir install boto3
CMD ["/bin/bash"]