<#18577 Support passing env vars into docker_envir...
# github-notifications
c
#18577 Support passing env vars into docker_environments from user's shell Issue created by psontag Is your feature request related to a problem? Please describe. When using
docker_environments
for testing I have some dynamic configuration that needs to be passed into the
docker_environment
via env vars. Currently that is not possible.
Copy code
[test]
extra_env_vars = [
  "ENV_VAR",
]
The env var
ENV_VAR
will be read from the docker image and not from my shell. See the comment here for more details. Describe the solution you'd like It should be possible to pass env vars from the user's shell into
docker_environments
. This could either be done via a new field on the
docker_environment
target or by adapting the current fields to do an additional lookup of the env vars in the user's shell. pantsbuild/pants