Skip to content

Commit

Permalink
fix(build): btfhub's bpftool in alpine container (#3349) (#3350)
Browse files Browse the repository at this point in the history
Install bpftool in alpine container from btfhub's submodule.

commit: 41ea796 (main), cherry-pick
  • Loading branch information
geyslan committed Jul 28, 2023
1 parent 929ada2 commit 331d7fb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion builder/Dockerfile.alpine-tracee-container
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,20 @@ RUN apk --no-cache update && \
apk --no-cache add elfutils-dev && \
apk --no-cache add libelf-static && \
apk --no-cache add zlib-static && \
ln -s /usr/bin/llc14 /usr/bin/llc
ln -s /usr/bin/llc14 /usr/bin/llc && \
ln -s /usr/bin/llvm14-strip /usr/bin/llvm-strip

# install bpftool from btfhub

RUN cd /tmp && \
git clone https://github.com/aquasecurity/btfhub.git && \
cd ./btfhub && \
git submodule update --init --recursive 3rdparty/bpftool && \
cd ./3rdparty/bpftool && \
make -C src clean && \
CC=clang make -C src all && \
cp ./src/bpftool /usr/sbin/bpftool && \
make -C src clean

#
# tracee-make
Expand Down

0 comments on commit 331d7fb

Please sign in to comment.