Files
claude-skills/pcb-ai-engineer/references
creator 9f3e7f82e7 pcb-ai-engineer/refs: add self-hosted mirror section (Altium Celestial)
The original setup guide covered connecting Altium directly to the
portal SQL server. That works but has three drawbacks under RU
conditions: ~60-second Altium startup over VPN, daily VPN dependency,
single point of failure at Mark Harris's hosting.

New section 11 documents the self-hosted alternative we just built and
verified end-to-end:

- Two independent mirrors:
  - homework/altium-library: Gitea pull-mirror of issus/altium-library
    with LFS (SchLib + PcbLib + STEP, ~6 GB)
  - homework/celestial-mirror-db: MSSQL 2022 Express in Docker on
    192.168.9.147, populated weekly by a pymssql-based sync job with
    best-effort + row-count/schema fingerprint skip logic
- Results: Altium startup <1s (100x faster), VPN only needed once a
  week for the sync runner, full control over the dataset
- Full deployment sequence (Gitea migrate API → docker compose up →
  first manual full-sync → client DbLib rewrite)
- ConnectionString rewrite details (altium_reader user, LAN IP,
  Encrypt=Optional/TrustServerCertificate=Yes for self-signed cert)
- MPN-to-view lookup strategies (Shift+C in Altium; dynamic SQL that
  scans all 168 tables)
- Troubleshooting specific to the mirror stack
2026-04-18 22:32:25 +00:00
..