Files
mtusi2026lab7/scripts/check_fresh_migrations.sh
T
Xabenskie 4eca49fe3d
Grade 3 secure application acceptance / secure (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
[+] lab7
2026-11-30 09:09:57 +03:00

12 lines
556 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
project="mtusi-lab7-fresh-$$"
cleanup() { docker compose -p "$project" down --volumes >/dev/null 2>&1; }
trap cleanup EXIT INT TERM
docker compose -p "$project" up -d --wait --wait-timeout 120 postgres redis redis-tls minio minio-init
docker compose -p "$project" run --rm --no-deps migrate
docker compose -p "$project" run --rm --no-deps migrate
docker compose -p "$project" run --rm --no-deps student-tests
printf '%s\n' 'PASS: TLS-backed fresh volumes, migrations 001–005 twice and full operator test suite.'