29 lines
867 B
Bash
Executable File
29 lines
867 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# docker-test.sh — Rebuild and redeploy Pipeline locally from scratch.
|
|
# Clears all Docker cache before building to ensure a clean slate.
|
|
set -euo pipefail
|
|
|
|
cd "$(git rev-parse --show-toplevel)"
|
|
|
|
echo "=== Stopping and removing existing containers, images, volumes ==="
|
|
docker compose down --rmi all --volumes --remove-orphans 2>/dev/null || true
|
|
|
|
echo "=== Pruning all dangling Docker resources ==="
|
|
docker system prune -a --volumes -f
|
|
|
|
echo "=== Removing Pipeline build cache ==="
|
|
docker builder prune -f 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" |