This builds on the official PostgreSQL docker image to add the following plugins:
- 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.
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" .