litespeed-quic/Dockerfile
Dmitri Tikhonov 2c252f915b Update BoringSSL to later version, need this for ID-28
In ID-28, using TLS middlebox compatibility mode is forbidden and
we need a later version of BoringSSL for it to do the right thing.
This also means we had to update our code, because BoringSSL's QUIC
API has changed.
2020-06-12 10:00:17 -04:00

28 lines
739 B
Docker

FROM ubuntu:16.04
RUN apt-get update && \
apt-get install -y build-essential git cmake software-properties-common \
zlib1g-dev libevent-dev
RUN add-apt-repository ppa:gophers/archive && \
apt-get update && \
apt-get install -y golang-1.9-go && \
cp /usr/lib/go-1.9/bin/go* /usr/bin/.
RUN mkdir /src
WORKDIR /src
RUN mkdir /src/lsquic
COPY ./ /src/lsquic/
RUN git clone https://boringssl.googlesource.com/boringssl && \
cd boringssl && \
git checkout 251b5169fd44345f455438312ec4e18ae07fd58c && \
cmake . && \
make
RUN cd /src/lsquic && \
cmake -DBORINGSSL_DIR=/src/boringssl . && \
make
RUN cd lsquic && make test && cp http_client /usr/bin/ && cp http_server /usr/bin