-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (31 loc) · 917 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
34
35
36
37
38
39
40
41
42
FROM ruby:2.5
MAINTAINER Camille Meulien <camille.meulien@gmail.com>
COPY entrypoint.sh /usr/bin/
RUN chmod 755 /usr/bin/entrypoint.sh
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
#
# Install Java
#
RUN apt-get update \
&& apt-get install -y openjdk-8-jre-headless
#
# Install NodeJS
#
RUN curl -sL https://deb.nodesource.com/setup_4.x | bash - \
&& apt-get install --yes nodejs build-essential
RUN npm install -g bower gulp
#
# Install Jenkins remoting jar
#
ENV HOME=/home/jenkins-slave
ARG JENKINS_REMOTING_VERSION=3.26
RUN curl --create-dirs -sSLo /usr/share/jenkins/slave.jar https://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/${JENKINS_REMOTING_VERSION}/remoting-${JENKINS_REMOTING_VERSION}.jar \
&& useradd -d ${HOME} -m jenkins-slave \
&& chmod 755 /usr/share/jenkins \
&& chmod 644 /usr/share/jenkins/slave.jar
#
# End
#
USER jenkins-slave
VOLUME ${HOME}
WORKDIR ${HOME}