-
Notifications
You must be signed in to change notification settings - Fork 159
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
feature: support runtime init script #1085
Conversation
Signed-off-by: Jinjing.Zhou <[email protected]>
Signed-off-by: Jinjing.Zhou <[email protected]>
Signed-off-by: Jinjing.Zhou <[email protected]>
Signed-off-by: Jinjing.Zhou <[email protected]>
@gaocegege @kemingy PTAL |
ruleDaemon = "runtime.daemon" | ||
ruleEnviron = "runtime.environ" | ||
ruleMount = "runtime.mount" | ||
ruleInitScript = "runtime.init_script" |
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.
Is it better to name as runtime.init
?
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.
SGTM
ruleDaemon = "runtime.daemon" | ||
ruleEnviron = "runtime.environ" | ||
ruleMount = "runtime.mount" | ||
ruleInitScript = "runtime.init_script" |
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.
SGTM
user = "${USER}" | ||
working-directory = "${%[3]s}" | ||
%[4]s |
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.
I wonder if this is too flexible. Currently, we only need the start-after
.
Maybe we can switch to a TOML tool to generate it if it becomes more complex in the future.
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.
We can refactor this once we need more controls here.
LGTM |
Sorry, I closed it in accident. |
Signed-off-by: Jinjing.Zhou <[email protected]>
examples/dpgen2/build.envd
Outdated
@@ -0,0 +1,40 @@ | |||
def install_kubectl_kind(): |
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.
Should we keep it in envd examples or envdlib?
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.
It's not general enough now. sudo docker network connect kind dpgen2
means only project named as dpgen2 will work
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.
Could we make like this:
def install_kubectl_kind(environment_name):
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.
Changed to def install_kubectl_kind(env_name)
. But I still think kind
is not a general requirement. Thus I don't think we don't need to put it into envdlib
Signed-off-by: Jinjing.Zhou <[email protected]>
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaocegege, kemingy, VoVAllen The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
support
runtime.init