- Vagrant
- Ansible (mac install instructions)
- Run
vagrant up
.
The Vagrantfile is configured to run the Ansible playbook automatically.
- Run
vagrant package --output dev-box-0.0.2.box
(or whatever version the git repo is on) from the project root directory.
This will output a file called dev-box-0.0.2.box
which can then be uploaded to the Vagrant Cloud.
Before a box is built/"deployed" from this codebase, the code should be merged to master, a release created and checked out before running vagrant package
.
To test a packaged box locally with another project,
run vagrant box add --name <boxName>
.
This will make the box accesible in any directory on your machine.
You can then alter an existing Vagrantfile to use the new test box
Vagrant.configure("2") do |config|
config.vm.box = "<boxName>"
...