Skip to content

Commit

Permalink
docker: Build with CMAKE_BUILD_TYPE=Debug
Browse files Browse the repository at this point in the history
Some of the bleeding edge distros we build against start shipping new
LLVM releases way before nix does. So let them do some early testing for
us while we wait for nix.
  • Loading branch information
danobi committed Sep 19, 2024
1 parent 3438e03 commit 62a60c7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docker/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ RUN apt-get update && apt-get install -y \

COPY . /src
WORKDIR /src
RUN cmake -B /build -DBUILD_TESTING=OFF

# 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"]
4 changes: 3 additions & 1 deletion docker/Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ RUN dnf install -y \

COPY . /src
WORKDIR /src
RUN cmake -B /build -DBUILD_TESTING=OFF

# 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"]
4 changes: 3 additions & 1 deletion docker/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ RUN apt-get update && apt-get install -y \

COPY . /src
WORKDIR /src
RUN cmake -B /build -DBUILD_TESTING=OFF

# 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"]

0 comments on commit 62a60c7

Please sign in to comment.