Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade postgres to 15.6 in preparation for the production upgrade #847

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

marcospri
Copy link
Member

@marcospri marcospri commented Apr 17, 2024

For:

Testing and local env setup

If you don't have the service running you can just

make services dev

and the right postgres version will start.

If you do have a container running the upgrade will stop not upgrade it's contents, we can nuke the current postgres volume:

  • Find the the volume ID:
docker inspect -f '{{ .Mounts }}' checkmate-postgres-1
[{volume e22d1a81e263ceb8a63b29a14bc7ec2dbe9f023e7c05742cba6694a4999a6076 /var/lib/docker/volumes/e22d1a81e263ceb8a63b29a14bc7ec2dbe9f023e7c05742cba6694a4999a6076/_data /var/lib/postgresql/data local  true }]
  • Stop the container

docker compose down

  • And remove the volume:

docker volume rm e22d1a81e263ceb8a63b29a14bc7ec2dbe9f023e7c05742cba6694a4999a6076

  • Start the DB and server

make services dev

@marcospri marcospri merged commit bddebc7 into main Apr 19, 2024
4 checks passed
@marcospri marcospri deleted the postgres-upgrade branch April 19, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants