summaryrefslogtreecommitdiffstats
path: root/interop/Dockerfile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:30:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 07:30:55 +0000
commit17e81f2cd1843f01838245eae7b5ed5edf83d6be (patch)
treea0f685dff11ce5a2dc546a7b46a48bae5d1c0140 /interop/Dockerfile
parentInitial commit. (diff)
downloadngtcp2-17e81f2cd1843f01838245eae7b5ed5edf83d6be.tar.xz
ngtcp2-17e81f2cd1843f01838245eae7b5ed5edf83d6be.zip
Adding upstream version 0.12.1+dfsg.upstream/0.12.1+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'interop/Dockerfile')
-rw-r--r--interop/Dockerfile39
1 files changed, 39 insertions, 0 deletions
diff --git a/interop/Dockerfile b/interop/Dockerfile
new file mode 100644
index 0000000..c5703c0
--- /dev/null
+++ b/interop/Dockerfile
@@ -0,0 +1,39 @@
+FROM martenseemann/quic-network-simulator-endpoint:latest
+
+RUN apt-get update && \
+ apt-get install -y --no-install-recommends \
+ git gcc clang-12 make binutils autoconf automake autotools-dev libtool \
+ pkg-config libev-dev libjemalloc-dev \
+ libev4 libjemalloc2 ca-certificates mime-support \
+ llvm-12 libasan5 libubsan1 && \
+ git clone --depth 1 -b OpenSSL_1_1_1s+quic https://github.com/quictls/openssl && \
+ cd openssl && ./config --openssldir=/etc/ssl && make -j$(nproc) && make install_sw && cd .. && rm -rf openssl && \
+ git clone --depth 1 https://github.com/ngtcp2/nghttp3 && \
+ cd nghttp3 && autoreconf -i && \
+ ./configure --enable-lib-only \
+ CC=clang-12 \
+ CXX=clang++-12 \
+ LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined" \
+ CPPFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined -g3" && \
+ make -j$(nproc) && make install && cd .. && rm -rf nghttp3 && \
+ git clone --depth 1 https://github.com/ngtcp2/ngtcp2 && \
+ cd ngtcp2 && autoreconf -i && \
+ ./configure \
+ CC=clang-12 \
+ CXX=clang++-12 \
+ LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined" \
+ CPPFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined -g3" && \
+ make -j$(nproc) && make install && \
+ cp examples/server examples/client examples/h09server examples/h09client /usr/local/bin && \
+ cd .. && \
+ rm -rf ngtcp2 && \
+ rm -rf /usr/local/lib/libssl.so /usr/local/lib/libcrypto.so /usr/local/lib/libssl.a /usr/local/lib/libcrypto.a /usr/local/lib/pkgconfig/*ssl.pc /usr/local/include/openssl/* && \
+ apt-get -y purge git g++ clang-12 make binutils autoconf automake \
+ autotools-dev libtool pkg-config \
+ libev-dev libjemalloc-dev && \
+ apt-get -y autoremove --purge && \
+ rm -rf /var/log/*
+
+COPY run_endpoint.sh .
+RUN chmod +x run_endpoint.sh
+ENTRYPOINT [ "./run_endpoint.sh" ]