ulb-sachsen-anhalt / ocrd-odem

OCR Workflows based on OCR-D
MIT License
3 stars 1 forks source link

Feature: Pass Credentials for OCR-D Container #13

Closed M3ssman closed 8 months ago

M3ssman commented 8 months ago

Description

When executing containerized actions, we do not consider the use case if the actual executing account might not be related to productive ocr accounts on worker machines, where OCR-Generation usually runs.

In case of ODEM, it's quite pain if ODEM is part of a larger evaluation pipeline run by automated agents (like gitlab-runner) and needs to access other realms of the file system. When doing so, the process stops by now, since the user identifications don't match and the agent is not allowed to overwrite data produced by other accounts.

Instead of just using the current user's ids in processing_ocrd.py:79 please pass new config value ocrd_container_user from odem.ini with the current implementation as fallback if no user has been explicitly configured.

einspunktnull commented 8 months ago

@M3ssman: check impl: 0dab65e