From b4608e5abf09ac79c996422de53001cb341f7425 Mon Sep 17 00:00:00 2001 From: shuim Date: Wed, 23 Sep 2026 15:02:27 +0900 Subject: [PATCH] =?UTF-8?q?fix(ci):=20bind=20mount=20=EB=94=94=EB=A0=89?= =?UTF-8?q?=ED=84=B0=EB=A6=AC=20=EC=82=AC=EC=A0=84=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?=E2=80=94=20token=5Fcache=20=EB=AF=B8=EC=A1=B4=EC=9E=AC?= =?UTF-8?q?=EB=A1=9C=20=EB=B0=B0=ED=8F=AC=20=EC=A0=84=EB=A9=B4=20=EC=A4=91?= =?UTF-8?q?=EB=8B=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit docker-compose.yml 에 ./token_cache 볼륨을 추가했는데 배포 디렉터리에 없어 'Bind mount failed: /volume1/docker/autostock/token_cache does not exist' 로 DB Migration 단계부터 실패, Deploy 가 스킵돼 2026-09-23 11:30 이후 변경분이 서버에 반영되지 않았다(컨테이너는 옛 이미지로 계속 구동). Co-Authored-By: Claude Opus 5 (1M context) --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 9057b83..ee89d7c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -53,6 +53,10 @@ print('All files OK') echo "=== Syncing source to deploy directory ===" mkdir -p ${DEPLOY_DIR} + # bind mount 대상 디렉터리 사전 생성 (없으면 docker 가 Bind mount failed 로 중단) + mkdir -p ${DEPLOY_DIR}/logs ${DEPLOY_DIR}/token_cache + chmod 777 ${DEPLOY_DIR}/token_cache 2>/dev/null || true + # .env 존재 확인 if [ ! -f "${ENV_FILE}" ]; then echo "WARNING: ${ENV_FILE} not found. Creating template..."