HUB
Sign inSign up

dimagi/docker-postgresql

By dimagi

•Updated 8 months ago

PostgreSQL + pghashlib + plproxy

Image
0

100K+

dimagi/docker-postgresql repository overview

⁠PostgreSQL Docker Plus

This builds on the official PostgreSQL docker image⁠ to add the following plugins:

⁠Process for creating a Dockerhub image for a new Postgres version

  • Create or checkout the branch for the major version of Postgres. (example: git checkout 14).
  • Update the Dockerfile with the specific point release of Postgres (example: 14.3).
  • Build the image using the process documented below⁠.
  • Update the Dockerfile and repeat previous step as necessary until success.
  • Commit changes.
  • Create a tag for the point release (example: git tag 14.3).
  • Push the branch and tags (example: git push; git push --tags).
  • Verify build is queued on Dockerhub⁠.

⁠Building manually

export tag=<version-tag>
export base_image=dimagi/docker-postgresql
export image=$base_image:$tag

# list existing image
docker images "$base_image"

# optional: forcibly remove old container and image
docker rm -fv "$image"
docker rmi "$image"

# build new image
docker build -t "$image" .
Tag summary
Recent tags
Content type
Image
Digest
sha256:d10db1739…
Size
442.8 MB
Last updated
8 months ago
docker pull dimagi/docker-postgresql:latest