WIP: run commands inside a firecracker VM
agent | ||
js | ||
rootfs | ||
.gitignore | ||
fcnet.conflist | ||
go.mod | ||
go.sum | ||
main.go | ||
readme.md |
setup
sudo env GOBIN=/opt/cni/bin go install github.com/awslabs/tc-redirect-tap/cmd/tc-redirect-tap@latest
sudo dnf install containernetworking-plugins
# build rootfs image (incl. agent)
(cd rootfs; pnpm install)
node rootfs/index.js
# build & run daemon
go build && sudo ./fireactions
# run VM
curl --data-raw "#!/bin/sh"\n"echo hi" localhost:8080/run
# inspect VM tty
tail -f /tmp/std*