ciur / papermerge

Open Source Document Management System for Digital Archives (Scanned Documents)
https://papermerge.com
Apache License 2.0
2.55k stars 267 forks source link

Kibernetes compatibility - download documents when local folder vanishes #419

Closed ciur closed 3 years ago

ciur commented 3 years ago

This change improves Kubernetes (k8s) compatibility.

One of the main concepts in k8s is the idea of ephemeral pod - which can be destroyed/recreated at any moment. In such case - entire media folder will vanish. As result of "vanished media folder" - application should be capable of bringing back i.e. download from cloud storage all "vanished" files:

Notice that page previews won't be downloaded - they will be locally regenerated (but before that, original document must be downloaded).

ciur commented 3 years ago

Fixes available in 2.0.x branch: fix in default django project

ciur commented 3 years ago

In Kubernetes deployment you'll need to use papermerge-s3 package as persistent storage.