The Goal of this project is to demonstrate how to create a jenkins - docker pipeline which is fully automatically setup and can be used for any project.
When it should be possible to do the complete setup using the following steps:
Prerequisites:
- Install Vagrant
- Install the disksize plugin for vagrant by running:
vagrant plugin install vagrant-disksize
- Install ansible
Finally setup a VM containing the Jenkins-Docker-Pipeline by running:
git clone https://github.com/ledergec/docker-jenkins-pipeline.git
cd docker-jenkins-pipeline
git submodule update --init --recursive
vagrant up
You can then login to your new vm using:
vagrant ssh -- -X
Finally you can see jenkins in your browser by accessing http://localhost:8080
TODO
- Vagrant is used to setup a VM for example purposes
- Within Vagrant ansible is used to setup jenkins including the complete configuration necessary
- Then another project can be compiled / integrated by adding minimal configuration to jenkins. Jenkins will then simply build and run the dockercontainer including all the tests.