I’ve managed to get a local install of ORS working on Windows/Docker before several times, but every time I come back to it after a few months, something has changed which requires some kind of change to my process. I’m struggling to figure out how to load a specific .pbf file. This used to be easy using a command like…
"C:\OpenRouteService\custom.pbf":/home/ors/ors-core/data/osm_file.pbf
…however I’ve noticed that the above command doesn’t work any more because the /home/ors/ors-core/data directory seems to have been confusingly abolished.
Here are my steps:
-
Execute this command in the windows command prompt. I used to use ‘latest’ instead of ‘nightly’ but was told that ‘latest’ is not actually updated. Advice welcome on which version to use!
docker pull openrouteservice/openrouteservice:nightly
-
Then run this windows command which does all the important stuff, and which I’ve adapted based on advice here and here
docker run -dt --name ors-app -p 8080:8082 -v C:/OpenRouteService/graphs:/home/ors/graphs -v C:/OpenRouteService/elevation_cache:/home/ors/elevation_cache -v C:/OpenRouteService/logs/ors:/home/ors/logs -v C:/OpenRouteService/conf:/home/ors/config -v "C:\OpenRouteService\italy-latest.osm.pbf":/home/ors/files/osm_file.pbf -e "JAVA_OPTS=-Xms2g -Xmx4g" openrouteservice/openrouteservice:nightly
Firstly is this the correct approach? I wish that instructions for Windows users were provided, it would surely lead to more widespread adoption of ors! How do I load my custom pbf?
And why do the folders keep changing? For example why has :/home/ors/ors-core/data/graphs become :/home/ors/graphs and how are we meant to keep up with these changes?
Thanks in advance.