-
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
Provide a simplified API when using libcontainer
#293
Conversation
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.
Did my first pass of the review and mostly LGTM. Left some minor comments.
Might need some coordination with PR #281
c8991d9
to
f7a4c4f
Compare
I did some small refactor to the The Something missing from |
c728405
to
2234280
Compare
e0d7179
to
1ae4b23
Compare
Need a rebase |
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
7eda9b0
to
75955a7
Compare
Rebased. E2E failures seem to be sporadic, as re-running produces failures on a different set of nodes. |
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!
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
75955a7
to
426b37e
Compare
This commits updates to use the latest API from the `containerd-shim-wasm` crate. It follows the PR containerd/runwasi#293 Signed-off-by: jiaxiao zhou <jiazho@microsoft.com>
This commits updates to use the latest API from the `containerd-shim-wasm` crate. It follows the PR containerd/runwasi#293 Signed-off-by: jiaxiao zhou <jiazho@microsoft.com>
This commits updates to use the latest API from the `containerd-shim-wasm` crate. It follows the PR containerd/runwasi#293 Signed-off-by: jiaxiao zhou <jiazho@microsoft.com>
* chore: use the Engine API from containerd-shim-wasm crate This commits updates to use the latest API from the `containerd-shim-wasm` crate. It follows the PR containerd/runwasi#293 Signed-off-by: jiaxiao zhou <jiazho@microsoft.com> Co-authored-by: Jorge Prendes <jorge.prendes@gmail.com>
When using
libcontainer
many of the functionalities from thesandbox::Instance
trait can be delegated to the actual OS container. This can be seen in the current implementation of the shims that build on top oflibcontainer
, where the same code pattern is seen in all of them.This PR attempts to capture those patterns and provide a simplified API when wasm container is running inside of an OS container.
This PR introduces an
Engine
trait. This trait is very similar tolibcontainer
'sExecutor
trait, but intends to be OS agnostic.See the
WasmEdgeEngine
andWasmTimeEngine
for reference implementations.The name
Engine
is chosen because this type eventually becomes thesandbox::Instance::Engine
type in theInstance
implementation.For reference, these are the changes to adopt this API in
containerd-wasm-shim
: deislabs/containerd-wasm-shims@main...jprendes:containerd-wasm-shims:runwasi-simple-apiThis PR superseeds #250