Closed martinlinkhorst-urbit closed 1 year ago
We currently don't have a way to pass arguments to embedding wasmtime in the shim. What you can do, however, is to write a new shim using runwasi as a library and enable tcplisten in wasmtime.
Check this out: https://github.com/Mossaka/containerd-wasm-shims/blob/main/containerd-shim-aspdotnet-v1/src/main.rs#L89-L90
Thanks a lot!
Going to go ahead and close this as this should indeed be done in a new shim. The shims in this repository are (currently) strictly for wasi.
The wasmtime shim is also not using the wasmtime
binary which is what implements this functionality.
It is using wasmtime as a library.
How do I pass arguments to wasmtime through the shim? I want to use
--tcplisten
to listen for TCP connections.I'm trying this command.