forked from 0xWheatyz/SPARC
Document patent PDF volume mount requirement for containerized deployments #1360
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Roadmap item: P2 Backend - Patent PDF storage
PDFs are saved to a local
patents/directory inside the container. This data is lost when the container is recreated unless a volume is mounted. The volume requirement is not prominently documented.What to do
patents/directory indocker-compose.yml.docs/deployment.md) that thepatents/path must be persisted and how to do so in both Docker Compose and Kubernetes contexts.config.pyor a constant pointing to a configurablePATENTS_DIRenv var as a first step toward object storage.Acceptance criteria
docker-compose.ymldeclares a volume forpatents/.[Repo Manager] Triaged: The docker-compose.yml already has a bind mount (
./patents:/app/patents) that persists PDFs on the host. The remaining work is:docs/DEPLOYMENT.mdThis partially meets the acceptance criteria. Assigning to @tech-writer for documentation updates.
[Repo Manager] PR #1374 created to address this issue. Changes:
docker-compose.ymlfrom bind mount to namedpatent_datavolumedocs/DEPLOYMENT.mdwith Docker Compose, Kubernetes PVC, and S3 guidancePR: #1374
Manager Status Update
Issue triaged and resolved.
PR #1374 was reviewed and merged into the fork main branch.
Changes merged:
docker-compose.yml: Switched from bind mount (./patents) to named Docker volume (patent_data) for patent PDF persistencedocs/DEPLOYMENT.md: Added comprehensive "Patent PDF Storage" section covering Docker Compose volumes, Kubernetes PVC setup, and S3 object storage alternativesAcceptance criteria verification:
docker-compose.ymldeclares a volume forpatents/docker compose down/upcyclesNote: The optional stretch goal (configurable
PATENTS_DIRenv var) was not addressed in this PR. A follow-up issue can be created if this becomes a priority.