Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

First initial commit

  • Loading branch information...
commit b5d4d4615073e1f26719fbb720de4f07342981fe 1 parent d4525c6
Imre Tóth authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 Dockerfile
View
9 Dockerfile
@@ -9,6 +9,15 @@ RUN chmod 644 /opt/jenkins.war
ADD run /usr/local/bin/run
RUN useradd -m jenkins
+RUN chown jenkins /home/jenkins/.jenkins
+RUN exec su jenkins -c "java -jar /opt/jenkins.war"
+RUN wget http://localhost:8080/jnlpJars/jenkins-cli.jar
+
+RUN java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin checkstyle cloverphp dry htmlpublisher jdepend plot pmd violations xunit
+RUN java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart
+RUN curl https://raw.github.com/sebastianbergmann/php-jenkins-template/master/config.xml | java -jar jenkins-cli.jar -s http://localhost:8080 create-job php-template
+RUN wget http://localhost:8080/exit
+
EXPOSE 8080
VOLUME ["/home/jenkins/.jenkins"]
CMD /usr/local/bin/run
Please sign in to comment.
Something went wrong with that request. Please try again.