This repository provides the Dockerfile that builds a continuous integration container from centos7, plus Oracle Java 8, Jenkins latest, Maven 3.3.9, Git and Nano.
Sets up a container with jenkins installed listening on port 8080.
To run the container with the same time zone as the host, do the following:
sudo docker run -t -i -p 8080:8080 -v /etc/localtime:/etc/localtime:ro -P stephenreed/java8-jenkins-maven-git-nano
To start Jenkins from the container's command prompt . . .
java -jar opt/jenkins.war
You can configure Jenkins continuous integration jobs at http://127.0.0.1:8080 . The Jenkins GitHub plugin needs to be installed by you if you use GitHub.
More information on Jenkins state persistence can be found at https://registry.hub.docker.com/u/aespinosa/jenkins/ .