From 9204c4619a4aa70e8f5a187e34764ceca7ff8915 Mon Sep 17 00:00:00 2001 From: Zhi Date: Sat, 14 Mar 2026 07:27:21 +0000 Subject: [PATCH] Also clean wizard config volume --- cleanup.sh | 6 +++--- run-test.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cleanup.sh b/cleanup.sh index 591dec0..47761b1 100755 --- a/cleanup.sh +++ b/cleanup.sh @@ -11,10 +11,10 @@ echo "🧹 Cleaning up HarborForge Test containers..." # Stop and remove containers, networks (keep images and volumes) docker compose -f "$COMPOSE_FILE" down +# Also remove the wizard config volume +docker volume rm harborforgetest_wizard_config 2>/dev/null || true + echo "✅ Cleanup complete!" echo "" -echo "To also remove volumes (completely clean slate):" -echo " docker compose -f $COMPOSE_FILE down -v" -echo "" echo "To remove images (free disk space):" echo " docker compose -f $COMPOSE_FILE down --rmi local" diff --git a/run-test.sh b/run-test.sh index bd4a33d..de236ca 100755 --- a/run-test.sh +++ b/run-test.sh @@ -14,8 +14,8 @@ docker compose -f "$COMPOSE_FILE" run --rm test TEST_EXIT_CODE=$? echo "" -echo "🧹 Cleaning up containers (keeping images)..." -docker compose -f "$COMPOSE_FILE" down +echo "🧹 Cleaning up containers and volumes..." +docker compose -f "$COMPOSE_FILE" down -v if [ $TEST_EXIT_CODE -eq 0 ]; then echo "✅ Test passed!"