Extra common building scripts to make it more general for other images.
Bump ttrpc-compiler in creates.io from 0.6.1 to 0.6.2, while ttrpc-compiler(kuasar-io) is still 0.6.1.
# cd vmm/sandbox && cargo vendor
Caused by:
found duplicate version of package `ttrpc-compiler v0.6.1` vendored from two sources:
source 1: registry `crates-io`
source 2: https://github.com/kuasar-io/ttrpc-rust.git?branch=v0.7.1-kuasar#db83ba89
Error: Process completed with exit code 101.
This is because both containerd-sandbox and containerd-shim import ttrpc-compile@0.6.1 in different source(crates.io and github/kuasar-io). So I just bump one to 0.6.2.
Cargo tests of wasmedge needs the current user have the access to wasmedge lib, somehow it can't be recongized due to the different user of installation and running. We switch to root user in the process of installation.
Bump ttrpc-compiler in creates.io from 0.6.1 to 0.6.2, while ttrpc-compiler(kuasar-io) is still 0.6.1.
This is because both
containerd-sandbox
andcontainerd-shim
import ttrpc-compile@0.6.1 in different source(crates.io and github/kuasar-io). So I just bump one to 0.6.2.