containerd / runwasi

Facilitates running Wasm / WASI workloads managed by containerd
Apache License 2.0
1.02k stars 84 forks source link

Does wamtime shim currently support reactor core module? #415

Closed Mossaka closed 6 months ago

Mossaka commented 7 months ago

I was exploring the run implementation in wasmtime cli and found out that there is a special logic that handles the reactor mode of the wasm modules in https://github.com/bytecodealliance/wasmtime/blob/main/src/commands/run.rs#L423-L427

Specifically it invokes the _initialize function instead of the _start function.

Since we are defaulting the invocation to _start function, I am wondering if the wasmtime shim is able to handle the reactor wasm modules wel..

Mossaka commented 6 months ago

As a workaround, we can handle this in the ENTRYPOINT in the dockerfile.