Standardizing Development Environments In Distributed Teams Using Vagrant

lightweight, reproducible, and portable development environments

Basic Interaction

$ vagrant init ubuntu/trusty32                        install OS

$ vagrant up                                                                           start up

$ vagrant ssh                                                                               log in

$ vagrant halt                                                          stops vagrant

Provisioning

bootstrap.sh

#!/usr/bin/env bash

apt-get update
apt-get install -y apache2
rm -rf /var/www
ln -fs /vagrant /var/www

Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "hashicorp/precise32"
  config.vm.provision :shell, path: "bootstrap.sh"
end

Additional Resources

Varying Vagrant Vagrants

https://github.com/Varying-Vagrant-Vagrants/VVV

props @10up, @jeremyfelt

PuPHPet

https://puphpet.com/

props @markjaquith

WP Tavern: 13 Vagrant Resources

13 Vagrant Resources for WordPress Development

props @wptavern | @pollyplummer

Vagrant Up

http://vagrantup.com

Questions?

Brandon Dove | @brandondove