Demo Framework with Vagrant
Using Vagrant with Virtualbox
Download and Install Virtualbox
Virtualbox: https://www.virtualbox.org/wiki/Downloads
Download and Install Vagrant
Vagrant: http://downloads.vagrantup.com
Install Berkshelf and Omnibus plugins for Vagrant
$ vagrant plugin install vagrant-berkshelf
$ vagrant plugin install vagrant-omnibus
Build the distribution as you normally would using build-df.make or download the release package from Drupal.org.
Add the following Vagrantfile and Berksfile to your docroot
https://gist.github.com/brantwynn/5680085/raw/Vagrantfile
https://gist.github.com/brantwynn/5680070/raw/Berksfile
Set the following environmental variables (or edit the Vagrantfile and hardcode them).
$ export DRUPAL_DISTRO=df
$ export DRUPAL_PROJECT=localdemo
Use Vagrant to build the virtual machine or reload it
$ vagrant up
Automating your Vagrant build process using vice.sh
$ wget https://gist.github.com/brantwynn/5680040/raw/vice.sh
Add this line to your .bash_profile or .zshrc
source /path/to/df/vice.sh
Now you can skip everything but installing Virtualbox/Vagrant/Berkshelf in the instructions above... Just use the vice.sh shell script.
Usage: vice [makefile] [destination] [distro] [sitename] [vagrant command]
$ vice ~/downloads/df/build-df.make ~/Sites/vgrnt.demo df demoframework up
$ vice /path/to/df/build-df.make /path/to/your/demo/docroot df demo-test reload
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion