From a0e950bcabbaa035096a674997e9058c3485d3ac Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Thu, 3 Oct 2024 18:54:16 +1000 Subject: [PATCH] ls -la and df output --- test.sh | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/test.sh b/test.sh index 71bf453..d524460 100755 --- a/test.sh +++ b/test.sh @@ -36,6 +36,11 @@ test_run() { sudo rm -rf postgres-data fi + ### FIXME: + echo "ls #1" + ls -la postgres-data + ps -ef f + # Create the PostgreSQL database using a specific version of PostgreSQL docker compose -f "docker-compose-pg${VERSION}.yml" run --rm server create_db @@ -54,17 +59,27 @@ test_run() { # 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 + + ### FIXME: + echo "ls #2" + ls -la postgres-data + ps -ef f + ## ## Tests for one shot mode ## banner '-' "Testing 'one shot' automatic upgrade mode for PostgreSQL ${VERSION} to ${TARGET}" - # Delete the upgraded PostgreSQL data directory - sudo rm -rf postgres-data - # Create the PostgreSQL database using a specific version of PostgreSQL docker compose -f "docker-compose-pg${VERSION}.yml" run --rm server create_db + ### FIXME: + echo "ls #3" + ls -la postgres-data + ps -ef f + # Run the PostgreSQL container in one shot mode TARGET_TAG="${TARGET}-${FLAVOR}" docker compose -f docker-compose-pgauto.yml run --rm -e PGAUTO_ONESHOT=yes postgres @@ -80,6 +95,11 @@ test_run() { # Shut down any containers that are still running docker compose -f docker-compose-pgauto.yml down + ### FIXME: + echo "ls #4" + ls -la postgres-data + ps -ef f + # If running on CI, delete the Postgres Docker image to avoid space problems if [ -n "$CI" ]; then docker rmi -f $(docker images postgres -q)