-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
57 lines (43 loc) · 1.39 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
ARG RUNDECK_IMAGE
FROM ${RUNDECK_IMAGE:-jordan/rundeck:3.2.4}
MAINTAINER Dirceu Silva <[email protected]>
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
inetutils-traceroute \
curl \
lxc \
telnet \
git-core \
sshpass \
&& apt-get install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 install --upgrade pip \
&& rm -rf /var/lib/apt/lists/
##########
# DOCKER #
##########
RUN curl -sSL https://get.docker.com/ | sh
# Wrapper docker ninja...
COPY ./wrapdocker /usr/local/bin/wrapdocker
RUN chmod +x /usr/local/bin/wrapdocker
VOLUME /var/lib/docker
CMD ["wrapdocker"]
##################################################
# PIP - docker compose, pywinrm, boto3 e ansible #
##################################################
RUN pip3 install docker-compose pywinrm boto3 pyvmomi ansible
RUN docker-compose version
###########
# KUBECTL #
###########
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/local/bin/kubectl
##########################
# ALTERANDO O ENTRYPOINT #
##########################
COPY configura.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/configura.sh
CMD ["configura.sh"]