2015-12-23 13:02:45 +00:00
|
|
|
# vagrant
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Manage lightweight, reproducible, and portable development environments.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://www.vagrantup.com>.
|
2015-12-23 13:02:45 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Create Vagrantfile in current directory with the base Vagrant box:
|
2015-12-23 13:02:45 +00:00
|
|
|
|
|
|
|
`vagrant init`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Create Vagrantfile with the Ubuntu 14.04 (Trusty Tahr) box from HashiCorp Atlas:
|
2015-12-23 13:02:45 +00:00
|
|
|
|
|
|
|
`vagrant init ubuntu/trusty32`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Start and provision the vagrant environment:
|
2015-12-23 13:02:45 +00:00
|
|
|
|
|
|
|
`vagrant up`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Suspend the machine:
|
2015-12-23 13:02:45 +00:00
|
|
|
|
|
|
|
`vagrant suspend`
|
|
|
|
|
2019-04-30 08:52:55 +01:00
|
|
|
- Halt the machine:
|
|
|
|
|
|
|
|
`vagrant halt`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Connect to machine via SSH:
|
2015-12-23 13:02:45 +00:00
|
|
|
|
|
|
|
`vagrant ssh`
|