Skip to content

Support passing env vars into docker_environments from user's shell #18577

Open
@psontag

Description

@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.

[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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions