Use ipfs as image provider
Closed this issue · 0 comments
anjakammer commented
IPFS Daemon
- start ipfs daemon on startup
OcrRequest
- mount volume for data storage
- init ipfs daemon in dockerfile command
- config ipfs to store files at /data directory with env var (IPFS_PATH=/path/to/ipfsrepo)
- add image on task creation
- save hash in task entry
OcrService
- get file content with ipfs cat and stream the data into the desired location (use env var for this )