Public | Automated Build

Last pushed: 5 months ago
Short Description
Includes osm2pgsql, for loading OpenStreetMap (OSM) data into a postgresql db.
Full Description

osm2pgsql

A Docker image with osm2pgsql, the tool for importing OpenStreetMap data into a Postgresql database.

Build Instructions

Can be built from the Dockerfile:

# docker build -t onelouder/osm2pgsql github.com/level11consulting/osm2pgsql.git

This currently builds osm2pgsql for Debian from a specific tag; see the Dockerfile for the specific version. Alternatively, specify the tag and download the image from the Docker Hub.

Running osm2pgsql

Once the image is built, you can run a single-use container with osm2pgsql. Args will be passed to bash, so you will have access to environment variables in your run command.

# docker run -it --rm onelouder/osm2pgsql -c 'osm2pgsql -h'

When used with a postgis container, it can import data directly into the database:

# docker run -it --rm --link postgis:pg -v ~/inbox:/inbox -v ~/outbox:/outbox onelouder/osm2pgsql

About

This Dockerfile was built with information from the Ubuntu 14.04 Switch2OSM guide.

Related Docker Images

Docker Pull Command
Owner
onelouder
Source Repository