-
Notifications
You must be signed in to change notification settings - Fork 96
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
[rfc] Add simplified libcontainer instance API #250
Conversation
243c034
to
da9b050
Compare
ENGINE_NAME | ||
} | ||
|
||
fn run(&self, ctx: RuntimeContext, _spec: &Spec) -> anyhow::Result<i32> { |
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 like how this new interface makes the shim implementors only need to know about their particular runtime and how to configure it.
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.
Do you think we could use a similar API for windows?
i.e., do the normal setup for a windows container, and then let the implementor run the runtime inside the container.
Need a rebase |
921ab1b
to
6204ba7
Compare
Would you like to talk about this RFC on tomorrow's CG meeting? @jprendes |
Yep, that's a good plan :-) |
Cool, I've added it to the agenda |
2fad87b
to
2d024ed
Compare
2fdd23f
to
8d8b9e8
Compare
crates/containerd-shim-wasm/src/libcontainer_instance/executor.rs
Outdated
Show resolved
Hide resolved
ff97934
to
301363d
Compare
dbd7c47
to
1c5b80a
Compare
8c409b7
to
cd8026c
Compare
8abfe99
to
60c0f81
Compare
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
Closing in favor of #293 |
DO NOT MERGE
The intention of this PR is to receive feedback on a proposed simplified API when using
libcontainer
.This API introduces an
Engine
trait fulfilling a similar role to thelibcontainer
'sExecutor
trait.To implement a new runtime, just implement the
Engine
trait. See the changes to the wasmedge shim.