mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-14 14:43:46 +00:00
23 lines
558 B
Bash
Executable File
23 lines
558 B
Bash
Executable File
#!/bin/bash
|
|
|
|
pushd "$(dirname "$0")" || exit 1
|
|
|
|
MIZU_HOME=$(realpath ../../../)
|
|
|
|
docker build -t mizu-ebpf-builder . || exit 1
|
|
|
|
docker run --rm \
|
|
--name mizu-ebpf-builder \
|
|
-v $MIZU_HOME:/mizu \
|
|
-v $(go env GOPATH):/root/go \
|
|
-it mizu-ebpf-builder \
|
|
sh -c "
|
|
go generate tap/tlstapper/tls_tapper.go
|
|
chown $(id -u):$(id -g) tap/tlstapper/tlstapper_bpfeb.go
|
|
chown $(id -u):$(id -g) tap/tlstapper/tlstapper_bpfeb.o
|
|
chown $(id -u):$(id -g) tap/tlstapper/tlstapper_bpfel.go
|
|
chown $(id -u):$(id -g) tap/tlstapper/tlstapper_bpfel.o
|
|
" || exit 1
|
|
|
|
popd
|