-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (22 loc) · 1002 Bytes
/
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
FROM centos:7
MAINTAINER jvassev@gmail.com
# in case running on overlay driver
VOLUME /tmp/.control
ENTRYPOINT ["/start.sh"]
RUN ln -s /ansinetes/ansible /etc/ansible || true
RUN curl -s -L -o /usr/bin/cfssl https://pkg.cfssl.org/R1.1/cfssl_linux-amd64 && \
curl -s -L -o /usr/bin/cfssljson https://pkg.cfssl.org/R1.1/cfssljson_linux-amd64 && \
chmod +x /usr/bin/{cfssl,cfssljson}
RUN yum -y install python-setuptools openssh && \
easy_install pip && \
pip install setuptools -U
RUN yum -y install gcc openssh-clients openssl openssl-devel python-devel libffi-devel curl && \
pip install ansible==2.2.3.0 netaddr requests && \
yum -y remove gcc openssl-devel python-devel && \
yum clean all
RUN curl -kL# -O https://dl.k8s.io/v1.6.8/kubernetes-client-linux-amd64.tar.gz && \
tar xzf kubernetes-client-*.tar.gz -C /usr/bin --strip-components 3 && \
rm kubernetes-client-*.tar.gz && \
chmod +x /usr/bin/kubectl
COPY start.sh /
COPY _defaults /_defaults