Public | Automated Build

Last pushed: 7 months ago
Short Description
Short description is empty for this repo.
Full Description

Jenkins continuous integration server

Goal: Simplify installation and configuration of Jenkins for Java development.

See https://github.com/jenkinsci/docker for tips, most of it is applicable to this fork as well.

Install and use

Install or upgrade Docker

https://docs.docker.com/installation/ubuntulinux/

wget -qO- https://get.docker.com/ | sh

Install data volume container and jenkins

sudo docker pull cantara/jenkins
sudo docker create -v /var/jenkins_home --name jenkins-data cantara/jenkins
sudo docker run -d -p 8080:8080 --volumes-from jenkins-data --name jenkins20150715 cantara/jenkins

Initial Jenkins config, point your browser to http://localhost:8080/

  1. Use jenkins to setup security and users
  2. Update plugins, http://localhost:8080/pluginManager/
  3. Set up CI user with access to git/github repositories
  4. Setup settings.xml to give Jenkins access to non-public Maven repos

Backup

See https://docs.docker.com/userguide/dockervolumes/#backup-restore-or-migrate-data-volumes

Development

TODO

  1. Transitive plugin dependencies are not installed automatically and plugins are not updated to latest version. Perhaps this script https://gist.github.com/micw/e80d739c6099078ce0f3 can fix one or both problems?

Build and run for development

sudo docker build -t cantara/jenkins .
sudo docker create -v /var/jenkins_home --name jenkins-data cantara/jenkins
sudo docker run -d -p 8080:8080 --volumes-from jenkins-data --name jenkins20150515 cantara/jenkins
  • To stop and remove all containers:

    docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)
    
  • To log in to take a look:

    docker ps -a
    docker exec -it containerIdHere bash
    

Decisions

Plugins

Maintain a list of plugins here to find plugin key, version and description of what it does.

Read more

Docker Pull Command
Owner
cantara
Source Repository

Comments (0)