Jenkins slave stuffed with Hashicorp Otto, Vagrant and Packer with Virtualbox!
3.0K
Container stuffed with Hashicorp Otto, Vagrant and Packer with Virtualbox!
This slave can be used to build Vagrant-Virtualbox boxes in several independent containers on the same host.
Requirements:
Software:
In short, you can use Vagrant and Packer inside a Jenkins slave.
First start a master!
$ docker run -d -p 8090:8080 --name jenkins_jenkins_1 blacklabelops/jenkins
This will pull the my jenkins container ready with swarm plugin and ready-to-use!
Now start the build slave!
$ docker run -d \
--privileged=true \
--link jenkins_jenkins_1:jenkins \
-v /dev/vboxdrv:/dev/vboxdrv \
blacklabelops/hashicorp-virtualbox
Mounts the hosts binaries. MUST use privileged mode, MUST mount host directory.
docker pull blacklabelops/hashicorp-virtualbox:latest