Debian Codegraph @

tests/Dockerfile.debian-clang-15

raw
1 FROM debian:bookworm
2
3 # non-interactive
4 ENV DEBIAN_FRONTEND noninteractive
5
6 # install build dependencies
7 RUN apt-get update
8 RUN apt-get install -y --no-install-recommends build-essential git ca-certificates cmake libssl-dev\
9 capnproto libcapnp-dev libelf-dev libbpf-dev libpcap-dev libgrpc-dev libgrpc++-dev libprotobuf-dev\
10 protobuf-compiler libprotoc-dev libprotobuf-dev protobuf-compiler-grpc libboost-dev\
11 libboost-serialization-dev libboost-thread-dev libboost-regex-dev libboost-program-options-dev\
12 libmongoc-dev liblog4cpp5-dev libncurses-dev
13
14 # install clang-15
15 RUN apt-get install -y --no-install-recommends clang-15
16
17 # set clang-15 as default compiler
18 RUN update-alternatives --install /usr/bin/cc cc /usr/bin/clang-15 100
19 RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-15 100
20
21
22 COPY src/ /src/
23 WORKDIR /src
24 RUN mkdir build && cd build && cmake .. -DLINK_WITH_ABSL=ON\
25 && make -j$(nproc)