DockerPostgresMigration/README.md

13 lines
402 B
Markdown
Raw Permalink Normal View History

2024-12-05 15:59:05 +00:00
# Docker migration helper
## Test
2024-12-06 10:32:50 +00:00
Create an outdated database
```bash
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
2024-12-05 15:59:05 +00:00
```
2024-12-06 10:32:50 +00:00
Perform the migration:
```bash
2024-12-06 11:14:53 +00:00
./build.sh && docker run -u 1000 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -v $(pwd)/test-db:/db --rm -it pierre42100/postgresmig:16to17
2024-12-05 15:59:05 +00:00
```