forked from bpftrace/bpftrace
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.debian
More file actions
41 lines (36 loc) · 1019 Bytes
/
Copy pathDockerfile.debian
File metadata and controls
41 lines (36 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This Dockerfile is used to both document and test building bpftrace on the
# upcoming debian release. We attempt to catch bugs as early as possible which
# is why we are using sid/unstable.
FROM debian:sid
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
asciidoctor \
bpftool \
binutils-dev \
bison \
build-essential \
clang \
cmake \
flex \
libbpf-dev \
libbpfcc-dev \
libcereal-dev \
libdw-dev \
libelf-dev \
libiberty-dev \
libpcap-dev \
llvm-dev \
libclang-dev \
libclang-cpp-dev \
pahole \
xxd \
zip \
zlib1g-dev
COPY . /src
WORKDIR /src
# Use CMAKE_BUILD_TYPE=Release if you don't plan on developing bpftrace
# We set USE_SYSTEM_LIBBPF=On to test that bpftrace can build with system libbpf
# (i.e. not using libbpf from the submodule)
RUN cmake -B /build -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Debug -DUSE_SYSTEM_LIBBPF=On
RUN make -C /build -j$(nproc)
ENTRYPOINT ["/build/src/bpftrace"]