How to run OSM on Vagrant: Difference between revisions

From OSM Public Wiki
Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
Pre-built OSM vagrant images are available here: https://app.vagrantup.com/osm/boxes/osm
Pre-built OSM vagrant images are available here: https://app.vagrantup.com/osm/boxes/releasefour


1) Install vagrant (https://www.vagrantup.com) and virtualbox (https://www.virtualbox.org/).
1) Install vagrant (https://www.vagrantup.com) and virtualbox (https://www.virtualbox.org/).
Line 5: Line 5:
2) Create the initial the Vagrantfile:
2) Create the initial the Vagrantfile:


   vagrant init osm/osm --box-version 4.0.1
   vagrant init osm/releasefour --box-version 4.0.1


3) 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:
3) 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:

Revision as of 12:45, 10 June 2018

Pre-built OSM vagrant images are available here: https://app.vagrantup.com/osm/boxes/releasefour

1) Install vagrant (https://www.vagrantup.com) and virtualbox (https://www.virtualbox.org/).

2) Create the initial the Vagrantfile:

 vagrant init osm/releasefour --box-version 4.0.1

3) 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

4) Start OSM:

 vagrant up

5) 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