summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/docker/Dockerfile.nginx-http3
blob: 8b2f8406d38ff7709c9d2d6846e80bd0a387702e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ARG UBUNTU_VERSION

FROM ubuntu:${UBUNTU_VERSION}

RUN apt-get update \
 && apt-get install -y gcc git make autoconf libtool pkg-config cmake ninja-build golang \
 && rm -rf /var/lib/apt/lists/*

COPY script/build_boringssl.sh /build_boringssl.sh
RUN git clone https://boringssl.googlesource.com/boringssl
RUN ./build_boringssl.sh

COPY script/build_nginx.sh /build_nginx.sh
RUN git clone https://github.com/nginx/nginx
RUN ./build_nginx.sh

COPY vpp-data/lib/* /usr/lib/
COPY resources/nginx/vcl.conf /vcl.conf
COPY resources/nginx/nginx_http3.conf /nginx.conf
COPY script/nginx_ldp.sh /usr/bin/nginx_ldp.sh

COPY resources/nginx/html/index.html /usr/share/nginx/index.html

ENV VCL_CONFIG=/vcl.conf
ENV LDP=/usr/lib/libvcl_ldpreload.so
ENV LDP_DEBUG=0
ENV VCL_DEBUG=0
ENV LDP_SID_BIT=8

ENTRYPOINT ["nginx_ldp.sh", "/usr/local/nginx/sbin/nginx", "-c", "/nginx.conf"]