https://github.com/dhis2/postgres-contrib
Postgres Docker image with contribution package enabled
https://github.com/dhis2/postgres-contrib
docker synced-settings
Last synced: 12 months ago
JSON representation
Postgres Docker image with contribution package enabled
- Host: GitHub
- URL: https://github.com/dhis2/postgres-contrib
- Owner: dhis2
- Created: 2020-02-20T14:40:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-14T09:52:12.000Z (over 4 years ago)
- Last Synced: 2025-01-01T19:26:54.496Z (over 1 year ago)
- Topics: docker, synced-settings
- Language: Dockerfile
- Size: 62.5 KB
- Stars: 0
- Watchers: 27
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# postgres-contrib
Postgres Docker image with contribution package enabled
## Why this exists
This is used by the [App Hub](https://github.com/dhis2/app-hub/blob/master/server/migrations/20191217103142_auto-uuid.js#L23)[1] to get
access to the [`uuid-ossp`](https://www.postgresql.org/docs/10/uuid-ossp.html)[2] extension in Postgres.
When this was created the official Docker image for Postgres didn't include contrib modules, and the available ones on
Docker Hub were too old for us to use because they weren't compatible with the Postgres version we are using on AWS RDS.
This can be deprecated if/when we:
- migrate to generating UUIDs on the Server in code instead of in the DB,
- use an official image that is kept up-to-date and has the contrib modules enabled.
## Links
1. https://github.com/dhis2/app-hub/blob/master/server/migrations/20191217103142_auto-uuid.js#L23
2. https://www.postgresql.org/docs/10/uuid-ossp.html