Vagrant is a tool for building and managing virtual machine environments in a single workflow. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases production parity, and makes the "works on my machine" excuse a relic of the past.
- Virtualbox min. Version 5
- Vagrant min. Version 2.7
- Clone/Download of the repository
On the computers in the PC-Pools the software should be already installed. The only task there is either
- Download
- Clone (with cmd.exe and git command or the Gitg application)
It is taken that all these steps are done in an cmd.exe window that has the current working directory in the cloned/downloaded repository.
Hint: cd ...
- Run
$ vagrant up development
The output should look like:
- Run
$ vagrant ssh development
To have console access to the VM.
- VM is ready to use.
- The cloned/downloaded repo folder on your computer is automatically mounted
at
/vagrant
- Changes in the
/vagrant
folder and repo folder on your computer are instantly on the computer and the vm
Hint: You can use your editor of your computer and use the vm to run the commands.
- Shutdown:
$ vagrant halt development
- Reboot:
$ vagrant reload development
- Suspend:
$ vagrant suspend development