TrustTunnel/bench/Dockerfile
Andrey Yakushin dee39c3b41 Pull request 82: Update project name to TrustTunnel
Squashed commit of the following:

commit 8fbda7737e693a3ec1abebd0cba30619b6b352ef
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Thu Dec 11 18:54:10 2025 +0400

    Update store links

commit 01f2fc438571bffa45f06352c40496fb105f3a9c
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Thu Dec 11 18:53:46 2025 +0400

    Use logo from cdn

commit 59daf7ed7c2cdfa0162845cafb8af18fecb8e66d
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Thu Dec 11 18:17:41 2025 +0400

    Add docs about creating client config

commit 496c499924f8614221a397e7061b36e752f60a03
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Thu Dec 11 18:17:31 2025 +0400

    Add make script to generate client config

commit e1db0bc5e2b9a73fd3f6b5db437faf82b678c704
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Thu Dec 11 17:36:06 2025 +0400

    Add docs about makefile configuration variables

commit 06461b7523a5f6b2cfa76a4635433e30fa40eb1f
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Thu Dec 11 17:00:21 2025 +0400

    Update prerequisites

commit ba84d71efb5cfeed4d6b2169d3f533b22382a902
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Thu Dec 11 16:51:10 2025 +0400

    Fix docker

commit f65f8f7107bcb8a449b7fcee4ce329d3b1c171a6
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Thu Dec 11 15:11:07 2025 +0400

    Introduce logo

commit 987dee12108062a59c158737f9ffb660c9d9163c
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Thu Dec 11 15:10:48 2025 +0400

    Remove todo about logo in subdir readme

commit 3456080654dc7c79d12573ecc00621281394a94a
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Thu Dec 11 15:09:53 2025 +0400

    Remove outdated todo

commit ca5319e4da74f7ae5acc5b293491dbc6a70ca758
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Thu Dec 11 12:48:06 2025 +0400

    Add logo

commit f956fc6938dbd24ddd626915081556d1ec9ba2c5
Author: Sergey Fionov <sfionov@adguard.com>
Date:   Wed Dec 10 19:28:33 2025 +0300

    Applied suggestion

commit e91bc88b55dfe11d0aa3ca59ca0d6d4b5ea636a7
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Wed Dec 10 18:00:41 2025 +0400

    Remove mentioning adguard vpn protocol

commit b7e69ded4717737e887900fa2a5a14fe2b9eab44
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Mon Dec 8 23:05:45 2025 +0400

    Fix benchs

commit 3e9b6ebdb3e5f288dafdb6693a2a6c0c54db6409
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Fri Dec 5 19:17:17 2025 +0400

    Fix arg name

commit 4e8095581d77310815cc31279197f804d342b913
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Fri Dec 5 16:30:55 2025 +0400

    Update root readme

commit 86de84533e3354c20e8e273f27621e4b888fff28
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Fri Dec 5 16:30:35 2025 +0400

    Rebrand sub readmes

commit 498f1fd6fc4ef53d9daeff3df2999c6a7e4b7816
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Fri Dec 5 16:30:10 2025 +0400

    Rebrand make and docket

commit 4a0ff086a01ef5722ce809bd9db7b86c3d31ad3e
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Fri Dec 5 16:28:53 2025 +0400

    Rebrand bench
2025-12-15 17:10:10 +03:00

30 lines
1.1 KiB
Docker

# syntax=docker/dockerfile:1
FROM python:3.13-slim-bullseye
ARG RUST_CHANNEL=1.85
ARG LLVM_MAJOR_VER=17
# Install the required utilities
RUN apt update && \
apt install -y build-essential curl git gnupg lsb-release iperf3 iproute2 \
net-tools software-properties-common wget tar libssl-dev
RUN curl -OL https://github.com/Kitware/CMake/releases/download/v3.31.10/cmake-3.31.10.tar.gz && \
tar -zxf cmake-3.31.10.tar.gz && cd cmake-3.31.10 && \
./bootstrap -- -DCMAKE_BUILD_TYPE:STRING=Release && \
make -j3 && make install && cd .. \
rm cmake-3.31.10.tar.gz && rm -rf cmake-3.31.10
## Install LLVM
RUN curl -O https://apt.llvm.org/llvm.sh && \
chmod +x llvm.sh && \
./llvm.sh $LLVM_MAJOR_VER && \
rm ./llvm.sh && \
apt install -y libc++-${LLVM_MAJOR_VER}-dev && \
apt install -y libclang-17-dev && \
ln -s libc++abi.so.1 /usr/lib/llvm-$LLVM_MAJOR_VER/lib/libc++abi.so
# Install Rust and Cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain ${RUST_CHANNEL}
ENV PATH="/root/.cargo/bin:${PATH}"
CMD bash