fix: close deployment decoupling review
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
# Smoke test del deploy standalone ThothII (core + frontend).
|
||||
# Usa docker-compose.dev.yml (rete propria, porte host).
|
||||
# Prereq: deploy/thothii.env popolato, endpoint esterni configurati e profilo Pi locale.
|
||||
# Prereq: deploy/env/local.env popolato, endpoint esterni e file Pi/segreti configurati.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
DC="docker compose -f docker-compose.dev.yml"
|
||||
DC=(docker compose --env-file deploy/env/local.env -f docker-compose.dev.yml)
|
||||
WS="/app/harness/workspaces/local.yaml"
|
||||
|
||||
echo "== ThothII standalone smoke =="
|
||||
$DC config --quiet
|
||||
"${DC[@]}" config --quiet
|
||||
|
||||
echo "== Build =="
|
||||
$DC build
|
||||
"${DC[@]}" build
|
||||
|
||||
echo "== Up (wait health) =="
|
||||
$DC up -d --wait
|
||||
"${DC[@]}" up -d --wait
|
||||
|
||||
echo "== Core health =="
|
||||
curl -fsS http://localhost:8787/health && echo
|
||||
@@ -24,12 +24,12 @@ echo "== Frontend serve =="
|
||||
curl -fsSI http://localhost:8090/ | head -1
|
||||
|
||||
echo "== Wiring check (config + DWH ping; -c è per-command) =="
|
||||
$DC exec -T core tht config check -c "$WS" || \
|
||||
"${DC[@]}" exec -T core tht config check -c "$WS" || \
|
||||
echo "(config check non verde: verificare .env/ruoli DB)"
|
||||
$DC exec -T core tht db ping -c "$WS" || \
|
||||
"${DC[@]}" exec -T core tht db ping -c "$WS" || \
|
||||
echo "(db ping non verde: verificare ruolo thoth_dwh_reader + rete)"
|
||||
|
||||
echo "== Down =="
|
||||
$DC down
|
||||
"${DC[@]}" down
|
||||
|
||||
echo "OK: smoke standalone passato."
|
||||
|
||||
Reference in New Issue
Block a user