brouter
brouter copied to clipboard
Docker installation
Hi, as a person not experienced in Java, it would be awesome if you could provide a Dockerfile so that installation is easier.
Thanks for the great project :)
Please have a look at the web project It provides docker information.
Hi @afischerdev, thanks for you answer and sorry for my delay. As far as I can see the web project docker is only a frontend, you still need to host the brouter server so that it can work, maybe I'm wrong :S
I'm sorry I can't help on this. I've never dealt with docker.
I think a docker image is overkill, you just need to run brouter.jar
On Linux I do that using:
java -Xmx128M -Xms128M -Xmn8M -DmaxRunningTime=300 -cp brouter.jar btools.server.RouteServer segments4 profiles2 customprofiles 17778 3 127.0.0.1
That will start brouter and you can interact with it using a web browser or a script doing a web request, for example:
http://127.0.0.1:17778/brouter?lonlats=4.4302818%2C51.87271145|4.43619287%2C51.87913443&profile=trekking&alternativeidx=0&format=gpx
If running the .jar is too difficult, you can try running QMapShack with brouter, when active it will run brouter at port 17777
In case anyone is still interested: I've just recently put together a setup for running a "BRouter-Stack" (i.e. BRouter and Brouter-Web) with docker including a small shell script to download the required .rd5 files generously provided by Marcus Jaschen:
https://github.com/PartTimeDataScientist/Docker-BRouter-Web-Stack
Please make sensible use of the download script! My example downloads the tiles for all of Europe which are ~2.5GB in ~100 files! I don't want to be the root cause of Marcus or Arndt to stop providing these preprocessed files!