This repository contains instructions for building a Docker image containing software for importing OpenStreetMap data into a PostgreSQL database using osm2pgsql. It is partly based on the Switch2OSM instructions.
Based also on geo-data/openstreetmap-tiles-docker
As well as providing an easy way to set up and run osm2pgsql it also provides instructions for managing the back end database, allowing you to:
- Create the database
- Import OSM data into the database
- Drop the database
Run docker run xingfuryda/openstreetmap-import-docker for usage instructions.
The container runs Ubuntu 14.04 (Trusty) and is based on the phusion/baseimage-docker. It includes:
- Postgresql 9.4
- The latest Osm2pgsql code (at the time of image creation 0.89 December 2015)
This is a work in progress and although generally adequate it could benefit from improvements. Please submit issues on GitHub. Pull requests are very welcome!