Public | Automated Build

Last pushed: a year ago
Short Description
Jenkins Container with Maven
Full Description

docker-jenkins-maven


Jenkins Docker Container with Maven Runtime


Usage

docker run -p 8080:8080 -p 50000:50000 jmeth/jenkins-mvn

NOTE: read below the build executors part for the role of the 50000 port mapping.

This will store the workspace in /var/jenkins_home. All Jenkins data lives in there - including plugins and configuration.
You will probably want to make that a persistent volume (recommended):

docker run -p 8080:8080 -p 50000:50000 -v /your/home:/var/jenkins_home jmeth/jenkins-mvn

This will store the jenkins data in /your/home on the host.
Ensure that /your/home is accessible by the jenkins user in container (jenkins user - uid 1000) or use -u some_other_user parameter with docker run.

You can also use a volume container:

docker run --name jenkins -p 8080:8080 -p 50000:50000 -v /var/jenkins_home jmeth/jenkins-mvn

Then myjenkins container has the volume (please do read about docker volume handling to find out more).

Link with Docker Official Sonarqube

docker run --name jenkins -p 8080:8080 -p 50000:50000 -v /var/jenkins_home --link sonarqube:sonarqube jmeth/jenkins-mvn

See the Docker Official Jenkins for more info.

Docker Pull Command
Owner
jmeth
Source Repository

Comments (0)