Skip to content

routific/osrm-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for OSRM

This project lets you prepare and run a docker container with OSRM and the map of your choice.

Run

First you'll need to prepare the url to your .osm.pfb source file.

Run your data container. The data container will keep your map files even if you restart your OSRM server.

docker run \
    -v /data \
    --name osrm-data \
    acroca/osrm-docker:latest \
    echo "running data container..."

Now you can run your osrm server with any map.

docker run \
    -d \
    --volumes-from osrm-data \
    -p 5000:5000 \
    acroca/osrm-docker:latest \
    ./run.sh \
        Barcelona \
        "https://s3.amazonaws.com/metro-extracts.mapzen.com/barcelona_spain.osm.pbf"

The first argument is the name you want to give to the map. It's used mostly as a file name in the data storage. The second argument is the URL to your source map file.

Releases

No releases published

Packages

No packages published

Languages

  • Shell 90.7%
  • Makefile 9.3%