Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1.36 KB

README.md

File metadata and controls

45 lines (27 loc) · 1.36 KB

postgres

Postgres image mirror from https://hub.docker.com/_/postgres

cf. Github repository: https://github.com/docker-library/docs/tree/master/postgres

Hosted on GitHub Container Registry (ghcr.io) to avoid DockerHub pull limitations, and easily deploy on clusters (such as Kubernetes).

Automatically updated

Publish Docker image

The image on ghcr.io is automatically updated every week (Monday at 3:00 GMT+1) by a GitHub Actions workflow to match the latest tag of Postgres

Run

docker run -it -v $(pwd):/root ghcr.io/maastrichtu-library/postgres:latest

In the container:

  • User, with sudo privileges: root
  • Workspace path: /root

Set entrypoint to tail -f /dev/null to keep it hanging as a service.

docker run -it --entrypoint tail -v $(pwd):/root ghcr.io/maastrichtu-library/postgres:latest -f /dev/null

Build

Feel free to edit the Dockerfile to install additional packages in the image.

docker build -t ghcr.io/maastrichtu-library/postgres:latest .

Push

docker push ghcr.io/maastrichtu-library/postgres:latest