Skip to content

Commit bd29288

Browse files
committed
activate lua support for haproxy
Activate Lua support during haproxy compilation. This requires to install Lua lib and devel packages on the docker image. This change will allow to execute Lua script via haproxy. It will be first used to log SSL keys for traffic deciphering.
1 parent 26f84fa commit bd29288

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY --from=builder-ssl \
1515
ADD *.patch /tmp/
1616
ADD https://api.github.com/repos/haproxytech/quic-dev/git/refs/heads/qns version.json
1717
ENV DEBIAN_FRONTEND noninteractive
18-
RUN apt-get -y update && apt-get -y install git make gcc \
18+
RUN apt-get -y update && apt-get -y install git make gcc liblua5.3-0 liblua5.3-dev \
1919
&& git clone --depth 1 -b qns https://github.com/haproxytech/quic-dev.git haproxy \
2020
&& cd /haproxy \
2121
&& patch -p1 < /tmp/0001-Add-timestamps-to-stderr-sink.patch \
@@ -34,6 +34,7 @@ RUN apt-get -y update && apt-get -y install git make gcc \
3434
DEBUG="-DDEBUG_DONT_SHARE_POOLS -DDEBUG_MEMORY_POOLS -DDEBUG_STRICT=2 -DDEBUG_TASK -DDEBUG_FAIL_ALLOC" \
3535
LDFLAGS="-fuse-ld=gold" \
3636
ARCH_FLAGS="-pg" \
37+
USE_LUA=1 LUA_LIB_NAME=lua5.3 \
3738
IGNOREGIT=1 VERSION=$(git log -1 --pretty=format:%H) \
3839
&& make install
3940

@@ -42,7 +43,7 @@ FROM martenseemann/quic-network-simulator-endpoint:latest
4243
# Required for lighttpd
4344
ENV TZ=Europe/Paris
4445
RUN echo $TZ > /etc/timezone && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
45-
RUN apt-get -y update && apt-get -y install lighttpd && rm -rf /var/lib/apt/lists/*
46+
RUN apt-get -y update && apt-get -y install lighttpd liblua5.3-0 && rm -rf /var/lib/apt/lists/*
4647

4748
COPY --from=builder-ssl \
4849
/usr/local/lib/libssl.so* /usr/local/lib/libcrypto.so* /usr/local/lib/

0 commit comments

Comments
 (0)