Jenkins is a very powerful tool and easy to learn. In this section, we are going to prepare the environment, which consists of a virtual machine running a Docker image of Jenkins. This setup is for demonstration purposes; for real scenarios, it will be better to install it in a dedicated server with more resources, or get it as a service from a company like CloudBees. In this particular case, all the configuration is located in the Vagrantfile:
Vagrant.configure("2") do |config| config.vm.box = "ubuntu/trusty64" config.vm.box_check_update = false config.vm.network "forwarded_port", guest: 8080, host: 9090 config.vm.provider "virtualbox" do |vb| vb.gui = false vb.memory = 2048 end config.vm.provision "docker" do |d| d.run ...