/vagrant-jenkins-docker

A Vagrantfile and setup to create a VM with a jenkins container that has access to docker.

Vagrant + Jenkins + Docker

This script will setup a VM that has docker preinstalled and configured. A jenkins instance will be run in a container on startup, which has access to the docker binary for use inside jenkins scripts.

While the VM is running jenkins will be available on localhost:8980.

Setup

Simply clone this repository and cd into the directory. Make sure you have vagrant and VirtualBox installed, and the vagrant-vbguest plugin is available. Then run vagrant up.

$ cd path/to/repository
$ vagrant plugin install vagrant-vbguest
$ vagrant up

Jenkins Persistence

Jenkins will persist to the filesystem, which is setup as a shared folder named jenkins_home. You can safely destroy the virtual machine without losing any of your work inside jenkins.