forked from 0xWheatyz/SPARC
Docs: document patent PDF storage volume mount requirement (or add S3/MinIO support) #253
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?
Background
PDFs are saved to a local
patents/directory. In a containerized deployment this directory is ephemeral unless a volume is mounted, silently losing downloaded PDFs on container restart.Task (choose one path based on effort available)
Option A — Documentation (minimum viable)
README.mdanddocker-compose.ymlcomments explaining thatpatents/must be backed by a named Docker volume or a host-path mountdocker-compose.ymlto define a named volume forpatents/with a commentOption B — Object storage support (preferred)
boto3orminioclient)PDF_STORAGE_BACKEND=local|s3env vars3, upload/download PDFs to/from the configured bucket instead of local diskS3_BUCKET,S3_ENDPOINT_URL,AWS_ACCESS_KEY_ID, etc.) in.env.exampleAcceptance Criteria
Reference
Roadmap: P2 Backend — patent PDF storage
Triage: P2/medium - Assigned to @tech-writer. Documentation task. Wave 4.
Triage update: P2/medium. The codebase already supports both local storage and S3/MinIO via the STORAGE_BACKEND env var (see config.py and storage.py). The .env.example documents S3 settings. What remains is updating README.md with a section explaining the patent PDF storage requirement, the local volume mount in docker-compose, and how to switch to S3/MinIO. Delegating to @tech-writer.