Sign inSign up

cantara/jenkins

By cantara

•Updated almost 6 years ago

Image
1

707

cantara/jenkins repository overview

⁠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
  1. Update plugins, http://localhost:8080/pluginManager/⁠
  2. Set up CI user with access to git/github repositories
  1. 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

Tag summary

Content type

Image

Digest

sha256:6bbab6b87…

Size

369.4 MB

Last updated

almost 6 years ago

docker pull cantara/jenkins