Simple ubuntu-based image with osm2pgsql
docker build -t osm2pgsql
This uses a local volume where the pbf is stored and assumes a network where a postgis container is running
docker run -i -t -v /Users/aaryno/osm-downloads:/data/downloads --network postgis --rm aaryno/osm2pgsql sh -c 'osm2pgsql -U postgres -W -d iceland -H postgis -s -G --number-processes 8 -C 20480 /data/downloads/iceland-latest.osm.pbf'
Source at https://github.com/ua-gist-open-source/docker-osm2pgsql
Based on https://www.cybertec-postgresql.com/en/open-street-map-to-postgis-the-basics/
Content type
Image
Digest
Size
353.4 MB
Last updated
over 4 years ago
docker pull aaryno/osm2pgsql