File tree 7 files changed +3
-41
lines changed
7 files changed +3
-41
lines changed Original file line number Diff line number Diff line change 62
62
CROWDSEC_OPENRESTY_BOUNCER_VERSION=${{ env.CROWDSEC_OPENRESTY_BOUNCER_VERSION }}
63
63
LUA_VERSION=${{ env.LUA_VERSION }}
64
64
LUAROCKS_VERSION=${{ env.LUAROCKS_VERSION }}
65
- LIBMODSECURITY_VERSION=${{ env.LIBMODSECURITY_VERSION }}
66
65
MODSECURITY_NGINX_VERSION=${{ env.MODSECURITY_NGINX_VERSION }}
67
66
CRS_VERSION=${{ env.CRS_VERSION }}
68
67
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ FROM debian:bookworm-slim AS nginxbuilder
7
7
ARG OPENRESTY_VERSION
8
8
ARG LUA_VERSION
9
9
ARG LUAROCKS_VERSION
10
- ARG LIBMODSECURITY_VERSION
11
10
ARG MODSECURITY_NGINX_VERSION
12
11
13
12
RUN apt-get update \
@@ -20,24 +19,16 @@ RUN apt-get update \
20
19
libssl-dev \
21
20
openssl \
22
21
unzip \
23
- autoconf \
24
- automake \
25
- libtool \
26
- libpcre2-dev \
27
- libpcre2-posix3 \
28
22
wget \
29
23
zlib1g-dev \
30
24
git \
31
- libmaxminddb-dev
25
+ libmaxminddb-dev \
26
+ libmodsecurity3
32
27
33
28
# Lua build
34
29
COPY ./scripts/build-lua /tmp/build-lua
35
30
RUN /tmp/build-lua
36
31
37
- # LibModSecurity build
38
- COPY ./scripts/build-modsecurity /tmp/build-modsecurity
39
- RUN /tmp/build-modsecurity
40
-
41
32
# Nginx build
42
33
COPY ./scripts/build-openresty /tmp/build-openresty
43
34
RUN /tmp/build-openresty
@@ -75,6 +66,7 @@ RUN apt-get update \
75
66
wget \
76
67
xz-utils \
77
68
libmaxminddb-dev \
69
+ libmodsecurity3 \
78
70
&& apt-get clean \
79
71
&& rm -rf /var/lib/apt/lists/* \
80
72
&& rm -rf /var/cache/* /var/log/* /tmp/* /var/lib/dpkg/status-old
@@ -87,7 +79,6 @@ COPY --from=nginxbuilder /tmp/luarocks /tmp/luarocks
87
79
COPY ./scripts/install-lua /tmp/install-lua
88
80
89
81
# Copy openresty build from first image
90
- COPY --from=nginxbuilder /tmp/modsecurity /tmp/modsecurity
91
82
COPY --from=nginxbuilder /tmp/openresty /tmp/openresty
92
83
COPY ./scripts/install-openresty /tmp/install-openresty
93
84
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ export OPENRESTY_VERSION=1.25.3.2
13
13
export CROWDSEC_OPENRESTY_BOUNCER_VERSION=0.1.7
14
14
export LUA_VERSION=5.1.5
15
15
export LUAROCKS_VERSION=3.3.1
16
- export LIBMODSECURITY_VERSION=3.0.13
17
16
export MODSECURITY_NGINX_VERSION=1.0.3
18
17
export CRS_VERSION=4.8.0
19
18
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ export OPENRESTY_VERSION=1.25.3.2
13
13
export CROWDSEC_OPENRESTY_BOUNCER_VERSION=0.1.7
14
14
export LUA_VERSION=5.1.5
15
15
export LUAROCKS_VERSION=3.3.1
16
- export LIBMODSECURITY_VERSION=3.0.13
17
16
export MODSECURITY_NGINX_VERSION=1.0.3
18
17
export CRS_VERSION=4.8.0
19
18
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ RESET='\E[0m'
8
8
9
9
echo -e " ${BLUE} ❯ ${CYAN} Installing OpenResty ${YELLOW}${OPENRESTY_VERSION} ...${RESET} "
10
10
11
- cd /tmp/modsecurity
12
- make install
13
- rm -rf /tmp/modsecurity
14
-
15
11
cd /tmp/openresty
16
12
make install
17
13
rm -rf /tmp/openresty
Original file line number Diff line number Diff line change @@ -2,6 +2,5 @@ OPENRESTY_VERSION=1.25.3.2
2
2
CROWDSEC_OPENRESTY_BOUNCER_VERSION=0.1.7
3
3
LUA_VERSION=5.1.5
4
4
LUAROCKS_VERSION=3.3.1
5
- LIBMODSECURITY_VERSION=3.0.13
6
5
MODSECURITY_NGINX_VERSION=1.0.3
7
6
CRS_VERSION=4.8.0
You can’t perform that action at this time.
0 commit comments