forked from mtusi2026/mtusi2026lab5
12 lines
373 B
Bash
Executable File
12 lines
373 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
restore() {
|
|
docker compose up -d --no-deps --force-recreate --scale api=2 api
|
|
python3 scripts/stack.py wait --count 2
|
|
}
|
|
trap restore EXIT
|
|
SESSION_TTL_SECONDS=2 docker compose up -d --no-deps --force-recreate --scale api=2 api
|
|
python3 scripts/stack.py wait --count 2
|
|
python3 student-tests/checks.py --expiry
|