postgis / docker-postgis

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

SFCGAL not created in debian version #338

Open latot opened 1 year ago

latot commented 1 year ago

Hi all, actually for some reason the extension SFCGAL is not created in the debian version, I'm testing in the postgis/postgis:latest version.

Create the extension works!

Thx!

ImreSamu commented 1 year ago

Hi @latot ,

Currently, this program runs on initialization : https://github.com/postgis/docker-postgis/blob/master/15-3.3/initdb-postgis.sh

And there are historical reasons for this, some want more extensions, some want less, some want configurable (https://github.com/postgis/docker-postgis/issues/187 )

NOW: If you want other extensions to be initialized automatically, you will need to configure them. see https://hub.docker.com/_/postgres/ --> "Initialization scripts" examples for hacking: https://github.com/postgis/docker-postgis/issues/191#issuecomment-623124954

If for some reason it doesn't work, let me know and I'll help.