forked from 0xWheatyz/SPARC
Document patent PDF storage volume requirement or migrate to object storage (S3/MinIO) #1519
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. In a containerised deployment this directory is ephemeral unless a volume is explicitly mounted, leading to silent data loss on container restart.What to do
Option A (documentation, lower effort):
README.mdexplaining thepatents/volume mount requirement.docker-compose.ymlto include a named volume forpatents/with a comment.patents/directory is on a temporary filesystem.Option B (object storage, higher effort):
PDF_STORAGE_BACKEND=local|s3env var.s3, readS3_BUCKET,S3_ENDPOINT,AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEYfrom config.StorageBackendinterface.Start with Option A and open a follow-up for Option B if needed.
Acceptance criteria
README.mdclearly documents the volume mount requirementdocker-compose.ymldefines a named volume for PDF storage[Repo Manager] This issue is already resolved.
docker-compose.ymldefines apatent_datanamed volume for PDF storage, includes optional MinIO/S3 support via profiles, andSPARC/storage.pyimplements aStorageBackendabstraction with local and S3 backends. Closing as complete.