From c7214b8896d67f1c3124d086dde0bc0c66df9599 Mon Sep 17 00:00:00 2001 From: gahusb Date: Thu, 28 May 2026 05:09:17 +0900 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20=5Fshared=20=EB=A7=88=EC=9A=B4?= =?UTF-8?q?=ED=8A=B8=20NAS=20=EB=B0=B0=ED=8F=AC=20=EC=8B=A4=ED=8C=A8=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deployer 컨테이너 안에서 docker compose 가 실행될 때 './_shared' 상대 경로가 deployer 내부 path '/runtime/_shared' 로 resolve 되어 host docker daemon 이 mount source 를 찾지 못하는 문제. 추가로 deploy-nas.sh 의 SERVICES 화이트리스트에 _shared 미등재라 rsync sync 자체에서 빠져 host 에 디렉토리 가 생성되지 않음. - scripts/deploy-nas.sh: SERVICES 에 _shared 추가 - docker-compose.yml: lotto volume 을 ./_shared → \${RUNTIME_PATH}/_shared 로 변경 - docs/superpowers/plans/...: Phase 2 task 11-14 의 docker-compose 패턴 동일 적용 (replace_all) Co-Authored-By: Claude Opus 4.7 (1M context) --- docker-compose.yml | 2 +- .../plans/2026-05-28-agent-office-docker-logs.md | 10 +++++----- scripts/deploy-nas.sh | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 50499f0..8a65a4b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,7 +17,7 @@ services: - PYTHONPATH=/app:/shared volumes: - ${RUNTIME_PATH}/data:/app/data - - ./_shared:/shared:ro + - ${RUNTIME_PATH}/_shared:/shared:ro logging: driver: "json-file" options: diff --git a/docs/superpowers/plans/2026-05-28-agent-office-docker-logs.md b/docs/superpowers/plans/2026-05-28-agent-office-docker-logs.md index 5a13bd8..b411658 100644 --- a/docs/superpowers/plans/2026-05-28-agent-office-docker-logs.md +++ b/docs/superpowers/plans/2026-05-28-agent-office-docker-logs.md @@ -404,7 +404,7 @@ git commit -m "feat(lotto): _shared/access_log install (Phase 1 PoC)" - PYTHONPATH=/app:/shared # NEW volumes: - ${RUNTIME_PATH}/data:/app/data - - ./_shared:/shared:ro # NEW + - ${RUNTIME_PATH}/_shared:/shared:ro # NEW logging: # NEW driver: "json-file" options: @@ -1136,7 +1136,7 @@ install_access_log(app) - PYTHONPATH=/app:/shared # NEW volumes: - ${RUNTIME_PATH}/data/stock:/app/data - - ./_shared:/shared:ro # NEW + - ${RUNTIME_PATH}/_shared:/shared:ro # NEW logging: # NEW driver: "json-file" options: @@ -1188,7 +1188,7 @@ install_access_log(app) - PYTHONPATH=/app:/shared volumes: ... - - ./_shared:/shared:ro + - ${RUNTIME_PATH}/_shared:/shared:ro logging: driver: "json-file" options: @@ -1235,7 +1235,7 @@ install_access_log(app) - PYTHONPATH=/app:/shared volumes: ... - - ./_shared:/shared:ro + - ${RUNTIME_PATH}/_shared:/shared:ro logging: driver: "json-file" options: @@ -1282,7 +1282,7 @@ install_access_log(app) - PYTHONPATH=/app:/shared volumes: ... - - ./_shared:/shared:ro + - ${RUNTIME_PATH}/_shared:/shared:ro logging: driver: "json-file" options: diff --git a/scripts/deploy-nas.sh b/scripts/deploy-nas.sh index 7e91e13..7b1f7c1 100644 --- a/scripts/deploy-nas.sh +++ b/scripts/deploy-nas.sh @@ -2,7 +2,7 @@ set -euo pipefail # ── 서비스 목록 (한 곳에서만 관리) ── -SERVICES="lotto travel-proxy deployer stock music-lab insta-lab realestate-lab agent-office personal packs-lab video-lab image-lab tarot-lab saju-lab nginx scripts" +SERVICES="lotto travel-proxy deployer stock music-lab insta-lab realestate-lab agent-office personal packs-lab video-lab image-lab tarot-lab saju-lab nginx scripts _shared" # 1. 자동 감지: Docker 컨테이너 내부인가? if [ -d "/repo" ] && [ -d "/runtime" ]; then