Docker commonly passes settings via environment variables.
It could be useful if when resolving settings for production configuration this could also evaluate environment variables instead of deployed static values.
Thus the container drives the behavior of the production.
When productions are packaged and deployed the environment variable names are transprted with the export as with static values for production settings.
Ref: https://docs.intersystems.com/irisforhealth20232/csp/docbook/DocBook.UI.Page.cls?KEY=EGDV_deploying
A suggestion from community is for System Default Settings to:
1) First try using the named environment variable if defined
2) Otherwise fallback to a given "Settings Value"
In first case, the REPORT on what settings are in effect should be expanded to indicate is from Operating System Environment Variable. See attached.
Thank you for submitting the idea. The status has been changed to "Future consideration".
Stay tuned!
If the current field 'Settings Value' interpretted and evaluate embedded expression: for example:
{$System.Util.GetEnviron("iris_production_shutdown_timeout")}
The original poster's requirement would be met, and, if users want to evaluate the setting based on an expression in order to support multiple instances from one code base - for example, I want all HL7 interfaces' archive path folder to be go to a common folder with subfolders by server and instance, I coudl potentially specify - for archive path:
//commonUNCPath/hl7Archived/{$TR($System,":","/"}/{$$ItemName}
$TR($System,":","/") would resolve to hostname/irisinstancename and $$ItemName will resolve to the production components item name resulting in this effecctive setting, calculated during the Initialisation phase of the component Hl7SourceA, running in instance IRIS, on hostname myPCName.
//commonUNCPath/hl7Archived/myPCName/IRIS/HL7SourceA
Other special variables like $$ItemName, can be $$ProductionName, $$HostClassName. User defined class methods can also be able to be used, within the expression {}.
@Alex Woodhead, you have a comment on your idea. Please answer it to help your idea to be promoted.