Giter Club home page Giter Club logo

osrm-backend-docker's Introduction

Dockerfile for osrm-backend

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

Installation

  1. Install Docker

  2. Manual deploy (optional).

Pull automated build from Docker Hub:

$ docker pull cartography/osrm-backend-docker

or build from GitHub:

$ docker build -t="cartography/osrm-backend-docker" github.com/cartography/osrm-backend-docker

or you can clone & build:

$ git clone https://github.com/cartography/osrm-backend-docker.git  
$ docker build -t="cartography/osrm-backend-docker" osrm-backend-docker/

Usage

Run it:

docker run -d -p 5000:5000 cartography/osrm-backend-docker:latest osrm label "http://your/path/to/data.osm.pbf"

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
  • url - link to OSM data in PBF format

For example:

docker run -d -p 5000:5000 --name osrm-api cartography/osrm-backend-docker:latest osrm California "http://download.geofabrik.de/north-america/us/california-latest.osm.pbf"

Start OSRM Frontend

docker run -d --link osrm-api:api --name osrm-mos-front --restart=always -p 8080:80 cartography/osrm-frontend-docker

You must --link osrm-frontend container with osrm-api with api tag. Or use API_PORT_5000_TCP_ADDR and API_PORT_5000_TCP_PORT variables to set host and port of the api.

You can test it by visiting http://container-ip:8080

osrm-backend-docker's People

Contributors

nostra avatar winsento avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.