forked from dkapanidis/dind-jenkins-slave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (24 loc) · 978 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
32
33
FROM anapsix/alpine-java:8u102b14_server-jre_unlimited
MAINTAINER Ladislav Gazo <[email protected]>
USER root
#RUN locale-gen en_US.UTF-8
#RUN dpkg-reconfigure locales
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN apk update && \
apk add docker=1.11.2-r1 py-pip wget curl git
# https://pypi.org/project/docker-compose/
RUN pip install docker-compose==1.23.2
ADD /jenkins-slave /opt/
WORKDIR /opt/jenkins-slave
RUN wget https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/swarm-client/3.28/swarm-client-3.28.jar -O /opt/jenkins-slave/swarm-client.jar
CMD ash /opt/jenkins-slave-init.sh
#CMD java -jar swarm-client-3.9.jar -master http://$MASTER_PORT_8080_TCP_ADDR:$MASTER_PORT_8080_TCP_PORT $EXTRA_PARAMS
# Load scripts
#COPY bootstrap/ /bootstrap/
#RUN chmod +x -Rv /bootstrap
# Add user jenkins to the image
#RUN adduser -D -h /home/jenkins -s /bin/ash jenkins
#RUN adduser jenkins docker
#CMD /opt/jenkins-slave/jenkins-slave-init.sh