You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have spent several hours today trying to use postgis extension along with the postgres:10.1-alpine docker image. Everything works - except using the postgis extension. To me it seems like the alpinelinux ecosystem expects/looks for extensions in /usr/share/postgresql/ - where as the postgres image appears to set the SHAREDIR to /usr/local/share/postgresql/ which eventually leads to this problem:
CREATE EXTENSION IF NOT EXIST postgis;
ERROR: could not open extension control file "/usr/local/share/postgresql/extension/postgis.control": No such file or directory
.. when installing packages from the alpinelinux repo's.
And as such, will probably not be compatible with packages installed from alpine's repos. In order to use postgis in the alpine based image, I see three options:
compile it from source
make your own image that uses postgres and postgis packaged by alpine
Thanks for clearing this up. I have since solved it by using the alpine base image - and install from the repository instead and those packages works as I'd expected it.
Hi,
I have spent several hours today trying to use
postgis
extension along with thepostgres:10.1-alpine
docker image. Everything works - except using the postgis extension. To me it seems like the alpinelinux ecosystem expects/looks for extensions in/usr/share/postgresql/
- where as the postgres image appears to set theSHAREDIR
to/usr/local/share/postgresql/
which eventually leads to this problem:.. when installing packages from the alpinelinux repo's.
pg_config
Can anyone confirm that this is an issue?
The text was updated successfully, but these errors were encountered: