2026-05-14 01:18:44 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
# docker-test.sh — Build and run Queue North Website in Docker for testing
|
|
|
|
|
# Usage: ./scripts/docker-test.sh
|
|
|
|
|
# Access: http://localhost:3001
|
2026-05-13 00:29:45 -05:00
|
|
|
|
2026-05-14 01:18:44 -05:00
|
|
|
set -euo pipefail
|
|
|
|
|
cd "$(dirname "$0")/.."
|
2026-05-13 00:29:45 -05:00
|
|
|
|
2026-05-14 01:18:44 -05:00
|
|
|
# Stop and remove existing container
|
|
|
|
|
DOCKER_API_VERSION=1.44 docker compose down 2>/dev/null || true
|
2026-05-13 00:29:45 -05:00
|
|
|
|
2026-05-14 01:18:44 -05:00
|
|
|
# Clean build
|
|
|
|
|
rm -rf dist node_modules/.vite 2>/dev/null
|
2026-05-13 00:29:45 -05:00
|
|
|
|
2026-05-14 01:18:44 -05:00
|
|
|
DOCKER_API_VERSION=1.44 docker compose up -d --build
|
2026-05-13 00:29:45 -05:00
|
|
|
|
2026-05-14 01:18:44 -05:00
|
|
|
echo "✓ Running on http://localhost:3001"
|
|
|
|
|
echo " Health check: http://localhost:3001/api/health"
|