forked from bpftrace/bpftrace
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.fedora
35 lines (30 loc) · 870 Bytes
/
Dockerfile.fedora
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
# This Dockerfile is used to both document and test building bpftrace on the
# development version of fedora. We attempt to catch bugs as early as possible
# which is why we are using rawhide.
FROM fedora:rawhide
RUN dnf install -y \
asciidoctor \
bison \
binutils-devel \
bcc-devel \
cereal-devel \
clang-devel \
cmake \
elfutils-devel \
elfutils-libelf-devel \
elfutils-libs \
flex \
gcc \
gcc-c++ \
libpcap-devel \
libbpf-devel \
llvm-devel \
make \
systemtap-sdt-devel \
zlib-devel
COPY . /src
WORKDIR /src
# Use CMAKE_BUILD_TYPE=Release if you don't plan on developing bpftrace
RUN cmake -B /build -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Debug
RUN make -C /build -j$(nproc)
ENTRYPOINT ["/build/src/bpftrace"]