-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 783 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 783 Bytes
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
FROM lborguetti/docker-base-image:stable
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
ENV TERRAFORM_VERSION 0.11.7
ENV EDITOR vim
RUN apt-get -y update && \
apt-get -y install \
jq \
openssh-client \
python \
python-pip \
unzip \
vim \
&& \
apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/*
WORKDIR /data
COPY ansible/requirements.txt ansible/requirements.txt
RUN pip install -r ansible/requirements.txt
ADD https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip /tmp/
RUN unzip /tmp/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin/ && \
rm /tmp/terraform_${TERRAFORM_VERSION}_linux_amd64.zip