Repository navigation
fix: include scripts directory in backend image - #93
Merged
Merged
Conversation
jeongmin1999
approved these changes
Jul 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
배경
프로덕션에서 인사이트맵(
research모드)에 개념이 하나도 표시되지 않는 문제가 있었습니다. 원인을 추적해보니 인사이트맵은ontology_concepts/ontology_edges테이블 데이터를 읽는데, 이 테이블은alembic upgrade로 스키마만 생성되고scripts/seed_ontology.py를 별도로 실행해야 데이터가 채워집니다. 그런데 이 스크립트가scripts/디렉토리째로 Docker 이미지 빌드에서 빠져 있어서, 배포된 컨테이너 안에서는 애초에 실행할 수 없었습니다.변경 내용
Dockerfile에COPY scripts ./scripts추가 — 이미지에seed_ontology.py가 포함되도록 함영향 범위
db-seedinit 컨테이너 추가와 짝을 이룹니다 — 배포 파이프라인에서db-migrate다음에python scripts/seed_ontology.py를 자동 실행하려면 이 이미지 변경이 선행되어야 합니다.테스트
docker build로 이미지에scripts/디렉토리가 포함되는지 확인 필요(리뷰 시 CI 빌드로 검증됨)kubectl cp+kubectl exec로seed_ontology.py를 1회 수동 실행해 긴급 조치 완료(ontology_concepts38개,ontology_edges55개 확인)