-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
What is the official way of adding postgres extensions, given postgres-alpine is a base image?
I tried to add postgresql-pglogical
and postgis
extensions by installing respective apk
packages, but this process, despite being the most intuitive and straightforward, failed for me.
Here's my Dockerfile
:
FROM postgres:9.6.4-alpine
RUN apk add --update --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ postgresql-pglogical postgis
Opening a now-closed issue in apline linux tracker made me realize that in a container above I ended up having two postgreses installed:
- one coming from the base image,
- one coming from the
apk
(apk
has to make sure that for given packages to install all dependencies are met; forpostgresql-pglogical
andpostgis
package calledpostgres
is a dependency).
I can see other issues asking for clarification around adding extensions:
- Installing plv8 Question: What is the best way to get PLV8 in alpine image? #290
- Installing pgtap What is the best way to have pgTAP integrated? #306
Maybe it makes sense to include a statement in a readme? Something like:
For any postgres extension not listed in postgres-contrib, make sure to compile them in your own image.
cocowalla, Apkawa, aaronjameslang, maboelnour, FreakTheMighty and 4 more
Metadata
Metadata
Assignees
Labels
No labels