-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
57 lines (43 loc) · 1.38 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# The base image is alpine
FROM alpine
RUN apk add --no-network --no-cache --repositories-file /dev/null "apk-tools>2.10.1"
# Update and install packages
RUN apk update \
&& apk add \
ca-certificates \
wget \
make \
curl \
openssl-dev \
openssh-client \
bash \
&& update-ca-certificates
# Download terraform
RUN wget --no-check-certificate https://releases.hashicorp.com/terraform/0.12.17/terraform_0.12.17_linux_amd64.zip
# Extract terraform
RUN unzip terraform_0.12.17_linux_amd64.zip
# Move terraform binary to /usr/bin
RUN mv terraform /usr/bin/
# Download awless
RUN wget --no-check-certificate https://github.com/wallix/awless/releases/download/v0.1.11/awless-linux-386.tar.gz
# Extract awless
RUN tar -xvf awless-linux-386.tar.gz
# Move awless binary to /usr/bin
RUN mv awless /usr/bin/
# Download packer
RUN wget --no-check-certificate https://releases.hashicorp.com/packer/1.1.3/packer_1.1.3_linux_amd64.zip
# Extract packer
RUN unzip packer_1.1.3_linux_amd64.zip
# Move packer binary to /usr/bin
RUN mv packer /usr/bin/
# Install jq 1.6
RUN curl -LO \
https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && \
chmod +x jq-linux64 && \
mv jq-linux64 /usr/local/bin/jq
# Clean up
RUN rm terraform_0.12.17_linux_amd64.zip
RUN rm awless-linux-386.tar.gz
RUN rm packer_1.1.3_linux_amd64.zip
RUN apk del wget
CMD ["terraform", "version"]