forked from mantl/mantl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (18 loc) · 825 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:3.3
RUN apk add --no-cache bash build-base curl git libffi-dev openssh openssl-dev py-pip python python-dev unzip \
&& git clone https://github.com/CiscoCloud/mantl /mantl \
&& pip install -r /mantl/requirements.txt \
&& apk del build-base python-dev py-pip
VOLUME /local
ENV MANTL_CONFIG_DIR /local
VOLUME /root/.ssh
ENV TERRAFORM_VERSION 0.6.12
RUN mkdir -p /tmp/terraform/ && \
cd /tmp/terraform/ && \
curl -SLO https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
cd /usr/local/bin/ && \
unzip /tmp/terraform/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
rm -rf /tmp/terraform/
ENV TERRAFORM_STATE $MANTL_CONFIG_DIR/terraform.tfstate
WORKDIR /mantl
ENTRYPOINT ["/usr/bin/ssh-agent", "-t", "3600", "/bin/sh", "-c"]