Sign inSign up

ioteam/osrm-morocco

By ioteam

•Updated about 8 years ago

This container run osrm-backend project. OSRM Docker Image with Morocco OSM preloaded.

Image
0

1.1K

ioteam/osrm-morocco repository overview

⁠Dockerfile for OSRM Backend

This container run osrm-backend⁠ project. Open Source Routing Machine (OSRM) Docker Image Docker Hub⁠ with Morocco OSM preloaded.

⁠Installation

  1. Install Docker⁠

  2. Manual deploy (optional).

Pull automated build from Docker Hub:

$ docker pull ioteam/osrm-morocco

or build from GitHub:

$ docker build -t="ioteam/osrm-morocco" github.com/InteractiveObject/osrm-morocco

or you can clone & build:

$ git clone https://github.com/InteractiveObject/osrm-morocco.git  
$ docker build -t="ioteam/osrm-morocco-docker" osrm-morocco-docker/

⁠Usage

Run it:

docker run -d -p 5000:5000 ioteam/osrm-morocco:latest osrm Casablanca

Explanation:

  • -d - run container in background and print container ID
  • -p 5000:5000 - publish a container port to host
  • osrm - go via entrypoint script, w/o osrm keyword - classic mode
  • label - your label of OSM data

Example :

curl 'http://192.168.99.100:5000/trip/v1/driving/-7.604114303893213,33.564246042507165;-7.5032717430179545,33.55778473602738.json?steps=true&overview=simplified&geometries=geojson'

⁠Author

Interactive Object⁠

Used in : Yala covoiturage : https://yala.ma⁠

⁠License

The content of this project itself is licensed under the Creative Commons Attribution 3.0 license, and the underlying source code used to format and display that content is licensed under the MIT license.

Tag summary

Content type

Image

Digest

Size

285.5 MB

Last updated

about 8 years ago

docker pull ioteam/osrm-morocco