forked from bpftrace/bpftrace
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.ubuntu
More file actions
35 lines (30 loc) · 827 Bytes
/
Dockerfile.ubuntu
File metadata and controls
35 lines (30 loc) · 827 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
# This Dockerfile is used to both document and test building bpftrace on the
# development version of ubuntu. We attempt to catch bugs as early as possible
# which is why we are using devel.
FROM ubuntu:devel
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
asciidoctor \
binutils-dev \
bison \
build-essential \
clang \
cmake \
flex \
libbpf-dev \
libbpfcc-dev \
libcereal-dev \
libelf-dev \
libiberty-dev \
libpcap-dev \
llvm-dev \
liblldb-dev \
libclang-dev \
systemtap-sdt-dev \
zlib1g-dev
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"]