Add test run and cleanup scripts
This commit is contained in:
20
cleanup.sh
Executable file
20
cleanup.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# Cleanup script for HarborForge Test
|
||||
# Removes containers and networks, but keeps images
|
||||
|
||||
set -e
|
||||
|
||||
COMPOSE_FILE="docker-compose-frontend.yml"
|
||||
|
||||
echo "🧹 Cleaning up HarborForge Test containers..."
|
||||
|
||||
# Stop and remove containers, networks (keep images and volumes)
|
||||
docker compose -f "$COMPOSE_FILE" down
|
||||
|
||||
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"
|
||||
Reference in New Issue
Block a user