Build a fresh new VirtualMachine for your black-project.
The default configuration will not share the root project directory (this is my choice) but, if you want to use vagrant
on your root folder, don't hesitate to make your changes in vm/Vagrantfile
.
If you love this project (or me), don't hesitate to Flattr me ;)
The default configuration is very simple. I don't use provisioners like chef/puppet/ansible but shell scripts so don't hesitate to contribute.
The default Nginx work for a Symfony project.
- First install Packer.
- Now, install VirtualBox.
- And then, install Vagrant.
We need some Vagrant plugins for your convenience. In your terminal, use these commands:
vagrant plugin install vagrant-hostmanager
vagrant plugin install vagrant-hostsupdater
vagrant plugin install vagrant-vbguest
Go to your project folder in your terminal and clone this repostory with git submodule add git@github.com:black-project/black-packer.git vm
.
Then go to your vm directory with cd vm/
.
Just run packer build vm.json
and wait.
Then, run vagrant up
, vagrant hostmanager
and vagrant ssh
:)
If you want to build your VM for vmware only, use this:
packer build --only=vmware-iso vm.json
vagrant up --provider vmware_fusion
Same operation for Virtualbox:
packer build --only=virtualbox-iso vm.json
vagrant up --provider virtualbox