From 03f543de58bf872ab93f02bc1734b7969c71a075 Mon Sep 17 00:00:00 2001 From: Andy Pfister Date: Thu, 14 Nov 2024 16:43:18 +0100 Subject: [PATCH] Test that booting up an empty pgautoupgrade container is possible --- test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test.sh b/test.sh index ae2a875..16b14c6 100755 --- a/test.sh +++ b/test.sh @@ -48,6 +48,15 @@ test_run() { sudo rm -rf postgres-data fi + # Start an empty pgautoupgrade container to make sure this is possible as well + TARGET_TAG="${TARGET}-${FLAVOR}" docker compose -f docker-compose-pgauto.yml up --wait -d + + # Shut down any containers that are still running + docker compose -f docker-compose-pgauto.yml down --remove-orphans + + # Delete the upgraded PostgreSQL data directory + sudo rm -rf postgres-data + import_adventure_works # Start pgautoupgrade container