From 0feaa61bfc68a8856e61b0070591edde77e25b41 Mon Sep 17 00:00:00 2001 From: shuim Date: Mon, 12 Oct 2026 13:54:58 +0900 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20health-watch=20=EC=82=AC?= =?UTF-8?q?=EC=9D=B4=EB=93=9C=EC=B9=B4=20=EA=B8=B0=EB=8F=99=20=EC=8B=A4?= =?UTF-8?q?=ED=8C=A8=202=EA=B1=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - compose 명령의 $((10#..)) 는 dash 미지원 → 재시작 루프. 선행 0 제거 후 정수 비교 - Jenkins 가 scripts/ 를 복사하지 않아 마운트 대상 health_watch.py 부재 → Created 상태로 정지 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Y83Za98XsNw9zuA4FTUytN --- Jenkinsfile | 2 ++ docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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