fix(registry): copy catalog TOML files into runtime Docker image#385
fix(registry): copy catalog TOML files into runtime Docker image#385toadkicker merged 2 commits intomainfrom
Conversation
The runtime stage never received the pap-agents/catalog directory, so the "Install Catalog Agents" button always failed with "Catalog directory not found". Copy it from the builder stage and set PAP_CATALOG_PATH so the server resolves it without requiring a manual env override. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
| Filename | Overview |
|---|---|
| apps/registry/Dockerfile | Adds COPY of catalog TOML files from builder into runtime image at /app/catalog and sets PAP_CATALOG_PATH env var; source path matches builder stage layout, destination matches env var — change is correct and complete. |
Sequence Diagram
sequenceDiagram
participant B as Builder Stage
participant R as Runtime Stage (debian:trixie-slim)
participant S as pap-registry server
B->>B: cargo leptos build --release
B->>B: produces /build/crates/pap-agents/catalog/*.toml
B->>R: COPY --from=builder /build/target/release/pap-registry
B->>R: COPY --from=builder /build/target/site
B->>R: COPY --from=builder /build/apps/registry/assets
B->>R: COPY --from=builder /build/crates/pap-agents/catalog → /app/catalog (NEW)
Note over R: ENV PAP_CATALOG_PATH=/app/catalog (NEW)
R->>S: start /app/pap-registry
S->>S: main.rs reads PAP_CATALOG_PATH → /app/catalog ✓ (auto-seed)
S->>S: api.rs install_catalog_agents() → reads PAP_CATALOG_PATH → /app/catalog ✓
Reviews (1): Last reviewed commit: "fix(registry): copy catalog TOML files i..." | Re-trigger Greptile
Benchmark Regression ReportThreshold: 10% regression vs baseline from main |
…e negatives With 309 catalog agents seeded at startup, waitForAgentInList was checking page 1 of a paginated list and timing out for agents not on the first page. Fix by typing the agent name into the .filter-input before checking, so the reactive search narrows results to only matching agents regardless of total count. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
debian:trixie-slim) never received thecrates/pap-agents/catalogTOML files from the builder stage0001_initial.sql(already reverted); addedPAP_REGISTRY_RESET_DB+PAP_REGISTRY_RESET_DB_CONFIRMinstructions to docker-compose comment for recoveryChanges
apps/registry/Dockerfile: copy catalog from builder → runtime at/app/catalog; setPAP_CATALOG_PATH=/app/catalogso the server resolves it without a manual env overrideTest Plan
docker compose -f apps/registry/docker-compose.yml builddocker compose -f apps/registry/docker-compose.yml up registry🤖 Generated with Claude Code