postgis / docker-postgis

Docker image for PostGIS
https://hub.docker.com/r/postgis/postgis/
MIT License
1.37k stars 462 forks source link

execute custom postgis.sh (migrating from mdillon/postgis) #232

Closed domdinicola closed 3 years ago

domdinicola commented 3 years ago

is there any way to migrate easily, i tried postgis/postgis but it doesn't load scripts as "docker-entrypoint-initdb.d/postgis.sh"

domdinicola commented 3 years ago

I guess it's a new location for the file "/docker-entrypoint-initdb.d/10_postgis.sh"

ImreSamu commented 3 years ago

I guess it's a new location for the file "/docker-entrypoint-initdb.d/10_postgis.sh"

yes,

$ docker run -it --rm postgis/postgis:13-3.1-alpine bash -c "ls -la /docker-entrypoint-initdb.d/*"
-rw-r--r--    1 root     root           617 Apr 12 05:39 /docker-entrypoint-initdb.d/10_postgis.sh

this is based on the upstream Postgres docker image documentation: