Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rattermeyer/jenkins-in-a-box
https://github.com/rattermeyer/jenkins-in-a-box
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rattermeyer/jenkins-in-a-box
- Owner: rattermeyer
- Created: 2014-09-29T20:07:01.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-02T20:16:05.000Z (about 10 years ago)
- Last Synced: 2023-08-07T02:48:31.095Z (over 1 year ago)
- Language: Shell
- Size: 488 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jenkins-in-a-Box
Jenkins-in-a-Box is an easy to install development / test environment for Jenkins administration.
It contains docker containers for nexus, sonar, jenkins, jenkins-slave all ready to go and easy to customize.# Prerequisites
You need [Vagrant](http://www.vagrantup.com) installed on your system.# Installation
git clone https://github.com/rattermeyer/jenkins-in-a-box.git
cd jenkins-in-a-box
vagrant up
Installation takes (depending on internet connection) around 30-45 min.
You can check if everything is up and running
vagrant ssh
sudo docker ps | wc
The last command should print 9What *should* end up with is a VM with multiple docker containers
* git repository
* nexus repository
* jenkins master
* jenkins slave
* sonar
* skydns
* skydockThe latter two are for name resolution between docker containers.
Some other pre-requisite tasks:
* To enable sonar, you must first access sonar: http://localhost:9000
* Check nexus: http://localhost:8081/nexus
* Access Jenkins: http://localhost:8080/jenkins# Known Issues
## Name Resolution not working
Currently skydns has a TTL for entries of standard 3600s. So after one hour the system will not be able to work correctly because docker container cannot resolve of other
containers anymore.
This can easily be resolved by runningdocker stop skydock
docker start skydockThe skydock container will automatically add all running containers to the SkyDNS service.
## Jenkins slave not showing up
Solution: restart slave# enter VM
vagrant ssh
# become root
sudo -s
# switch to project base dir
cd /root/jenkinsci
fig stop slave
fig start slave
## You want to test with more than one slavevagrant ssh
sudo -scale
fig scale slave=2Replace 2 with any number. Determines number of running instances.