#!/usr/bin/env bash set -euo pipefail cd "$(dirname "$0")/.." restore() { SESSION_TTL_SECONDS=3600 docker compose up -d --force-recreate --no-deps api python3 scripts/wait_ready.py } trap restore EXIT SESSION_TTL_SECONDS=2 docker compose up -d --force-recreate --no-deps api python3 scripts/wait_ready.py python3 student-tests/http_security.py expiry