This is a PostgreSQL Docker container for the Redash project.
It’s whole purpose in life is to automatically detect the
version of PostgreSQL used in the existing PostgreSQL data
directory, and automatically upgrade it (if needed) to the
latest version of PostgreSQL.
After this, the PostgreSQL server starts and runs as per
normal.
The reason this Docker container is needed, is because
the official Docker PostgreSQL container has no ability
to handle version upgrades, which leaves people to figure
it out manually (not great): docker-library/postgres#37
Building the container
To build the docker image, use:
This will take a few minutes to create the “pgautoupgrade:latest”
docker container, that you can use in your docker-compose.yml
files.
Testing the container image
To run the tests, use:
The test script creates an initial PostgreSQL databas