Skip to content

Deployment using Chef

Chris Aumann edited this page Sep 19, 2013 · 2 revisions

I've created an osrm cookbook that we're using at the dynamic ridesharing service flinc. It can be used to deploy osrm-routed as well as download, prepare and extract OSRM maps.

For example, to download, extract and prepare the OSRM map for Europe, use this in your recipe:

include_recipe 'osrm::install_git'

osrm_map 'europe' do
  action :create_if_missing
end

And spawn up routed

osrm_routed 'europe' do
  user   'osrm-routed'
  listen '0.0.0.0'
  port   5000
end

Have a look at the cookbooks readme for more details.