opencast / opencast-docker

Dockerfiles for Opencast
https://quay.io/organization/opencast/
Educational Community License v2.0
41 stars 36 forks source link

Sync custom config changes with running config #160

Closed mtneug closed 3 years ago

mtneug commented 3 years ago

Currently, custom config mounted to /etc/opencast is not synced with the running config /opencast/etc on changes. This adds a watch background job that syncs those files. /etc/opencast is implemented as an overlay over the default Opencast configuration. Those are first merged in a staging area then variables may be replaced after which the files are synced to /opencast/etc. Using rsync anly necessary copy and delete operations are performed such that Opencast service reconfiguration should be kept to a minimum.

This also ignores folders/symlinks in the custom config that starts with two dots. This is used by Kubernetes when mounting configuration and secrets.