First product

This commit is contained in:
Justin Visser 2026-02-17 14:51:25 +01:00
parent 778da9e2fc
commit 4433d7d2c4
157 changed files with 23975 additions and 0 deletions

27
scripts/smoke_compose.sh Executable file
View file

@ -0,0 +1,27 @@
#!/usr/bin/env bash
set -euo pipefail
export COMPOSE_PROJECT_NAME="${COMPOSE_PROJECT_NAME:-scholarr-smoke}"
export APP_PORT="${APP_PORT:-8000}"
export APP_HOST_PORT="${APP_HOST_PORT:-18000}"
export POSTGRES_PORT="${POSTGRES_PORT:-15432}"
cleanup() {
docker compose down -v --remove-orphans
}
trap cleanup EXIT
docker compose up -d --build
echo "Waiting for application health check..."
for _ in {1..45}; do
if curl -fsS "http://localhost:${APP_HOST_PORT}/healthz" >/dev/null; then
break
fi
sleep 2
done
curl -fsS "http://localhost:${APP_HOST_PORT}/healthz" >/dev/null
docker compose run --rm app uv run pytest tests/smoke -m "integration and smoke"