Contains basic Jenkins Docker image setup required for the workshop.
-
Create new virtual machine using docker-machine(Part of the Docker toolbox)
docker-machine create --driver virtualbox jobdsl-workshop
- Setup port forwarding in order to be able to access web pages from Docker container in browser on the host machine
VBoxManage controlvm jobdsl-workshop natpf1 "HTTP,tcp,127.0.0.1,8080,,8080"
VBoxManage controlvm jobdsl-workshop natpf1 "HTTP,tcp,127.0.0.1,50000,,50000"
- Restart virtual machine in order to make sure that port forwarding settings applied correctly. Important! Check that you don't have other VM's running that uses the same port (run docker-machine ls or check VirtualBox GUI)
docker-machine restart jobdsl-workshop
- Make sure that you have correct env settings for docker-machine
eval $(docker-machine env jobdsl-workshop)
Make sure that you have Docker installed. If not then how to is here
- Clone this repo
git clone https://github.com/praqma-training/jobdsl-workshop.git
- Kick containers
cd jobdsl-workshop
bash -ex do-things.sh
- After few seconds you should be able to see Jenkins page in your browser at localhost:8080! Time to do things!
- Follow JobDSL tutorial and create simple job
- Learn how to build your JobDSL specification and setup CI job for it
- Learn how to use configure block
- Try templates and libraries
- Team work