Skip to content

Instantly share code, notes, and snippets.

@miccolis
Last active December 12, 2019 15:59
Show Gist options
  • Save miccolis/fcc504b1f071a4f8f51b68015dde349b to your computer and use it in GitHub Desktop.
Save miccolis/fcc504b1f071a4f8f51b68015dde349b to your computer and use it in GitHub Desktop.
GIS tools with Docker

Installing GDAL (ogr2ogr) in 2019

docker pull osgeo/gdal:alpine-small-3.0.2
docker run -it --rm -v /home/jeff/Data:/root/hostData/ osgeo/gdal:alpine-small-3.0.2 /bin/sh

Installing PostGIS in 2019

docker pull mdillon/postgis:11
docker run --name some-postgis -p 5432:5432 -e POSTGRES_PASSWORD= -d mdillon/postgis:11

To connect and run psql

docker exec -it  some-postgis psql -U postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment