endlessh-go icon indicating copy to clipboard operation
endlessh-go copied to clipboard

Add env vars to docker images

Open sudo-Tiz opened this issue 1 year ago • 3 comments

The usage of CLI arguments works well for binary usage but with docker images it would be better to propose environments variables. We could imagine something like: cli_args if not undefined else anv_agrs if not undefined else default

sudo-Tiz avatar Jan 27 '24 09:01 sudo-Tiz

For my education, is there a use case that can be only done via env, not cli argument?

shizunge avatar Jan 27 '24 19:01 shizunge

Well, this is a common practice to use environment variables with container orchestration tools. This way you can set the necessary environment variables once and reuse them across different instances or containers instead of passing CLI arguments every time. I admits this is not mandatory at all and a configuration file would be better (see #88 )

sudo-Tiz avatar Jan 28 '24 10:01 sudo-Tiz

Share Env is a legit use case. Let us keep this issue open

shizunge avatar Jan 28 '24 20:01 shizunge