fix(deploy): health-watch 사이드카 기동 실패 2건 수정
- compose 명령의 $((10#..)) 는 dash 미지원 → 재시작 루프. 선행 0 제거 후 정수 비교 - Jenkins 가 scripts/ 를 복사하지 않아 마운트 대상 health_watch.py 부재 → Created 상태로 정지 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y83Za98XsNw9zuA4FTUytN
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -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/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user