Skip to content

Commit 4af36c1

Browse files
committed
add bpf-linker
to fix ``` error: failed to run custom build command for `mitmproxy-linux-ebpf v0.12.7 (/tmp/pip-install-4airp5w4/mitmproxy-linux_a9aee8a7cd4446caa9f2a87ebee6383d/mitmproxy-linux-ebpf)` Caused by: process didn't exit successfully: `/tmp/pip-install-4airp5w4/mitmproxy-linux_a9aee8a7cd4446caa9f2a87ebee6383d/target/release/build/mitmproxy-linux-ebpf-b7b2209e707a9bcd/build-script-build` (exit status: 101) --- stderr thread 'main' panicked at mitmproxy-linux-ebpf/build.rs:15:42: Failed to find `bpf-linker` executable on PATH. Run `cargo install --locked bpf-linker` to install.: CannotFindBinaryPath note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ```
1 parent 5caa083 commit 4af36c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ARG DO_DEBUG_BUILD="${DEBUG_IMAGE:-"0"}"
2222
RUN [[ "a$DO_DEBUG_BUILD" == "a1" ]] && { echo "Debug build ENABLED." \
2323
&& apk add --no-cache --update su-exec cargo bsd-compat-headers git g++ libffi libffi-dev libstdc++ openssl-dev python3 python3-dev py3-pip py3-wheel py3-six py3-idna py3-certifi py3-setuptools \
2424
&& rm /usr/lib/python3.*/EXTERNALLY-MANAGED \
25+
&& cargo install --locked --root /usr/local bpf-linker \
2526
&& LDFLAGS=-L/lib pip install MarkupSafe mitmproxy \
2627
&& apk del --purge git g++ libffi-dev openssl-dev python3-dev py3-pip py3-wheel \
2728
&& rm -rf ~/.cache/pip \

0 commit comments

Comments
 (0)