forked from prashantkalkar/cdc-pact-expert-talk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkinsDockerfile
27 lines (19 loc) · 889 Bytes
/
jenkinsDockerfile
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
FROM jenkins/jenkins:lts
ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
# copy init scripts
COPY init_scripts/* /usr/share/jenkins/ref/init.groovy.d/
# install suggested plugins
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
# install maven
USER root
RUN apt-get update && apt-get install -y vim maven subversion
RUN mkdir $JENKINS_HOME/.m2
COPY /settings.xml /tmp/
# drop back to the regular jenkins user - good practice
USER jenkins
# install pact broker client
RUN cd /usr/share/jenkins/ref && curl -LO https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.38.0/pact-1.38.0-linux-x86_64.tar.gz
RUN cd /usr/share/jenkins/ref && tar xzf pact-1.38.0-linux-x86_64.tar.gz
# check pact broker added available on path.
RUN /usr/share/jenkins/ref/pact/bin/pact-broker version