From 9ac142e1de9f276aaa7c8e97495da629a319f17a Mon Sep 17 00:00:00 2001 From: gahusb Date: Fri, 3 Apr 2026 01:50:04 +0900 Subject: [PATCH] =?UTF-8?q?deployer:=20flock=EC=9A=A9=20util-linux=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80,=20=ED=97=AC=EC=8A=A4=EC=B2=B4=ED=81=AC=20UR?= =?UTF-8?q?L=20localhost=20=ED=8F=AC=ED=8A=B8=EB=A1=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Dockerfile: util-linux 패키지 추가 (flock 명령어 제공) - deploy.sh: 헬스체크 URL을 Docker 서비스명 → localhost 호스트 포트로 변경 Co-Authored-By: Claude Opus 4.6 --- deployer/Dockerfile | 2 +- scripts/deploy.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deployer/Dockerfile b/deployer/Dockerfile index bda16d3..a7ffd25 100644 --- a/deployer/Dockerfile +++ b/deployer/Dockerfile @@ -1,7 +1,7 @@ FROM python:3.12-slim RUN apt-get update && apt-get install -y --no-install-recommends \ - git rsync ca-certificates curl \ + git rsync ca-certificates curl util-linux \ docker.io \ && rm -rf /var/lib/apt/lists/* diff --git a/scripts/deploy.sh b/scripts/deploy.sh index a12ffea..456f6a5 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -60,8 +60,8 @@ echo "Waiting for services to start..." sleep 5 HEALTH_OK=true -for endpoint in "http://backend:8000/health" "http://stock-lab:8000/health" "http://travel-proxy:8000/health" "http://music-lab:8000/health"; do - if ! curl -sf --max-time 5 "$endpoint" > /dev/null 2>&1; then +for endpoint in "http://localhost:18000/health" "http://localhost:18500/health" "http://localhost:19000/health" "http://localhost:18600/health"; do + if ! curl -sf --max-time 10 --retry 2 --retry-delay 3 "$endpoint" > /dev/null 2>&1; then echo "HEALTH_FAIL: $endpoint" HEALTH_OK=false fi