From 7ea995b0a6f864fe9b61fb728282aeb98ab2444f Mon Sep 17 00:00:00 2001 From: Visshal Natarajan - Cloudsine Date: Tue, 17 Sep 2024 10:40:27 +0800 Subject: [PATCH 1/3] Update Dockerfile Added maximDB support to dockerfile for OWASP CRS 4.5 Nginx Image --- nginx/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index c3925a8..9cb1e8a 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -27,6 +27,7 @@ RUN set -eux; \ libpcre2-dev \ libtool \ libxml2-dev \ + libmaxminddb-dev \ libyajl-dev \ make \ patch \ @@ -50,7 +51,7 @@ RUN set -eux; \ sed -ie "s/i386-linux-gnu/${ARCH}/g" build/ssdeep.m4; \ sed -ie "s/i386-linux-gnu/${ARCH}/g" build/pcre2.m4; \ ./build.sh; \ - ./configure --with-yajl --with-ssdeep --with-geoip --with-pcre2 --enable-silent-rules; \ + ./configure --with-yajl --with-ssdeep --with-geoip --with-pcre2 --with-maxmind --enable-silent-rules; \ make install; \ strip /usr/local/modsecurity/lib/lib*.so* @@ -222,6 +223,7 @@ RUN set -eux; \ ${LUA_MODULES} \ libxml2 \ libyajl2 \ + libmaxminddb-dev \ moreutils; \ rm -rf /var/lib/apt/lists/*; \ apt-get clean; \ From 3ea190d83e4a4770dae5d54180af1d1a37ff237c Mon Sep 17 00:00:00 2001 From: Visshal Natarajan - Cloudsine Date: Wed, 18 Sep 2024 09:07:47 +0800 Subject: [PATCH 2/3] Update Dockerfile-alpine Added --with-maxmind flag, libmaxminddb-dev is already present. --- nginx/Dockerfile-alpine | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/Dockerfile-alpine b/nginx/Dockerfile-alpine index 47cb4bc..42fef64 100644 --- a/nginx/Dockerfile-alpine +++ b/nginx/Dockerfile-alpine @@ -48,7 +48,7 @@ RUN set -eux; \ sed -ie "s/i386-linux-gnu/${ARCH}/g" build/ssdeep.m4; \ sed -ie "s/i386-linux-gnu/${ARCH}/g" build/pcre2.m4; \ ./build.sh; \ - ./configure --with-yajl --with-ssdeep --with-lmdb --with-geoip --with-pcre2 --enable-silent-rules; \ + ./configure --with-yajl --with-ssdeep --with-lmdb --with-geoip --with-pcre2 --with-maxmind --enable-silent-rules; \ make install; \ strip /usr/local/modsecurity/lib/lib*.so* From 915ce11b3f25729d178d368896dabed8f4435f00 Mon Sep 17 00:00:00 2001 From: Visshal Natarajan - Cloudsine Date: Wed, 18 Sep 2024 09:09:44 +0800 Subject: [PATCH 3/3] Update Dockerfile-alpine Added --with-maxmind flag, libmaxminddb-dev already present --- openresty/Dockerfile-alpine | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openresty/Dockerfile-alpine b/openresty/Dockerfile-alpine index d4ad912..b0f682d 100644 --- a/openresty/Dockerfile-alpine +++ b/openresty/Dockerfile-alpine @@ -53,7 +53,7 @@ RUN set -eux; \ sed -ie "s/i386-linux-gnu/${ARCH}/g" build/ssdeep.m4; \ sed -ie "s/i386-linux-gnu/${ARCH}/g" build/pcre2.m4; \ ./build.sh; \ - ./configure --with-yajl --with-ssdeep --with-lmdb --with-geoip --enable-silent-rules --with-pcre2; \ + ./configure --with-yajl --with-ssdeep --with-lmdb --with-geoip --enable-silent-rules --with-pcre2 --with-maxmind; \ make install; \ strip /usr/local/modsecurity/lib/lib*.so*