dmcgowan / containerd-wasm

Implementation of containerd shim using wasm
Apache License 2.0
93 stars 30 forks source link

Use Wasmer go bindings? #1

Open syrusakbary opened 5 years ago

syrusakbary commented 5 years ago

Hi!

As part of our work in Wasmer, we are working on a Go extension that let anyone use a WebAssembly runtime performantly from Go: https://github.com/wasmerio/go-ext-wasm/

It might be a good use case for containerd-wasm! Here's an example for it: https://github.com/wasmerio/go-ext-wasm/blob/master/wasmer/test/example_import_test.go

Feel free to close this issue if you think is not relevant to this project... just wanted to show our work as might be useful for this project!

dmcgowan commented 5 years ago

These bindings seem like they could be interesting in building normal containers which run a Go process and run wasm code. For doing that this runtime would not be necessary.

Is there also bindings or a good way to manage the wasmer runtime? The scope of this Proof of Concept is just to implement to the containerd shim interface which has a basic lower level container process management API. It would be interesting for the lower level wasm runtime to provide all the primitives needed to manage wasm just like any other container, such that the wasm runtime is the secure sandbox with no other overhead.