-
Notifications
You must be signed in to change notification settings - Fork 259
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
Add job containers package #903
Conversation
7c2e5b7
to
086ef3a
Compare
bf96e1f
to
1878f1e
Compare
7cf2907
to
2f7eb8b
Compare
89fc464
to
84fc6fe
Compare
84fc6fe
to
12be993
Compare
12be993
to
fa0a961
Compare
26c51a4
to
d7df52c
Compare
How does this integrate into the shim? Are things like the pod/task/exec types for job containers coming in a future PR? |
@kevpar Yep right after this. The HCS exec/task types are re-used is how I have it now. If the annotation is set (or one can imagine if the OCI spec field is set later on) we just do |
IMO we should have that PR out as soon as it is ready, given the short timeline we have to get this feature in. Worst case some of the interface for calling into the job containers package would have to change, which doesn't seem like a big deal. |
It's ready, it just uses work in this PR. I can add just the commit with the shim work to a branch and PR that and rebase on this when it gets in |
I don't think we need to block to get that PR out is my point :) If this PR is |
I thought this one wasn't far off is why but that didn't turn out as planned 😆, I'll push the shim PR. |
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
* Add `JobContainer` and `JobProcess` types as the two types to represent a job container and a process in a job container. * Add logic to find the executable being asked to run for a job container. * Logic to launch the container as specific user. * Logic to mount the containers scratch space on the host to a directory. * Small subset of tests added to jobobject package Signed-off-by: Daniel Canter <dcanter@microsoft.com>
JobContainer
andJobProcess
types as the two types to represent a job containerand a process in a job container.
Signed-off-by: Daniel Canter dcanter@microsoft.com