forked from 0xWheatyz/SPARC
Document volume mount requirement for patents/ directory or add S3/MinIO storage backend #169
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
Patent PDFs are currently saved to a local
patents/directory. In containerized (Docker/Kubernetes) deployments this directory is ephemeral and PDFs are lost on container restart unless a volume is explicitly mounted.Work Required
Choose one of the following approaches (preference: document first, implement object storage as follow-up):
Option A (documentation, smaller scope):
docker-compose.ymlandREADMEexplaining thatpatents/must be bind-mounted or backed by a named volume for persistencepatents/indocker-compose.ymlso the default setup is already persistentpatents/directory is not a mounted volume (best-effort check)Option B (object storage, larger scope):
PDF_STORAGE_BACKEND=local|s3env vars3, useboto3to PUT/GET PDFs from a configured bucketMINIO_ENDPOINT,MINIO_ACCESS_KEY,MINIO_SECRET_KEY,MINIO_BUCKETenv vars inconfig.pyAcceptance Criteria
docker-compose.ymleither has a named volume forpatents/or clear comments directing operators to add oneReferences
Roadmap: P2 -- Backend -- Patent PDF storage
Closing: already implemented on main. The feature/s3-storage branch was merged. SPARC/storage.py provides S3/MinIO backend. docker-compose.yml includes optional MinIO service. .env.example documents STORAGE_BACKEND, S3_BUCKET, S3_ENDPOINT_URL, and AWS credentials.