hs-test: nginx mirroring test improvements
- avoid setting LD_PRELOAD for container - save nginx error log to shared volume - reduce test run time to 10s - add vcl and ldp debug env variables to docker file. Default to disabled. Type: test Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I401ac74e7c0ebe87befedb44150b04f773f244ea
This commit is contained in:
@@ -3,14 +3,18 @@ ARG UBUNTU_VERSION
|
||||
FROM ubuntu:${UBUNTU_VERSION}
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y nginx \
|
||||
&& apt-get install -y nginx gdb less \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY vpp-data/lib/* /usr/lib/
|
||||
COPY resources/nginx/vcl.conf /vcl.conf
|
||||
COPY resources/nginx/nginx.conf /nginx.conf
|
||||
COPY script/nginx_ldp.sh /usr/bin/nginx_ldp.sh
|
||||
|
||||
ENV VCL_CONFIG=/vcl.conf
|
||||
ENV LD_PRELOAD=/usr/lib/libvcl_ldpreload.so
|
||||
ENV LDP=/usr/lib/libvcl_ldpreload.so
|
||||
ENV LDP_DEBUG=0
|
||||
ENV VCL_DEBUG=0
|
||||
ENV LDP_SID_BIT=8
|
||||
|
||||
ENTRYPOINT ["nginx", "-c", "/nginx.conf"]
|
||||
ENTRYPOINT ["nginx_ldp.sh", "-c", "/nginx.conf"]
|
||||
|
Reference in New Issue
Block a user