Running web assembly in containers
In our recent blog post on Web Assembly we highlighted the implementation of WASM support into the crun Open Container Initiative (OCI) runtime. This change paves the way for Podman and OpenShift to run WASM workloads.
This demo will step through how wasm
Install wasm runtime
Compile crun with wasm support
To demo this capability on our own machine we need to ensure we have a version of crun available that has support for WASM. In my case I needed to download and compile a newer release including the ~as follows:
# Install compile dependencies
sudo apt-get install --yes make git gcc build-essential pkgconf libtool libsystemd-dev libprotobuf-c-dev libcap-dev libseccomp-dev libyajl-dev libgcrypt20-dev go
-md2man autoconf python3 automake
# Clone the crun source
git clone https://github.com/containers/crun && cd crun
# Compile with wasm flag
./autogen.sh
./configure --with-wasmedge
make
sudo make install