-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile_packer
64 lines (54 loc) · 1.4 KB
/
Dockerfile_packer
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
58
59
60
61
62
63
64
FROM alpine:3.11.2
LABEL maintainer="[email protected]"
env OS_AUTH_URL="https://identity.openstack.cloudvps.com/v3"
env OS_PROJECT_ID=""
env OS_TENANT_ID=""
env OS_PROJECT_NAME=""
env OS_TENANT_NAME=""
env OS_USER_DOMAIN_NAME="Default"
env OS_USERNAME=""
env OS_PASSWORD=""
env OS_REGION_NAME="AMS"
env OS_INTERFACE="public"
env OS_IDENTITY_API_VERSION=3
env TERM=xterm-256color
RUN apk add --no-cache --update \
tzdata \
bash \
zsh \
zsh-vcs \
less \
git \
curl \
vim \
coreutils \
perl \
openssh-client \
openssl \
openssl-dev \
python-dev \
py-pip \
py-setuptools \
util-linux \
ca-certificates \
gcc \
make \
musl-dev \
linux-headers \
libffi-dev \
ansible \
&& pip install --upgrade --no-cache-dir pip jinja2==2.9.5 setuptools python-openstackclient python-heatclient python-neutronclient python-octaviaclient \
&& apk del gcc musl-dev linux-headers \
&& rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime \
&& echo "Europe/Amsterdam" > /etc/timezone \
&& apk del tzdata
RUN wget https://releases.hashicorp.com/packer/1.2.4/packer_1.2.4_linux_amd64.zip \
&& unzip packer_1.2.4_linux_amd64.zip \
&& cp packer /usr/local/bin \
&& chmod +x /usr/local/bin/packer \
&& rm -rvf packer_1.2.4_linux_amd64.zip
VOLUME ["/blueprints"]
WORKDIR /blueprints
COPY run.sh /usr/local/bin/run.sh
ENTRYPOINT ["/usr/local/bin/run.sh"]