Skip to content

Instantly share code, notes, and snippets.

@No9
Created December 17, 2022 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save No9/d414c506102a2c4a9e62dc869aa6c28a to your computer and use it in GitHub Desktop.
Save No9/d414c506102a2c4a9e62dc869aa6c28a to your computer and use it in GitHub Desktop.
Notes on building wasi edge container
sudo dnf install -y make python git gcc automake autoconf libcap-devel     systemd-devel yajl-devel libseccomp-devel pkg-config libgcrypt-devel     go-md2man glibc-static python3-libmount libtool
mkdir code 
cd code/
git clone https://github.com/containers/crun.git
cd crun/
./autogen.sh 
./configure 
make 
sudo dnf install podman 
podman 
which crun 
sudo mv /usr/bin/crun /usr/bin/curn.backup 
sudo mv crun /usr/bin/
which crun 
crun --version 
/usr/bin/curn.backup --version 
vim Dockerfile
sudo dnf search wasiedge
sudo dnf search wasmedge
cargo build --release --target wasm32-wasi
buildah build --annotation "module.wasm.image/variant=compat" -t mywasm-image
podman run mywasm-image:latest
podman run mywasm-image:latest -e LIFE="GOOD"
podman run -env LIFE="GOOD" mywasm-image:latest
podman run 
podman run -e LIFE="GOOD" mywasm-image:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment