Hi, is there any documentation or working example ...
# ask-community
m
Hi, is there any documentation or working example regarding the
--container-context
option for
dagster api grpc
? I'm looking for a way to configure the environment of the container launched by the
DockerRunLauncher
. Using
env_vars
within the launcher section of the
dagster.yaml
file is not a viable option for me because I'd like to set different variables for different grpc servers.
🤖 2
d
Hi Marco - it's a JSON string that can look like this to set env vars in Docker for example:
Copy code
'{"docker": {"env_vars": ["FOO_ENV_VAR=bar_value", "BAZ_ENV_VAR"] } }'
It's not very well documented currently, we're hoping to move to a place where you set that config in a place like workspace.yaml instead of needing to pass around JSON strings - but it should work for the forseeable future