
- test is no longer marked as extended - no building required -> removed nginx build scripts Type: test Change-Id: I1814b1e4b7e514f81797efa3b5c1e818d2fe4cda Signed-off-by: Adrian Villin <avillin@cisco.com>
31 lines
1.0 KiB
Docker
31 lines
1.0 KiB
Docker
ARG UBUNTU_VERSION
|
|
|
|
FROM ubuntu:${UBUNTU_VERSION}
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y curl gnupg2 ca-certificates lsb-release ubuntu-keyring libunwind-dev
|
|
RUN curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
|
|
| tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
|
|
RUN echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
|
|
http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
|
|
| tee /etc/apt/sources.list.d/nginx.list
|
|
RUN bash -c 'echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" \
|
|
| tee /etc/apt/preferences.d/99nginx'
|
|
|
|
RUN apt update && apt install -y nginx=1.26.2-1~jammy
|
|
|
|
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", "nginx", "-c", "/nginx.conf"]
|