documentar como crear y debuggear

This commit is contained in:
Cat /dev/Nulo 2023-06-03 11:27:43 -03:00
parent 2599602d58
commit 9dcd3c7279

View file

@ -4,3 +4,15 @@
sudo env GOBIN=/opt/cni/bin go install github.com/awslabs/tc-redirect-tap/cmd/tc-redirect-tap@latest
sudo dnf install containernetworking-plugins
```
```sh
# 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*
```