openrouteservice icon indicating copy to clipboard operation
openrouteservice copied to clipboard

Rework the docker and docker-compose setup

Open MichaelsJP opened this issue 1 year ago • 3 comments

The docker image already brought improvements in terms of size, stability, and startup time. What couldn't be solved is the complexity of the setup. It has historically grown to what it is now. A new, generally overhauled docker setup would be useful in my opinion. This could include:

  • Automatic pbf download
  • Auto-rebuild on .pbf change
  • Auto-rebuild or startup block if the graph is started with a different ors version
  • reduce the number of volumes to one or two. A general folder would be easier to handle. The new Dockerfile already stores all relevant tomcat, ors logs, etc. in the /home/ors folder.
  • With a combined folder, an osm.pbf could be referenced by env instead of a volume mount.
  • ...?

MichaelsJP avatar Mar 16 '23 09:03 MichaelsJP

I tried to build on Mac M1, it only built with adding

platform: linux/amd64

is this recommended? because Tomcat runs fine including manager,...but click /ors it just keep spinning forever. Maybe adding support for M1 as well?

kklot avatar May 27 '23 08:05 kklot

@kklot Thanks for reporting. Indeed there has been an error while building the docker hub images. It should be fixed with #1458 . If you pull from openrouteservice/openrouteservice:nightly after the merge you should get a compatible build for linux/arm64/v8.

MichaelsJP avatar May 31 '23 12:05 MichaelsJP

@kklot Nightly is now truly available for amd64 as well as arm64 -> ors docker image arm64

MichaelsJP avatar Jun 02 '23 09:06 MichaelsJP