Closed pondzix closed 4 months ago
Just to double-check, have you confirmed that it doesn't change anything when you DO mount the config to that path?
@colmsnowplow
Just to double-check, have you confirmed that it doesn't change anything when you DO mount the config to that path?
So this:
docker run --mount type=bind,source=/my_custom_config.hcl,target=/tmp/config.hcl snowplow/snowbridge
still works and uses config from my_custom_config.hcl
. Is that OK?
Yup, that's all that needed to be checked!
PDP-1303
/tmp/config.hcl
is the default value forSNOWBRIDGE_CONFIG_FILE
environment variable when running docker image. It means it's the default location where Snowbridge tries to find and load configuration.Without mounting
/tmp/config.hcl
explicitly or setting customSNOWBRIDGE_CONFIG_FILE
variable, Snowbridge would crash. Creating empty file and saving it as/tmp/config.hcl
in Dockerfile ensures Snowbridge doesn't fail even when none of the above is set by user. It simply runs using defaults.It's still possible to mount
/tmp/config.hcl
explicitly and overwrite default empty file.