Skip to content
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

Support for wasm-micro-runtime handler #1498

Open
macko99 opened this issue Jul 13, 2024 · 1 comment
Open

Support for wasm-micro-runtime handler #1498

macko99 opened this issue Jul 13, 2024 · 1 comment

Comments

@macko99
Copy link

macko99 commented Jul 13, 2024

Hello, I try to add support for wasm-micro-runtime (WAMR) as another handler. It seems promising since it is a very lightweight WASM runtime.

I have followed the implementation of current handlers as well as docs regarding embedding WAMR, but unfortunately, I failed to succeed. Here is the PR with my efforts.

Would someone be able to help me fix it? Currently, it seems that the wasm module is not executed, regarding the "Running" status reported by kubectl.

I'm using Kubernetes 1.27, containerd 1.6, latest build of crun and WAMR.

@macko99
Copy link
Author

macko99 commented Jul 16, 2024

Hi, I have updated my PR and it does work! It is not yet fully developed and needs some polishing but the WASM containers are executing.
The env vars are being passed and you can see the container logs. The memory footprint is much much lower than the one of Wasmedge. Simple wait containers use about 54% less memory due to the WAMR library being super lightweight!

It seems very promising!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant