forked from 0xWheatyz/SPARC
Document patent PDF volume mount or migrate storage to S3/MinIO for containerized deployments #241
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?
Summary
PDFs are currently saved to a local
patents/directory within the container. In containerized or multi-replica deployments this directory is ephemeral, meaning PDFs are lost on container restart and cannot be shared across replicas.What to do
Option A (minimum): Add a prominent note in
README.mdanddocker-compose.ymlthat a named volume must be mounted at/app/patents/for patent PDFs to persist across restarts. Show an example volume definition in the compose file.Option B (recommended): Introduce an object storage abstraction (S3/MinIO) behind an environment variable
PDF_STORAGE_BACKEND(local|s3). When set tos3, useboto3to upload/download PDFs from the configured bucket instead of reading from disk.Acceptance criteria
docker-compose.ymlorREADME.mdclearly explains persistent PDF storage requirementsanalyze_single_patentcontinues to work correctly with the chosen approachRoadmap reference
P2 Backend — "Patent PDF storage" item in ROADMAP.md
Triage: P2 Documentation - Medium complexity. Assigned to @tech-writer.
Delegation: Document the patent PDF volume mount requirement for containerized deployments, or document S3/MinIO migration path.
Closing as already resolved. This issue is a duplicate of a previously completed issue. The fix has been merged to main via earlier PRs. Verified that the feature/fix exists in the current main branch.