Skip to content

fix(ai-server): DGX 이미지에 chromium + handoff_template — editorial PDF 렌더 복구 - #103

Merged
Seohyunjho merged 1 commit into
Masterfrom
fix/ai-server-editorial-chrome
Jul 28, 2026
Merged

Seohyunjho merged 1 commit into
Masterfrom
fix/ai-server-editorial-chrome

Conversation

@Seohyunjho

Copy link
Copy Markdown
Collaborator

문제

앱/대시보드에서 저장·표시되는 핸드오프 리포트 PDF가 **편집형(HTML→Chrome)**이 아니라 옛 ReportLab 폴백으로 나옴.

원인

DGX ai-server 이미지에 (1) Chrome 부재 → editorial_handoff._find_chrome()가 None → editorial 렌더 스킵, (2) docs/ai/handoff_template 미복사. 두 조건 모두라 DGX에서 editorial PDF가 한 번도 생성된 적 없음(로컬에만 Chrome 존재).

수정 (apps/ai-server/Dockerfile)

  • chromium + fonts-noto-cjk(Chrome 시스템 폰트 — 한글 렌더 필수) 설치
  • COPY docs/ai/handoff_template /app/docs/ai/handoff_template

안전성

  • py=sys.executable(matplotlib 보유), make_charts 의존성 충족, .dockerignore가 docs 미제외 확인
  • 렌더 실패 시 기존 ReportLab 폴백 유지 → 무회귀
  • 이미지 크기 증가(chromium+폰트 ~600MB) 감수

배포/검증

merge 후 DGX: git pull && docker compose ... up -d --build ai-server → 리포트 재생성 시 editorial PDF 생성 확인.

🤖 Generated with Claude Code

…DF 렌더 복구

DGX에서 저장되는 핸드오프 리포트가 편집형(HTML→Chrome PDF)이 아니라 옛 ReportLab
폴백으로 나오던 문제 수정. 원인: ai-server 이미지에 (1) Chrome 부재
(`editorial_handoff._find_chrome()` → None → 렌더 스킵), (2) `docs/ai/handoff_template`
미복사. 두 조건 모두라 DGX에서 editorial PDF가 한 번도 생성된 적이 없었다.

- Dockerfile: `chromium` + `fonts-noto-cjk`(Chrome 시스템 폰트 — 한글 렌더 필수) 설치.
- Dockerfile: `COPY docs/ai/handoff_template /app/docs/ai/handoff_template`
  (`_template_dir()`가 `_repo_root()/docs/ai/handoff_template`로 해석, 컨테이너 _repo_root=/app).

py=sys.executable(matplotlib 보유), make_charts 의존성 충족, .dockerignore가 docs 미제외 확인.
렌더 실패 시 기존 ReportLab 폴백 유지(무회귀).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Seohyunjho
Seohyunjho merged commit 4d5a844 into Master Jul 28, 2026
1 check passed
@Seohyunjho
Seohyunjho deleted the fix/ai-server-editorial-chrome branch July 28, 2026 05:48
Seohyunjho added a commit that referenced this pull request Jul 28, 2026
…PY 성공 (#104)

#103이 ai-server Dockerfile에 `COPY docs/ai/handoff_template`를 추가했으나, 루트
.dockerignore의 `docs` 제외 규칙 때문에 빌드 컨텍스트에서 걸러져 "not found"로 빌드
실패. `!docs/ai/handoff_template` + `/**` negation으로 이 서브트리만 재포함한다.
(docs 나머지는 계속 제외 — 런타임 불필요.)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant