You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to lack of recent activity, this issue has been labeled as 'stale'. It will be closed if no further activity occurs within 30 more days. Any new comment will remove the label.
The current way we pass environment variables to our docker containers leads to errors and duplication. See https://github.com/dotnet/cli/blob/rel/1.0.0/scripts/dockerrun.sh#L115-L134 where we need to keep updating the environment variables that are passed in. For example, dotnet/cli#5274.
Instead, we should make this dynamic so we don't have to keep this list up to date.
One idea I had was to use
printenv
to get the list of environment variables. Grab all the ones that start with a prefix likeCLIBUILD_
, and write them out to an env-file. Then pass that file todocker run --env-file
. See https://docs.docker.com/engine/reference/commandline/run/#/set-environment-variables--e---env---env-file.The text was updated successfully, but these errors were encountered: