#!/usr/bin/env bash # docker-test.sh — Rebuild and redeploy Pipeline locally from scratch. # Cleans only Pipeline Docker resources before building. # IMPORTANT: Do not add global Docker cleanup here (for example `docker system prune`). # This script must only stop/remove resources for the Pipeline compose project. set -euo pipefail cd "$(git rev-parse --show-toplevel)" echo "=== Stopping and removing Pipeline containers, images, volumes ===" docker compose down --rmi all --volumes --remove-orphans 2>/dev/null || true echo "=== Building and starting all containers ===" docker compose up --build -d echo "=== Waiting for services to be healthy ===" sleep 5 echo "=== Checking container status ===" docker compose ps echo "" echo "=== Deploy complete ===" echo 'Frontend: http://localhost:3030' echo 'Backend: http://localhost:8001'