diff --git a/Jenkinsfile b/Jenkinsfile index 84b0f4f..4cdc2e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -66,6 +66,8 @@ print('All files OK') # 소스 동기화 (backend, mcp-server, frontend, docker-compose.yml, docker/) cp docker-compose.yml ${DEPLOY_DIR}/ cp -r docker/ ${DEPLOY_DIR}/ 2>/dev/null || true + # health-watch 사이드카가 ./scripts/health_watch.py 를 마운트한다 — 없으면 컨테이너가 Created 로 멈춘다(2026-10-12) + mkdir -p ${DEPLOY_DIR}/scripts && cp scripts/health_watch.py ${DEPLOY_DIR}/scripts/ rsync -a --delete backend/ ${DEPLOY_DIR}/backend/ || cp -r backend/ ${DEPLOY_DIR}/backend/ rsync -a --delete mcp-server/ ${DEPLOY_DIR}/mcp-server/ || cp -r mcp-server/ ${DEPLOY_DIR}/mcp-server/ rsync -a --delete frontend/ ${DEPLOY_DIR}/frontend/ || cp -r frontend/ ${DEPLOY_DIR}/frontend/ diff --git a/docker-compose.yml b/docker-compose.yml index a809a37..3abc507 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -199,8 +199,8 @@ services: - | while true; do k=$$(date -u -d '+9 hours' '+%u %H') - dow=$${k% *}; hh=$${k#* } - if [ "$$dow" -le 5 ] && [ "$$((10#$$hh))" -ge 9 ] && [ "$$((10#$$hh))" -le 15 ]; then + dow=$${k% *}; hh=$${k#* }; hh=$${hh#0} + if [ "$$dow" -le 5 ] && [ "$$hh" -ge 9 ] && [ "$$hh" -le 15 ]; then python /app/health_watch.py || true date -u '+%Y-%m-%dT%H:%M:%SZ' > /state/last_run fi