mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-29 05:43:58 +00:00
Update the dev.sh
parent
857657b6e0
commit
be04ddb61b
@ -174,8 +174,6 @@ This method involves doing everything on your local machine without requiring an
|
|||||||
Save this script to a file named `dev.sh`:
|
Save this script to a file named `dev.sh`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
rm -rf entries/ && mkdir -p entries && rm -rf pprof/* && make clean && make agent
|
rm -rf entries/ && mkdir -p entries && rm -rf pprof/* && make clean && make agent
|
||||||
sudo setcap cap_net_raw,cap_net_admin=eip ./agent/build/mizuagent
|
sudo setcap cap_net_raw,cap_net_admin=eip ./agent/build/mizuagent
|
||||||
./agent/build/mizuagent --api-server & \
|
./agent/build/mizuagent --api-server & \
|
||||||
@ -185,8 +183,7 @@ GOGC=12800 NODE_NAME=dev TAPPED_ADDRESSES_PER_HOST='{"dev": ["localhost"]}' \
|
|||||||
./agent/build/mizuagent \
|
./agent/build/mizuagent \
|
||||||
-i any \
|
-i any \
|
||||||
--tap \
|
--tap \
|
||||||
--api-server-address ws://localhost:8899/wsTapper \
|
--api-server-address ws://localhost:8899/wsTapper & \
|
||||||
--nodefrag & \
|
|
||||||
PID2=$! && \
|
PID2=$! && \
|
||||||
read -r -d '' _ </dev/tty
|
read -r -d '' _ </dev/tty
|
||||||
kill -9 $PID1 && \
|
kill -9 $PID1 && \
|
||||||
|
Loading…
Reference in New Issue
Block a user