A configuration loader utility is a startup program that adapts container settings for applications expecting configuration files in a particular format and location. It reads an optional source file and environment variables, merges them with environment variables taking precedence, and writes the result to the target file before the application starts. section 18.4
A typical container setup defines:
- CONFIG_SOURCE_PATH for an override file, such as a mounted configuration file or secret. section 18.4
Run with file and environment overrides
Mount an override file, set CONFIG_SOURCE_PATH, and provide an environment value such as IOTD_ENVIRONMENT=custom. The loader merges both inputs, then the application reads the generated configuration.
