klio icon indicating copy to clipboard operation
klio copied to clipboard

Provide access to the --env-file docker parameter through the klio job run command

Open pomdtr opened this issue 4 years ago • 1 comments

Describe the feature you'd like

I would like to be able to pass env variables to my application using the --env-file flag of the docker-run command

Is your feature request related to a problem?

We are currently struggling to pass secrets to our klio pipeline, and I'm not sure the template feature is the right way to achieve this.

pomdtr avatar Mar 08 '21 14:03 pomdtr

An option is to use an environment variable to transmit docker run arguments via klio job commands.

Example:

DOCKER_RUN_OPTS="--network=my-network --env MY_VAR=42" klio job ...

denis-angilella avatar Mar 17 '21 15:03 denis-angilella