Skip to content

Commit d6daf41

Browse files
committed
use libmodsecurity3 from package source
1 parent 56e0c63 commit d6daf41

File tree

7 files changed

+3
-41
lines changed

7 files changed

+3
-41
lines changed

.github/workflows/build.yml

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ jobs:
6262
CROWDSEC_OPENRESTY_BOUNCER_VERSION=${{ env.CROWDSEC_OPENRESTY_BOUNCER_VERSION }}
6363
LUA_VERSION=${{ env.LUA_VERSION }}
6464
LUAROCKS_VERSION=${{ env.LUAROCKS_VERSION }}
65-
LIBMODSECURITY_VERSION=${{ env.LIBMODSECURITY_VERSION }}
6665
MODSECURITY_NGINX_VERSION=${{ env.MODSECURITY_NGINX_VERSION }}
6766
CRS_VERSION=${{ env.CRS_VERSION }}
6867

docker/Dockerfile

+3-12
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ FROM debian:bookworm-slim AS nginxbuilder
77
ARG OPENRESTY_VERSION
88
ARG LUA_VERSION
99
ARG LUAROCKS_VERSION
10-
ARG LIBMODSECURITY_VERSION
1110
ARG MODSECURITY_NGINX_VERSION
1211

1312
RUN apt-get update \
@@ -20,24 +19,16 @@ RUN apt-get update \
2019
libssl-dev \
2120
openssl \
2221
unzip \
23-
autoconf \
24-
automake \
25-
libtool \
26-
libpcre2-dev \
27-
libpcre2-posix3 \
2822
wget \
2923
zlib1g-dev \
3024
git \
31-
libmaxminddb-dev
25+
libmaxminddb-dev \
26+
libmodsecurity3
3227

3328
# Lua build
3429
COPY ./scripts/build-lua /tmp/build-lua
3530
RUN /tmp/build-lua
3631

37-
# LibModSecurity build
38-
COPY ./scripts/build-modsecurity /tmp/build-modsecurity
39-
RUN /tmp/build-modsecurity
40-
4132
# Nginx build
4233
COPY ./scripts/build-openresty /tmp/build-openresty
4334
RUN /tmp/build-openresty
@@ -75,6 +66,7 @@ RUN apt-get update \
7566
wget \
7667
xz-utils \
7768
libmaxminddb-dev \
69+
libmodsecurity3 \
7870
&& apt-get clean \
7971
&& rm -rf /var/lib/apt/lists/* \
8072
&& rm -rf /var/cache/* /var/log/* /tmp/* /var/lib/dpkg/status-old
@@ -87,7 +79,6 @@ COPY --from=nginxbuilder /tmp/luarocks /tmp/luarocks
8779
COPY ./scripts/install-lua /tmp/install-lua
8880

8981
# Copy openresty build from first image
90-
COPY --from=nginxbuilder /tmp/modsecurity /tmp/modsecurity
9182
COPY --from=nginxbuilder /tmp/openresty /tmp/openresty
9283
COPY ./scripts/install-openresty /tmp/install-openresty
9384

local-build.sh

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export OPENRESTY_VERSION=1.25.3.2
1313
export CROWDSEC_OPENRESTY_BOUNCER_VERSION=0.1.7
1414
export LUA_VERSION=5.1.5
1515
export LUAROCKS_VERSION=3.3.1
16-
export LIBMODSECURITY_VERSION=3.0.13
1716
export MODSECURITY_NGINX_VERSION=1.0.3
1817
export CRS_VERSION=4.8.0
1918

local-buildx.sh

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export OPENRESTY_VERSION=1.25.3.2
1313
export CROWDSEC_OPENRESTY_BOUNCER_VERSION=0.1.7
1414
export LUA_VERSION=5.1.5
1515
export LUAROCKS_VERSION=3.3.1
16-
export LIBMODSECURITY_VERSION=3.0.13
1716
export MODSECURITY_NGINX_VERSION=1.0.3
1817
export CRS_VERSION=4.8.0
1918

scripts/build-modsecurity

-21
This file was deleted.

scripts/install-openresty

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ RESET='\E[0m'
88

99
echo -e "${BLUE}${CYAN}Installing OpenResty ${YELLOW}${OPENRESTY_VERSION}...${RESET}"
1010

11-
cd /tmp/modsecurity
12-
make install
13-
rm -rf /tmp/modsecurity
14-
1511
cd /tmp/openresty
1612
make install
1713
rm -rf /tmp/openresty

versions

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ OPENRESTY_VERSION=1.25.3.2
22
CROWDSEC_OPENRESTY_BOUNCER_VERSION=0.1.7
33
LUA_VERSION=5.1.5
44
LUAROCKS_VERSION=3.3.1
5-
LIBMODSECURITY_VERSION=3.0.13
65
MODSECURITY_NGINX_VERSION=1.0.3
76
CRS_VERSION=4.8.0

0 commit comments

Comments
 (0)