-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (29 loc) · 1.24 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
FROM alpine:3.8
# Version of builders
ENV ANSIBLE_VERSION=2.5.5
ENV PACKER_VERSION=1.1.3
ENV TERRAFORM_VERSION=0.11.7
ENV TERRAGRUNT_VERSION=0.17.1
# Installing Ansible
RUN apk update && \
apk add --update curl bash && \
apk add --update ansible~=${ANSIBLE_VERSION}
# Installing Packer
RUN cd /usr/local/bin && \
curl https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip -o packer_${PACKER_VERSION}_linux_amd64.zip && \
unzip packer_${PACKER_VERSION}_linux_amd64.zip -d /bin && \
rm -f packer_${PACKER_VERSION}_linux_amd64.zip
# Installing Terraform
RUN cd /usr/local/bin && \
curl https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -o terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
rm terraform_${TERRAFORM_VERSION}_linux_amd64.zip
# Installing Terragrunt
RUN cd /usr/local/bin && \
wget https://github.com/gruntwork-io/terragrunt/releases/download/v${TERRAGRUNT_VERSION}/terragrunt_linux_amd64 && \
mv terragrunt_linux_amd64 terragrunt && \
chmod +x terragrunt
# Changing working directory
WORKDIR /work
# Setup bash as entrypoint
ENTRYPOINT ["/bin/bash"]