-
Run in the netSender example directory:
go build
The result is executable file "netSender"
-
Run our gVisor. Note that you need config with
runtime-socket
optionOur
init_script.sh
runs/bin/bash
inside the gVisor -
Get to the netSender example directory
-
Run
./netSender
Every second you will see
Response body: {"activity":"Learn a new programming language","type":"education","participants":1,"price":0.1,"link":"","key":"5881028","accessibility":0.25}
-
Switch to another terminal
-
Configure sandbox-cli to use the same
host
andport
as gVisor -
To add the hooks into gVisor run
./sandbox-cli state -c Sandbox/examples/gWisord/netSender/hooks.js
If the script is correct you will see the message:
Type: ok gVisor says: Everything ok Payload: {}
-
After this you will see that netSender behaviour is changed. Now it will be printing:
Response body: {"error":"No activity found with the specified parameters"}