OSRM / Docker on an M1 MacBook
If you’re trying to setup OSRM with Docker on a MacBook you may run into trouble when extracting/processing map data. The script fails silently so isn’t much help.
Here’s the tutorial I’ve been following: https://medium.com/@anjulapaulus_84798/osrm-lets-run-it-on-docker-a437b6bf2f90
Specifically this part:
docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-extract -p /opt/car.lua /data/sri-lanka-latest.osm.pbf
It turns out that the issue is just your machine running out of memory: https://stackoverflow.com/questions/53157542/osrm-extract-silently-fails
In Docker I increased my memory limit to 5GB, and my swap to 2GB. This was enough for the GB/Ireland map.