hello everyone, I am using Kedro docker and I am r...
# questions
a
hello everyone, I am using Kedro docker and I am running on an issue where docker cannot find the globals I am specifying for my enviroments. e,g I want to run
kedro run --env=dev
from docker and I am getting
ValueError: Failed to format pattern '${s3_root_path}': no config value found, no default provided
What’s the best way to fix it? Thank you in advance!
d
is that key in your
globals.yml
?
a
yes it is, without docker its running as expected
not in the base directory though, in the environments
d
docker shouldn’t change that
let me look at the error
a
it recognizes only the globals from the base/ directory
although all the files are part of the image
d
is your
CONF_SOURCE
in
settings.py
at all different?
a
different how? inside the docker?
d
this shouldn’t really behave differently because it’s running in docker, files are files. Are you able to jump into a debugger and confirm the files are there at runtime?
n
it recognizes only the globals from the base/ directory
Is your global defined a file or directly in
settings.py
a
my globals are files in different directories (“environments”). Inside the settings.py I have this
CONF_SOURCE = “conf” CONFIG_LOADER_CLASS = TemplatedConfigLoader CONFIG_LOADER_ARGS = { “globals_pattern”: “*globals.yml”, }
but as I said, it works fine outside of docker
n
Can you check if these files are added to the docker? Are you able to inspect it with something like the VSCode docker extension?
a
settings_py_—_HEDNO_AA_Losses-hedno_aa_losses__SSH__d90a856e-4abc-4c7e-b747-c423e33c33ac-jupyter_.png
yes all the files are inside the image
n
Docker shouldn’t make any difference, as it is just an isolated environment. If all the files are inside the docker, it’s quite weird it’s cannot find the config.
One possible cause is permission.
a
yeah could be, I will try to change the permissions, its strange because base/ folder works fine
👍🏼 1