ЛР2 на 4: PostgreSQL, Argon2id, Redis-сессии и persistence.
Skeleton contracts / contracts (pull_request) Blocked by required conditions
Skeleton contracts / contracts (pull_request) Blocked by required conditions
Compose-стенд, student-tests (expiry/EXPLAIN), REPORT и шпаргалка DEFENSE.
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
# Поднять локальный стенд lab2 из корня репозитория.
|
||||
set -eu
|
||||
ROOT=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
|
||||
cd "$ROOT"
|
||||
test -f .env || cp -n .env.example .env
|
||||
docker compose --env-file .env config --quiet
|
||||
docker compose --env-file .env up -d --build
|
||||
echo "ждём http://127.0.0.1:8080/health/ready …"
|
||||
for i in $(seq 1 60); do
|
||||
if curl -sf http://127.0.0.1:8080/health/ready >/dev/null; then
|
||||
echo "ready"
|
||||
exit 0
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
echo "timeout waiting for ready" >&2
|
||||
exit 1
|
||||
Reference in New Issue
Block a user