-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
92 lines (74 loc) · 2.5 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
FROM alpine:3
LABEL maintainer="patrick@kite4fun.nl"
ARG TERRAFORM_VERSION='0.15.4'
ARG HELM_VERSION='3.6.0'
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 \
python3-dev \
python3 \
py-pip \
py-setuptools \
util-linux \
ca-certificates \
gcc \
make \
musl-dev \
linux-headers \
libffi-dev \
docker \
ansible \
&& pip3 install --upgrade pip \
&& pip3 install --upgrade --no-cache-dir pip jinja2==2.9.5 setuptools python-openstackclient python-cinderclient==4.0.1 openstack-interpreter \
&& apk del gcc musl-dev linux-headers \
&& rm -rf /var/cache/apk/*
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing etcd-ctl \
&& rm -rf /var/cache/apk/*
RUN cp /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime \
&& echo "Europe/Amsterdam" > /etc/timezone \
&& apk del tzdata
ADD install.sh /root/
RUN sh /root/install.sh && rm -f /root/install.sh && sed -i s/robbyrussell/agnoster/g /root/.zshrc
RUN curl -OL https://raw.github.com/nvie/gitflow/develop/contrib/gitflow-installer.sh \
&& sh gitflow-installer.sh \
&& rm -f gitflow-installer.sh \
&& rm -rf gitflow
RUN curl -sL https://run.linkerd.io/install | sh
RUN wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin \
&& rm terraform_${TERRAFORM_VERSION}_linux_amd64.zip
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl && mv kubectl /usr/bin
RUN wget https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz \
&& tar xf helm-v${HELM_VERSION}-linux-amd64.tar.gz \
&& cp /linux-amd64/helm /usr/local/bin \
&& chmod +x /usr/local/bin/helm \
&& rm -rvf linux-amd64 \
&& rm helm-v${HELM_VERSION}-linux-amd64.tar.gz
RUN curl -sSL https://cli.openfaas.com | sh
VOLUME ["/blueprints"]
WORKDIR /blueprints
COPY run.sh /usr/local/bin/run.sh
ENTRYPOINT ["/usr/local/bin/run.sh"]