How to run OSM on Vagrant: Difference between revisions
From OSM Public Wiki
Marchettim (talk | contribs) No edit summary |
Garciadeblas (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
vagrant init osm/osm --box-version 4.0.1 | vagrant init osm/osm --box-version 4.0.1 | ||
2) If you would like to access the OSM Web client externally from the virtualbox VM, you can open up port 80 by editing the generated Vagrantfile. | 2) If you would like to access the OSM Web client externally from the virtualbox VM, you can open up port 80 by editing the generated Vagrantfile, i.e. uncommenting this line: | ||
# config.vm.network "forwarded_port", guest: 80, host: 8080 | # config.vm.network "forwarded_port", guest: 80, host: 8080 | ||
3) Start OSM: | |||
vagrant up | vagrant up | ||
4) ssh to OSM: | |||
vagrant ssh | vagrant ssh |
Revision as of 16:29, 7 June 2018
Pre-built OSM vagrant images are available here: https://app.vagrantup.com/osm/boxes/osm
The OSM vagrant image supports the virtualbox provider.
Make sure vagrant (https://www.vagrantup.com) and virtualbox (https://www.virtualbox.org/) is installed.
1) Create the initial the Vagrantfile:
vagrant init osm/osm --box-version 4.0.1
2) If you would like to access the OSM Web client externally from the virtualbox VM, you can open up port 80 by editing the generated Vagrantfile, i.e. uncommenting this line:
# config.vm.network "forwarded_port", guest: 80, host: 8080
3) Start OSM:
vagrant up
4) ssh to OSM:
vagrant ssh
The vagrant box file can also be downloaded manually:
wget https://vagrantcloud.com/osm/boxes/osm/versions/4.0.1/providers/virtualbox.box