forked from kubenow/KubeNow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (46 loc) · 1.55 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
FROM python:2.7-alpine
MAINTAINER "Marco Capuccini <[email protected]>"
# Provisioners versions
ENV TERRAFORM_VERSION=0.9.4
ENV TERRAFORM_SHA256SUM=cc1cffee3b82820b7f049bb290b841762ee920aef3cf4d95382cc7ea01135707
ENV ANSIBLE_VERSION=2.3.1.0
ENV LIBCLOUD_VERSION=1.5.0
ENV J2CLI_VERSION=0.3.1.post0
ENV DNSPYTHON_VERSION=1.15.0
ENV JMESPATH_VERSION=0.9.3
ENV SHADE_VERSION=1.21.0
ENV OPENSTACKCLIENT_VERSION=3.11.0
# Install APK deps
RUN apk add --update --no-cache \
git \
curl \
openssh \
build-base \
linux-headers \
libffi-dev \
openssl-dev \
openssl \
bash
# Install PIP deps
RUN pip install \
ansible=="$ANSIBLE_VERSION" \
j2cli=="$J2CLI_VERSION" \
dnspython=="$DNSPYTHON_VERSION" \
jmespath=="$JMESPATH_VERSION" \
apache-libcloud=="$LIBCLOUD_VERSION" \
shade=="$SHADE_VERSION" \
python-openstackclient=="$OPENSTACKCLIENT_VERSION"
# Install Terraform
RUN curl "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" > \
"terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \
echo "${TERRAFORM_SHA256SUM} terraform_${TERRAFORM_VERSION}_linux_amd64.zip" > \
"terraform_${TERRAFORM_VERSION}_SHA256SUMS" && \
sha256sum -cs "terraform_${TERRAFORM_VERSION}_SHA256SUMS" && \
unzip "terraform_${TERRAFORM_VERSION}_linux_amd64.zip" -d /bin && \
rm -f "terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
# Add KubeNow (and group)
COPY . /opt/KubeNow
RUN cp /opt/KubeNow/bin/* /bin
WORKDIR /opt/KubeNow
# Set entrypoint
ENTRYPOINT ["/opt/KubeNow/bin/docker-entrypoint"]