chore: add docker-test.sh (clean rebuild script), remove docker-push.sh
This commit is contained in:
parent
5637c41d1a
commit
f8f885a499
|
|
@ -0,0 +1,29 @@
|
|||
#!/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"
|
||||
Loading…
Reference in New Issue