feat(status): раздел «Статус» — контейнеры, карточка, проверки (#14)
CI / ruff · mypy · pytest (pull_request) Successful in 1m11s

- docker-socket-proxy в Compose (только GET /containers/*), сокет только у него
- app/runtime/docker.py: read-only клиент; видны только контейнеры с меткой
  tgit.managed=true, чужие id отклоняются до запроса
- app/runtime/checks.py: running, health, рестарты за окно, CPU/RAM, ошибки
  в логе, HTTP-проба; у каждой проверки свой таймаут, отчёт всегда полный
- app/runtime/snapshots.py: снапшоты раз в 15 с в container_snapshots
- бот: список с 🟢🟡🔴⚪, карточка, «🩺 Запустить проверки», «🔄 Обновить»
- деплой ставит метки tgit.sha / tgit.deployed_at на контейнер бота
- имя джоба CD без неотрисованного выражения

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-17 11:29:23 +03:00
co-authored by Claude Opus 5.5
parent 22d9f0c5fe
commit 55286495cb
25 changed files with 1594 additions and 13 deletions
+30 -1
View File
@@ -33,7 +33,6 @@ class HelpTexts(_Strict):
class SectionTexts(_Strict):
commit: str
status: str
logs: str
alerts: str
members: str
@@ -124,6 +123,35 @@ class CommitTexts(_Strict):
push_failed: str
class StatusTexts(_Strict):
title: str
line: str
empty: str
unavailable: str
card: str
none: str
no_limit: str
check_button: str
refresh: str
to_list: str
to_card: str
checking: str
report_title: str
report_container: str
report_line: str
check_running: str
check_health: str
check_restarts: str
check_cpu: str
check_mem: str
check_log_errors: str
check_http: str
days: str
hours: str
minutes: str
seconds: str
class Texts(_Strict):
menu: MenuTexts
start: StartTexts
@@ -131,6 +159,7 @@ class Texts(_Strict):
section: SectionTexts
members: MembersTexts
commit: CommitTexts
status: StatusTexts
def load_texts(config_dir: Path) -> Texts: