-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (18 loc) · 899 Bytes
/
Copy pathDockerfile
File metadata and controls
21 lines (18 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:2-alpine3.9
WORKDIR /app
COPY ansible.cfg /etc/ansible/
RUN apk update && \
apk add ansible libffi-dev openssl-dev gcc musl-dev openssh && \
pip install --upgrade pip && pip install packaging azure apache-libcloud pycrypto && \
apk add --update unzip && \
wget https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip && \
unzip terraform_0.11.11_linux_amd64.zip -d terraform_bin && \
mv ./terraform_bin/terraform /usr/local/bin/terraform && \
rm -rf terraform_0.11.11_linux_amd64.zip ./terraform_bin && \
wget https://releases.hashicorp.com/consul/1.5.0/consul_1.5.0_linux_amd64.zip && \
unzip consul_1.5.0_linux_amd64.zip && \
rm consul_1.5.0_linux_amd64.zip && \
mv ./consul /usr/local/bin/ && \
mkdir ~/.ssh && \
echo "Host *" > ~/.ssh/config && \
echo " StrictHostKeyChecking no" >> ~/.ssh/config