-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
feature requestRequesting a new featureRequesting a new featurep2-mediumMedium priority, should be done, but less importantMedium priority, should be done, but less important
Description
Obviously some command-line tool configuration is set using environment variables. DVC does not support setting environment variables in a DVC file. Neither DVC file reference nor dvc run command reference show anything about setting an environment variable.
As to how it should be visible to the users:
dvc run -e VARIABLE=value-- support setting this option multiple times- In the top level of a DVC file have an
envtag, like so:
cmd: echo This is a command
env:
- VARIABLE_NAME=value
- VARIABLE_NAME2=value
- VARIABLE_NAME3=valueOR
cmd: echo This is a command
env:
VARIABLE_NAME: value
VARIABLE_NAME2: value
VARIABLE_NAME3: valueFor comparison, this is exactly how environment variables are defined in a Docker Compose file: https://docs.docker.com/compose/compose-file/#environment
shcheklein and efiop
Metadata
Metadata
Assignees
Labels
feature requestRequesting a new featureRequesting a new featurep2-mediumMedium priority, should be done, but less importantMedium priority, should be done, but less important