-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 865 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 865 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
31
32
FROM centos:7.2.1511
MAINTAINER skuenzli@qualimente.com
ENV PACKAGE_DEPS="jq \
make \
netcat \
unzip \
vim \
wget \
"
RUN yum -y update \
&& yum -y upgrade \
&& yum -y install $PACKAGE_DEPS \
&& yum clean all
ENV PACKER_VERSION 0.12.1
ENV TERRAFORM_VERSION 0.8.2
RUN wget -q -O /tmp/packer.zip "https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip" \
&& unzip /tmp/packer.zip -d /usr/local/bin
RUN wget -q -O /tmp/terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" \
&& unzip /tmp/terraform.zip -d /usr/local/bin
ADD packer /work/packer
ADD terraform /work/terraform
VOLUME /src
WORKDIR /work
ADD Dockerfile /Dockerfile