Skip to content

pscott-au/osrm-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for OSRM

This project lets you prepare and run a docker container with OSRM (stable version 4.7.0) and the map of your choice.

Build

Run make in the directory with the dockerfile.

Run

Go to run-osrm.sh and adapt MAP and MAP_URL to your needs with any .osm.pfb source file you need.

Run your data container:

./run-data.sh

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

Now you can run your osrm server:

./run-osrm.sh

or if you want to modify map being used inline:

docker run \
    -d \
    --volumes-from osrm-data \
    -p 5000:5000 \
    localshop/osrm-docker:latest \
    ./start.sh \
        GoldCoast \
        "http://dev.pscott.com.au/gc.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.

About

Docker meets OSRM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 96.5%
  • Makefile 3.5%