每个服务重建后轮询容器状态最长 60s: - 容器保持 running 10s 以上 → 更新成功 - 容器已 exited → 立即触发回滚(retag 旧镜像 ID 重建容器) - 超时未就绪 → 同样触发回滚 tenant-service 的自更新助手容器也包含相同逻辑: 60s 内不健康则 retag 旧镜像并重建,保证平台始终可访问。 拉取镜像前统一保存各服务旧镜像 ID(captureCurrentImageIds), 回滚时通过 docker tag <old-id> <image:tag> 恢复旧版本。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src/main | ||
| pom.xml | ||