Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(apache): switch to pcre2 #218

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN set -eux; \
libaprutil1-dev \
libcurl4-gnutls-dev \
libfuzzy-dev \
libpcre3-dev \
libpcre2-dev \
libtool \
libxml2-dev \
libyajl-dev \
Expand All @@ -31,7 +31,7 @@ RUN set -eux; \
tar -zxvf v${MODSEC2_VERSION}.tar.gz; \
cd ModSecurity-${MODSEC2_VERSION}; \
./autogen.sh; \
./configure --with-yajl --with-ssdeep; \
./configure --with-yajl --with-ssdeep --with-pcre2; \
make; \
make install; \
make clean
Expand Down Expand Up @@ -174,6 +174,7 @@ RUN set -eux; \
libfuzzy2 \
liblua${LUA_VERSION} \
${LUA_MODULES} \
libpcre2 \
libxml2 \
libyajl2; \
update-ca-certificates -f; \
Expand Down
4 changes: 2 additions & 2 deletions apache/Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ RUN set -eux; \
make \
openssl \
openssl-dev \
pcre-dev \
pcre2-dev \
zlib-dev

RUN set -eux; \
wget --quiet https://github.com/owasp-modsecurity/ModSecurity/archive/refs/tags/v${MODSEC2_VERSION}.tar.gz; \
tar -zxvf v${MODSEC2_VERSION}.tar.gz; \
cd ModSecurity-${MODSEC2_VERSION}; \
./autogen.sh; \
./configure --with-yajl --with-ssdeep --with-lmdb; \
./configure --with-yajl --with-ssdeep --with-lmdb --with-pcre2; \
make; \
make install; \
make clean
Expand Down
Loading