Repository navigation
fix(compose): model-init image builds again — scripts context → tools/scripts, models via additional-context (item 2) - #1851
Merged
Conversation
…/scripts, models via additional-context (item 2) Caught by an actual `docker build` (not a guess): model-init's download scripts moved to tools/scripts with #1840, but the Dockerfile still COPYd them from the context root (which #1849 had pointed at legacy/src) — so `COPY scripts/download-models.sh` etc failed "not found". models.json is in legacy/src/shared; the scripts in tools/scripts; two homes, no single small context covers both (and there's no .dockerignore, so a repo- root context would ship the whole tree). - docker-compose.yml: model-init context → ./tools/scripts (scripts' home); models.json rides in as the `models` additional-context (./legacy/src/shared). - model-init.Dockerfile: COPY the scripts from the context root, `COPY --from=models models.json`, keep shared/ (download-avatar-models.sh sources shared/preflight.sh at runtime); DROP the dead generate-scene-models.ts + package.json COPYs (unused by the download CMD path). Build-proven on macOS (`docker build` — node:20-slim native arm64): all COPYs resolve, image exports clean. The model download is a runtime CMD, so the actual fetch is exercised by a real `up` (item 3). compose config green base/+gpu. Reliability spine #1 — both container BUILD-side items (core image #1850, model-init) now build-verified from this Mac; only GPU `up` / grid / fresh-OS install remain (genuinely Linux). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
Caught by an actual
docker build(not a guess): model-init's download scripts moved to tools/scripts with#1840, but the Dockerfile still COPYd them from the context root (which #1849 had pointed at legacy/src) —
so
COPY scripts/download-models.shetc failed "not found". models.json is in legacy/src/shared; the scriptsin tools/scripts; two homes, no single small context covers both (and there's no .dockerignore, so a repo-
root context would ship the whole tree).
modelsadditional-context (./legacy/src/shared).COPY --from=models models.json, keepshared/ (download-avatar-models.sh sources shared/preflight.sh at runtime); DROP the dead
generate-scene-models.ts + package.json COPYs (unused by the download CMD path).
Build-proven on macOS (
docker build— node:20-slim native arm64): all COPYs resolve, image exports clean.The model download is a runtime CMD, so the actual fetch is exercised by a real
up(item 3). compose configgreen base/+gpu. Reliability spine #1 — both container BUILD-side items (core image #1850, model-init) now
build-verified from this Mac; only GPU
up/ grid / fresh-OS install remain (genuinely Linux).Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo