Skip to content

Docker image spec that starts up configured for JDK and maven

Notifications You must be signed in to change notification settings

levonk/docker-jenkins-jdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Jenkins

Docker build info for a jenkins image useful for java/maven projects. Based on the "official" docker hub jenkins image. See above for documentation on customizing this image, as well as official github repo.

This image sets up JDK 7 and 8 (using OpenJDK), and Maven versions 3.1.1, 3.2.5, and 3.3.3.

Usage

Launch a container with this image mapping a volume to /var/jenkins_home. This ensures the data isn't lost.

Also, if you want to iterate development, you may want to map your local git repository as a volume to your container. See example.

Example

docker run -d --name myjenkins -p 8080 -p 50000 -v /var/jenkins_home -v $HOME/sandbox/apps/my_project/.git:/home/git/repos/my_project.git my_jenkins_image

Here I'm mapping my jenkins_home and also a git repo (tied to my working copy) to a directory in the container. This way I can commit files to my local git branches for use in my jenkins without having to push the code.

TODO

  • Configure the list of maven and JVM versions and paramerize the groovy scripts
  • Europa Container registry
  • Maven artificat registry
  • Sonarqube
  • Postgres (for Sonarqube, and owasp)

About

Docker image spec that starts up configured for JDK and maven

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Groovy 100.0%