Docker image to help with PostgreSQL major versions migration
Go to file
2024-12-06 13:10:24 +01:00
.gitignore Initial commit 2024-12-05 16:59:05 +01:00
build.sh Initial commit 2024-12-05 16:59:05 +01:00
Dockerfile WIP 2024-12-06 11:32:50 +01:00
migrate.sh Replace password with file 2024-12-06 13:10:24 +01:00
README.md Improve cmdline 2024-12-06 12:14:53 +01:00

Docker migration helper

Test

Create an outdated database

mkdir test-db
docker run --rm --name testdb -u 1000 -e POSTGRES_PASSWORD=password -v $(pwd)/test-db:/var/lib/postgresql/data -it postgres:16

Perform the migration:

./build.sh && docker run -u 1000 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -v $(pwd)/test-db:/db --rm -it pierre42100/postgresmig:16to17