From 9dcd3c72792bcc72116dfc771f58dcf4543703cc Mon Sep 17 00:00:00 2001 From: Nulo Date: Sat, 3 Jun 2023 11:27:43 -0300 Subject: [PATCH] documentar como crear y debuggear --- readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/readme.md b/readme.md index 5fa568a..fa99841 100644 --- a/readme.md +++ b/readme.md @@ -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* +```