Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.
/ osrm-morocco Public archive

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

Notifications You must be signed in to change notification settings

0x53dev/osrm-morocco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published