Лабораторная 2: PostgreSQL, сессии, Valkey, трек 2

This commit is contained in:
2026-10-16 19:39:21 +03:00
commit aa0fd15616
82 changed files with 7996 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# Доказательство, что restart-hook реально перезапустил процессы: StartedAt контейнеров ДО и ПОСЛЕ + прогон теста.
set -eu
cd "$(dirname "$0")/.."
DC="docker compose --env-file .env"
show() { for s in postgres valkey api; do printf '%-9s StartedAt=%s\n' "$s" "$(docker inspect -f '{{.State.StartedAt}}' "$($DC ps -q $s)")"; done; }
echo "== before =="; show; $DC ps
make test-persistence ACTION_SCRIPT=scripts/restart.sh
echo "== after =="; show; $DC ps