fix(docker): setup-cache.sh local/docker 모드 지원#712
Merged
Conversation
setup-cache.sh를 재작성하여 두 가지 소스 모드를 지원: - `local`: 로컬 var/에서 cache/로 복제 (fetch_state.yaml 포함) - `docker`: Docker Hub 이미지에서 추출 (기존 동작) fetch_state.yaml이 cache에 누락되어 Docker 빌드 시 불필요한 21일치 페이지/첨부파일을 재다운로드하던 문제를 해결한다. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
setup-cache.sh를local/docker두 가지 모드로 재작성local: 로컬var/에서cache/로 복제 (cp -a) —fetch_state.yaml포함docker: Docker Hub 이미지에서 추출 후 이동 (mv) — 기존 동작./bin/setup-cache.sh docker명시적 호출로 수정log::do,namespace::function,set -o errtrace)Background
cache/에fetch_state.yaml이 누락되어 Docker 빌드 시--recent모드가 fetch state를 찾지 못하고, 기본 21일치 100개 페이지 + 첨부파일을 불필요하게 재다운로드하는 문제 발생.setup-cache.sh local모드로 로컬var/에서 cache를 구성하면fetch_state.yaml이 포함되어 문제 해결.Test results
bin/setup-cache.sh(인자 없이) → usage 출력, exit code 1bin/setup-cache.sh local→ 302개 숫자 디렉토리 +fetch_state.yaml복제 확인Auto-detected since_date출력 ("No fetch state" 경고 미출력)Skipped 100 pages (already up-to-date), 첨부파일 다운로드 0건🤖 Generated with Claude Code