brouter icon indicating copy to clipboard operation
brouter copied to clipboard

Docker installation

Open lyz-code opened this issue 4 years ago • 5 comments

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

lyz-code avatar Nov 04 '21 09:11 lyz-code

Please have a look at the web project It provides docker information.

afischerdev avatar Nov 04 '21 12:11 afischerdev

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

lyz-code avatar Nov 18 '21 22:11 lyz-code

I'm sorry I can't help on this. I've never dealt with docker.

afischerdev avatar Nov 19 '21 15:11 afischerdev

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

polyscias avatar Nov 20 '21 08:11 polyscias

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!

PartTimeDataScientist avatar Jul 27 '23 13:07 PartTimeDataScientist