Deploy with containerd's runwasi
The containerd-shim runwasi project supports WasmEdge.
Prerequisites
Install Rust because we need to compile the runwasi project.
Download the runwasi project
git clone https://github.com/containerd/runwasi.git
Build and install the wasmedge-containerd-shim
# Reference: https://github.com/containerd/runwasi/blob/main/CONTRIBUTING.md#setting-up-your-local-environment
cd runwasi
./scripts/setup-linux.sh
make build-wasmedge
INSTALL="sudo install" LN="sudo ln -sf" make install-wasmedge
Run a simple Wasi app
make load
sudo ctr run --rm --runtime=io.containerd.wasmedge.v1 ghcr.io/containerd/runwasi/wasi-demo-app:latest testwasm /wasi-demo-app.wasm echo 'hello'