This repository contains a Dockerfile for building a PostgreSQL image with the temporal_tables
extension installed. The image is based on postgres:16
.
To build the Docker image, run the following command in the root directory of this repository:
docker build -t my-postgres-temporal-tables .
This will create a Docker image named my-postgres-temporal-tables
.
To run the Docker image, use the following command:
docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d my-postgres-temporal-tables
Replace mysecretpassword
with the password you want to use for the PostgreSQL postgres
user.
This repository uses GitHub Actions to automatically build the Docker image and push it to the GitHub Container Registry. The workflow is triggered on every push to the repository and is also scheduled to run on a weekly basis.
The GitHub Actions workflow is defined in the .github/workflows/docker-build.yml
file.