kermitt2 / grobid

A machine learning software for extracting information from scholarly documents
https://grobid.readthedocs.io
Apache License 2.0
3.38k stars 443 forks source link

Running Grobid as rootless container in Kubernetes #1141

Open vipulg13 opened 1 month ago

vipulg13 commented 1 month ago

Dear team,

currently, the Grobid service requires root privileges to be running in a Kubernetes environment. However, running a container as root in a production environment is not recommended. Are there any plans to have Grobid service running as rootless container or nonroot privileged container (with a specific id)?

E.g.,: The container fails in the intialisation process when run as nonroot due to issues creating tmp directory and read-only file system:

image

lfoppiano commented 1 month ago

Thanks for reporting this issue @vipulg13. I'm not sure how long may take, it could be to re-engineer the whole build. We can find a solution on that for version 0.8.2 as we are freezing changes for version 0.8.1.