We provide a vagrantfile that will create a VM with all the necessary tools installed.
To use it, simply run vagrant up
and then vagrant ssh
to get into the VM.
You can then run make
to build the project.
Please not that building the vm will take a while, as it will download all the necessary tools.
This will work with virtual box and vagrant installed on your machine.
for vmware fusion, you will need to install the vagrant-vmware-fusion plugin. https://www.vagrantup.com/vmware/downloads
Into a terminal run the following commands:
-
Add the provider
⋊> ~ vagrant box add hashicorp/bionic64
For mac users, make sure you have the latest version of virtual box installed. You may have to check your macbook's setting --> security, as default, it blocks the application running from oracle, just allow and approve it, this problem is gone.
-
Start the vagrant box
⋊> ~ cd ./dev/vagrant/ ⋊> ~/dev/vagrant vagrant up
-
SSH into the vagrant box
⋊> ~/dev/vagrant vagrant ssh
The repository is synced to the vagrant box at /home/vagrant/app
. You can edit
the files in your favorite editor and run the commands in the vagrant box.