File tree Expand file tree Collapse file tree 6 files changed +19
-6
lines changed Expand file tree Collapse file tree 6 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -146,5 +146,4 @@ jobs:
146
146
-d tests/regression/tests \
147
147
--log-file "tests/logs/${modsec_version}/error.log" \
148
148
--overrides "tests/regression/${backend}-overrides.yaml" \
149
- --show-failures-only \
150
- --trace
149
+ --show-failures-only
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ ARG HTTPD_VERSION="n/a"
3
3
FROM image AS build
4
4
5
5
ARG MODSEC2_VERSION="n/a"
6
+ ARG MODSEC2_FLAGS="n/a"
6
7
ARG LUA_VERSION="n/a"
7
8
8
9
RUN set -eux; \
@@ -31,7 +32,7 @@ RUN set -eux; \
31
32
tar -zxvf v${MODSEC2_VERSION}.tar.gz; \
32
33
cd ModSecurity-${MODSEC2_VERSION}; \
33
34
./autogen.sh; \
34
- ./configure --with-yajl --with-ssdeep --with-pcre2 ; \
35
+ ./configure ${MODSEC2_FLAGS} ; \
35
36
make; \
36
37
make install; \
37
38
make clean
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ ARG HTTPD_VERSION="n/a"
3
3
FROM image AS build
4
4
5
5
ARG MODSEC2_VERSION="n/a"
6
+ ARG MODSEC2_FLAGS="n/a"
6
7
ARG LUA_VERSION="n/a"
7
8
8
9
# see https://httpd.apache.org/docs/2.4/install.html#requirements
@@ -41,7 +42,7 @@ RUN set -eux; \
41
42
tar -zxvf v${MODSEC2_VERSION}.tar.gz; \
42
43
cd ModSecurity-${MODSEC2_VERSION}; \
43
44
./autogen.sh; \
44
- ./configure --with-yajl --with-ssdeep --with-lmdb --with-pcre2 ; \
45
+ ./configure ${MODSEC2_FLAGS} ; \
45
46
make; \
46
47
make install; \
47
48
make clean
Original file line number Diff line number Diff line change @@ -4,11 +4,19 @@ variable "modsec3-version" {
4
4
default = " 3.0.14"
5
5
}
6
6
7
+ variable "modsec3-flags" {
8
+ default = " --with-yajl --with-ssdeep --with-lmdb --with-pcre2 --with-maxmind --enable-silent-rules"
9
+ }
10
+
7
11
variable "modsec2-version" {
8
12
# renovate: depName=ModSecurity2 packageName=owasp-modsecurity/ModSecurity datasource=github-releases
9
13
default = " 2.9.8"
10
14
}
11
15
16
+ variable "modsec2-flags" {
17
+ default = " --with-yajl --with-ssdeep --with-pcre2"
18
+ }
19
+
12
20
variable "crs-version" {
13
21
# renovate: depName=coreruleset/coreruleset datasource=github-releases
14
22
default = " 4.12.0"
@@ -109,7 +117,9 @@ target "platforms-base" {
109
117
args = {
110
118
CRS_RELEASE = " ${ crs-version } "
111
119
MODSEC2_VERSION = " ${ modsec2-version } "
120
+ MODSEC2_FLAGS = modsec2- flags
112
121
MODSEC3_VERSION = " ${ modsec3-version } "
122
+ MODSEC3_FLAGS = modsec3- flags
113
123
LUA_VERSION = " ${ lua-version } "
114
124
LMDB_VERSION = " ${ lmdb-version } "
115
125
}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM image AS build
2
2
3
3
ARG NGINX_VERSION="n/a"
4
4
ARG MODSEC3_VERSION="n/a"
5
+ ARG MODSEC3_FLAGS="n/a"
5
6
ARG LMDB_VERSION="n/a"
6
7
ARG LUA_VERSION="n/a"
7
8
ARG NGINX_DYNAMIC_MODULES="n/a"
@@ -50,7 +51,7 @@ RUN set -eux; \
50
51
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/ssdeep.m4; \
51
52
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/pcre2.m4; \
52
53
./build.sh; \
53
- ./configure --with-yajl --with-ssdeep --with-pcre2 --with-maxmind --enable-silent-rules ; \
54
+ ./configure ${MODSEC3_FLAGS} ; \
54
55
make -j$(nproc) install; \
55
56
strip /usr/local/modsecurity/lib/lib*.so*
56
57
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM image AS build
2
2
3
3
ARG NGINX_VERSION="n/a"
4
4
ARG MODSEC3_VERSION="n/a"
5
+ ARG MODSEC3_FLAGS="n/a"
5
6
ARG LUA_VERSION="n/a"
6
7
ARG NGINX_DYNAMIC_MODULES="n/a"
7
8
ARG NGINX_HOME="n/a"
@@ -48,7 +49,7 @@ RUN set -eux; \
48
49
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/ssdeep.m4; \
49
50
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/pcre2.m4; \
50
51
./build.sh; \
51
- ./configure --with-yajl --with-ssdeep --with-lmdb --with-pcre2 --with-maxmind --enable-silent-rules ; \
52
+ ./configure ${MODSEC3_FLAGS} ; \
52
53
make -j$(nproc) install; \
53
54
strip /usr/local/modsecurity/lib/lib*.so*
54
55
You can’t perform that action at this time.
0 commit comments