-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schedulers/docker: Add support for setting environment variables #855
Conversation
bc49d4a
to
ff90c66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some small comments
There's some pyre and lint errors -- do you mind fixing them? Thanks
"d_none", | ||
type_=Dict[str, str], | ||
default=None, | ||
help="a None dict option", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a test that use these opts below to verify parsing is correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
"env", | ||
type_=Dict[str, str], | ||
default=None, | ||
help="environment varibles to be passed to the run (e.g. ENV1:v1,ENV2:v2,ENV3:v3)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we document that either , or ; will work?
nit: spelling variables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may also be good to document that this will apply on top of the copied envs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
075a1c2
to
26d09cf
Compare
Done! |
This change adds support for
Dict[str, str]
type inrunopts
and use it to expose env flag inDockerScheduler
.The use-case is for setting environment variables for
local_docker
scheduler in order to access some remote resources.Test plan: