Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 96d15a3

Browse files
authored
Merge pull request #16 from M4tteoP/main
update modsec and change wasm repo to v3/dev/wasm-experimental
2 parents 01934b2 + 8d4d5ce commit 96d15a3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

wasmplugin/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ RUN git clone -b v3.9.1 https://github.com/protocolbuffers/protobuf \
2929
&& cd .. \
3030
&& rm -rf protobuf
3131

32+
# Commit from SpiderLabs/ModSecurity repository, aiming at v3/dev/wasm-experimental branch
33+
ARG MODSEC_SHA=a3454df9b09a8de16d41be10cdea4fc46ef08e91
34+
3235
WORKDIR /root/
3336
RUN git clone https://github.com/emscripten-core/emsdk.git -b 3.1.15 \
3437
&& git clone https://github.com/maxfierke/libpcre.git -b mf-wasm32-wasi-cross-compile \
35-
&& git clone https://github.com/SpiderLabs/ModSecurity.git -b v3/dev/wasm-experimental \
38+
&& git clone https://github.com/SpiderLabs/ModSecurity.git \
39+
&& git -C ModSecurity checkout $MODSEC_SHA \
3640
&& git clone https://github.com/abseil/abseil-cpp -b 20211102.0 \
3741
&& git clone https://github.com/proxy-wasm/proxy-wasm-cpp-sdk \
3842
&& git clone https://github.com/istio/proxy.git -b 1.13.3
@@ -67,7 +71,7 @@ RUN ./build.sh \
6771
&& emconfigure ./configure --without-yajl --without-geoip --without-libxml --without-curl \
6872
--without-lua --disable-shared --disable-examples --disable-libtool-lock \
6973
--disable-debug-logs --disable-mutex-on-pm --without-lmdb --without-maxmind \
70-
--without-ssdeep --with-pcre=./pcre-config \
74+
--without-ssdeep --without-pcre2 --with-pcre=./pcre-config \
7175
&& emmake make -j 4 \
7276
&& emmake make install \
7377
&& cd ..

0 commit comments

Comments
 (0)