-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
38 lines (31 loc) · 1.13 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
38
FROM ubuntu:18.04
ARG TERRAFORM_VERSION=1.0.5
# Update apt and Install dependencies
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:ansible/ansible && apt-get update && apt-get install -y \
curl \
dnsutils \
git \
jq \
libssl-dev \
openvpn \
python3 \
python3-pip \
screen \
vim \
wget \
zip \
mysql-client \
ansible \
&& rm -rf /var/lib/apt/lists/*
# Install tools and configure the environment
RUN wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -O /tmp/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& unzip /tmp/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /bin/ \
&& rm /tmp/terraform_${TERRAFORM_VERSION}_linux_amd64.zip
RUN pip3 install --upgrade pip \
&& mkdir /workdir && cd /workdir \
&& mkdir keys \
&& python3 -m pip install netaddr awscli
RUN pip3 install "openshift>=0.6" "setuptools>=40.3.0" \
&& ansible-galaxy collection install community.kubernetes
RUN pip3 install "openshift>=0.6" "setuptools>=40.3.0"
COPY . iac-run-dir