|
@@ -1,10 +1,11 @@
|
|
|
FROM ghcr.io/userver-framework/ubuntu-userver-build-base:v1 AS builder
|
|
|
|
|
|
-RUN apt install -y clang-14 lld-14
|
|
|
+RUN apt install -y lsb-release wget software-properties-common gnupg && \
|
|
|
+ wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh 16
|
|
|
|
|
|
WORKDIR /src
|
|
|
RUN git clone https://github.com/userver-framework/userver.git && \
|
|
|
- cd userver && git checkout b8070f28ea2fcbb4d72ccac1449639a2f352a001
|
|
|
+ cd userver && git checkout ce195952bf3050a1f410c274b1c4bc13887957b0
|
|
|
COPY userver_benchmark/ ./
|
|
|
RUN mkdir build && cd build && \
|
|
|
cmake -DUSERVER_IS_THE_ROOT_PROJECT=0 -DUSERVER_FEATURE_CRYPTOPP_BLAKE2=0 \
|
|
@@ -12,7 +13,7 @@ RUN mkdir build && cd build && \
|
|
|
-DUSERVER_FEATURE_UTEST=0 \
|
|
|
-DUSERVER_FEATURE_POSTGRESQL=1 \
|
|
|
-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=native" -DCMAKE_C_FLAGS="-march=native" \
|
|
|
- -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_C_COMPILER=clang-14 -DUSERVER_USE_LD=lld-14 .. && \
|
|
|
+ -DCMAKE_CXX_COMPILER=clang++-16 -DCMAKE_C_COMPILER=clang-16 -DUSERVER_USE_LD=lld-16 .. && \
|
|
|
make -j $(nproc)
|
|
|
|
|
|
FROM builder AS runner
|