Skip to content

Commit a975649

Browse files
committed
introduce two variants of QuicTLS
previously QuicTLS was a patchset on top of OpenSSL, let us name it as OldQuicTLS, currently QuicTLS is not bound to OpenSSL, it will be named QuicTLS
1 parent 47abec3 commit a975649

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM ubuntu:20.04 AS builder-ssl
2-
ARG SSLLIB=QuicTLS
2+
ARG SSLLIB=QuicTLS-1.1.1
33

44
# combined list of dependencies for QuicTLS, AWS-LC
55
ENV DEBIAN_FRONTEND noninteractive
@@ -9,8 +9,10 @@ RUN apt-get -y update && apt-get -y install git g++ make gcc wget autoconf libto
99
COPY --from=golang:latest /usr/local/go/ /usr/local/go/
1010
ENV PATH="/usr/local/go/bin:${PATH}"
1111

12-
RUN if [ "$SSLLIB" = "QuicTLS" ]; \
12+
RUN if [ "$SSLLIB" = "QuicTLS-1.1.1" ]; \
1313
then git clone --depth 1 -b OpenSSL_1_1_1s+quic https://github.com/quictls/openssl.git && cd /openssl && ./config && make -j$(nproc) && make install_sw; \
14+
elif [ "$SSLLIB" = "QuicTLS" ]; \
15+
then git clone --depth 1 https://github.com/quictls/quictls.git openssl && cd /openssl && ./config --libdir=lib && make -j$(nproc) && make install_sw; \
1416
elif [ "$SSLLIB" = "AWS-LC" ]; \
1517
then git clone https://github.com/aws/aws-lc && cd aws-lc && cmake -DBUILD_SHARED_LIBS=1 -B build && make -C build && make -C build install; \
1618
elif [ "$SSLLIB" = "LibreSSL" ]; \
@@ -19,7 +21,7 @@ RUN if [ "$SSLLIB" = "QuicTLS" ]; \
1921
fi
2022

2123
FROM ubuntu:20.04 AS builder
22-
ARG SSLLIB=QuicTLS
24+
ARG SSLLIB=QuicTLS-1.1.1
2325

2426
COPY --from=builder-ssl /usr/local/include/openssl/ /usr/local/include/openssl/
2527
COPY --from=builder-ssl \
@@ -36,7 +38,7 @@ RUN apt-get -y update && apt-get -y install git make gcc liblua5.3-0 liblua5.3-d
3638
CC=gcc \
3739
TARGET=linux-glibc \
3840
CPU=generic \
39-
$(if [ "$SSLLIB" = "QuicTLS" ]; then echo USE_OPENSSL=1; elif [ "$SSLLIB" = "LibreSSL" ]; then echo USE_OPENSSL=1; elif [ "$SSLLIB" = "AWS-LC" ]; then echo USE_OPENSSL_AWSLC=1; else echo "not supported SSLLIB"; exit 1; fi) \
41+
$(if [ "$SSLLIB" = "QuicTLS" ] || [ "$SSLLIB" = "QuicTLS-1.1.1" ]; then echo USE_OPENSSL=1; elif [ "$SSLLIB" = "LibreSSL" ]; then echo USE_OPENSSL=1; elif [ "$SSLLIB" = "AWS-LC" ]; then echo USE_OPENSSL_AWSLC=1; else echo "not supported SSLLIB"; exit 1; fi) \
4042
USE_QUIC=1 \
4143
SSL_INC=/usr/local/include/ \
4244
SSL_LIB=/usr/local/lib/ \
@@ -52,7 +54,7 @@ RUN apt-get -y update && apt-get -y install git make gcc liblua5.3-0 liblua5.3-d
5254
&& make install
5355

5456
FROM martenseemann/quic-network-simulator-endpoint:latest
55-
ARG SSLLIB=QuicTLS
57+
ARG SSLLIB=QuicTLS-1.1.1
5658

5759
# Required for lighttpd
5860
ENV TZ=Europe/Paris

0 commit comments

Comments
 (0)