Closed miesgre closed 2 years ago
With the current images I recommend mounting individual config files to /etc/opencast
. On changes, those will automatically be synced /opencast/etc
. Files in /etc/opencast
can be read-only and also use the Karaf env syntax. The entrypoint script has places where concrete values are read from the configuration (connection testing). Switching to the Karaf env syntax would make this more difficult. I would leave the current approach for now. And mounting files to /etc/opencast
works quite well.
Karaf allow reference environment variables inside the configuration files using the syntax ${env:FOO}
From Karaf docs:
This image uses a {{FOO}} and a sed command to replace de variables.
From custom.properfies:
From helper.sh:
This does not allow me to mount a custom config file in read only mode or use a docker config in
/opencast/etc/custom.properties
.I propose to replace the {{FOO}} by ${env:FOO} in Karaf config files and remove the sed commands. What do you think?