openrouteservice
openrouteservice copied to clipboard
Rework the docker and docker-compose setup
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.
- ...?
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 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
.
@kklot Nightly is now truly available for amd64 as well as arm64 -> ors docker image arm64