fix: keep the same storage containers in the restart hook

- scripts/restart.sh waits for postgres, valkey and s3 with
  up --wait --no-recreate: Compose 5.4 recreated containers whose image
  was pulled by the first up (index digest in the label, platform
  manifest digest on the check), s3-bootstrap could not join the new s3
  network namespace (exit 128) and make test-persistence failed on a
  clean host; found by the CI job on the Gitea runner
- record the runner failure, the repro across Compose 5.4.0 and 5.6.1
  and the fixed and control runs on a fresh Docker daemon in
  evidence/tests/ci-application.md, REPORT.md and the docker rule

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 18:41:31 +03:00
co-authored by Claude Opus 5.5
parent 12d8693799
commit 5e791a6fea
5 changed files with 134 additions and 8 deletions
+6 -2
View File
@@ -17,6 +17,10 @@ cd "$(dirname "$0")/.."
docker compose stop haproxy api
docker compose restart postgres valkey s3
# те же контейнеры: --wait только дожидается их healthcheck
docker compose up -d --wait postgres valkey s3
# те же контейнеры: --wait только дожидается их healthcheck.
# --no-recreate обязателен: Compose 5.4 пересоздаёт контейнер, если его
# образ скачивался при первом up (в метке — digest индекса, при сверке —
# манифеста платформы), и s3-bootstrap (network_mode: service:s3) после
# пересоздания s3 не стартует — код 128, start api падает
docker compose up -d --wait --no-recreate postgres valkey s3
docker compose start api haproxy