From cfbb3c24b81e9e46f1a9fc092fa3055920c27ed7 Mon Sep 17 00:00:00 2001 From: gahusb Date: Thu, 28 May 2026 08:29:03 +0900 Subject: [PATCH] =?UTF-8?q?fix(lotto):=20=5Fshared=20mount=20target=20?= =?UTF-8?q?=EC=9D=84=20=ED=8C=A8=ED=82=A4=EC=A7=80=20=EA=B2=BD=EB=A1=9C?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 마운트 `${RUNTIME_PATH}/_shared:/shared:ro` 가 컨테이너 안에서 `/shared/access_log.py` 만 노출하여 PYTHONPATH=/shared 에서 `from _shared.access_log import ...` 패키지 import 실패 (ModuleNotFoundError: No module named '_shared'). mount target 을 `/shared/_shared` 로 변경하여 `/shared/_shared/__init__.py` 가 패키지로 인식되게 함. Co-Authored-By: Claude Opus 4.7 (1M context) --- docker-compose.yml | 2 +- .../plans/2026-05-28-agent-office-docker-logs.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8a65a4b..1df9cbd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,7 +17,7 @@ services: - PYTHONPATH=/app:/shared volumes: - ${RUNTIME_PATH}/data:/app/data - - ${RUNTIME_PATH}/_shared:/shared:ro + - ${RUNTIME_PATH}/_shared:/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 b411658..003f619 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 - - ${RUNTIME_PATH}/_shared:/shared:ro # NEW + - ${RUNTIME_PATH}/_shared:/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 - - ${RUNTIME_PATH}/_shared:/shared:ro # NEW + - ${RUNTIME_PATH}/_shared:/shared/_shared:ro # NEW logging: # NEW driver: "json-file" options: @@ -1188,7 +1188,7 @@ install_access_log(app) - PYTHONPATH=/app:/shared volumes: ... - - ${RUNTIME_PATH}/_shared:/shared:ro + - ${RUNTIME_PATH}/_shared:/shared/_shared:ro logging: driver: "json-file" options: @@ -1235,7 +1235,7 @@ install_access_log(app) - PYTHONPATH=/app:/shared volumes: ... - - ${RUNTIME_PATH}/_shared:/shared:ro + - ${RUNTIME_PATH}/_shared:/shared/_shared:ro logging: driver: "json-file" options: @@ -1282,7 +1282,7 @@ install_access_log(app) - PYTHONPATH=/app:/shared volumes: ... - - ${RUNTIME_PATH}/_shared:/shared:ro + - ${RUNTIME_PATH}/_shared:/shared/_shared:ro logging: driver: "json-file" options: