@@ -6,7 +6,7 @@ ARG NAP_WAF_VERSION=35+5.498
6
6
ARG NAP_WAF_COMMON_VERSION=11.533
7
7
ARG NAP_WAF_PLUGIN_VERSION=6.20.0
8
8
ARG NGINX_AGENT_VERSION=3.3
9
- ARG NAP_AGENT_VERSION=2
9
+ ARG NAP_AGENT_VERSION=2.0
10
10
ARG DOWNLOAD_TAG=edge
11
11
ARG DEBIAN_FRONTEND=noninteractive
12
12
ARG PREBUILT_BASE_IMG=nginx/nginx-ingress:${DOWNLOAD_TAG}
@@ -357,7 +357,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
357
357
app-protect-plugin=${NAP_WAF_PLUGIN_VERSION}* \
358
358
app-protect-attack-signatures \
359
359
app-protect-threat-campaigns \
360
- nginx-agent=${NAP_AGENT_VERSION}* \
360
+ nginx-agent=${NAP_AGENT_VERSION}. * \
361
361
&& rm -f /etc/apt/sources.list.d/app-protect.sources /etc/apt/sources.list.d/nginx-agent.sources \
362
362
&& nap-waf.sh \
363
363
&& agent.sh; \
@@ -388,7 +388,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
388
388
--mount=type=bind,from=nginx-files,src=nap-waf.sh,target=/usr/local/bin/nap-waf.sh \
389
389
--mount=type=bind,from=nginx-files,src=debian-agent-12.sources,target=/etc/apt/sources.list.d/nginx-agent.sources \
390
390
apt-get update \
391
- && apt-get install --no-install-recommends --no-install-suggests -y nginx-agent=${NAP_AGENT_VERSION}* app-protect-module-plus=${NAP_WAF_VERSION}* nginx-plus-module-appprotect=${NAP_WAF_VERSION}* app-protect-plugin=${NAP_WAF_PLUGIN_VERSION}* \
391
+ && apt-get install --no-install-recommends --no-install-suggests -y nginx-agent=${NAP_AGENT_VERSION}. * app-protect-module-plus=${NAP_WAF_VERSION}* nginx-plus-module-appprotect=${NAP_WAF_VERSION}* app-protect-plugin=${NAP_WAF_PLUGIN_VERSION}* \
392
392
&& nap-waf.sh \
393
393
&& agent.sh
394
394
@@ -414,7 +414,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
414
414
mkdir -p /etc/nginx/reporting/ && cp -av /tmp/nginx/reporting/tracking.info /etc/nginx/reporting/tracking.info \
415
415
&& ubi-setup.sh \
416
416
&& rpm -Uvh /ubi-bin/c-ares-*.rpm \
417
- && microdnf --nodocs install -y nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-plus-module-fips-check nginx-agent-${NGINX_AGENT_VERSION}* \
417
+ && microdnf --nodocs install -y nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-plus-module-fips-check nginx-agent-${NGINX_AGENT_VERSION}. * \
418
418
&& agent.sh \
419
419
&& ubi-clean.sh
420
420
@@ -448,7 +448,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
448
448
mkdir -p /etc/nginx/reporting/ && cp -av /tmp/nginx/reporting/tracking.info /etc/nginx/reporting/tracking.info \
449
449
&& ubi-setup.sh \
450
450
&& rpm -Uvh /ubi-bin/c-ares-*.rpm \
451
- && microdnf --nodocs install -y nginx-plus nginx-plus-module-njs nginx-plus-module-fips-check nginx-plus-module-otel nginx-agent-${NAP_AGENT_VERSION}* \
451
+ && microdnf --nodocs install -y nginx-plus nginx-plus-module-njs nginx-plus-module-fips-check nginx-plus-module-otel nginx-agent-${NAP_AGENT_VERSION}. * \
452
452
&& source /tmp/rhel_license \
453
453
&& microdnf --nodocs install -y ca-certificates shadow-utils subscription-manager \
454
454
&& rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
@@ -501,7 +501,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
501
501
&& rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
502
502
&& rpm -Uvh /ubi-bin/c-ares-*.rpm \
503
503
&& microdnf --nodocs install -y ca-certificates shadow-utils subscription-manager \
504
- && microdnf --nodocs install -y nginx-plus-module-otel nginx-agent-${NAP_AGENT_VERSION}* app-protect-module-plus-${NAP_WAF_VERSION}* \
504
+ && microdnf --nodocs install -y nginx-plus-module-otel nginx-agent-${NAP_AGENT_VERSION}. * app-protect-module-plus-${NAP_WAF_VERSION}* \
505
505
&& nap-waf.sh \
506
506
&& ubi-clean.sh \
507
507
&& agent.sh
@@ -535,7 +535,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
535
535
&& rpm --import /tmp/nginx_signing.key \
536
536
&& rpm --import /tmp/app-protect-security-updates.key \
537
537
&& rpm -Uvh /ubi-bin/c-ares-*.rpm \
538
- && dnf --nodocs install -y nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-plus-module-fips-check nginx-agent-${NAP_AGENT_VERSION}* \
538
+ && dnf --nodocs install -y nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-plus-module-fips-check nginx-agent-${NAP_AGENT_VERSION}. * \
539
539
&& sed -i 's/\( def in_container():\) /\1\n return False/g' /usr/lib64/python*/*-packages/rhsm/config.py \
540
540
&& subscription-manager register --org=${RHEL_ORGANIZATION} --activationkey=${RHEL_ACTIVATION_KEY} --name ${BUILD_OS}-$(uname -m) || true \
541
541
&& subscription-manager attach \
@@ -574,7 +574,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
574
574
&& useradd --system --gid nginx --no-create-home --home-dir /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \
575
575
&& rpm --import /tmp/nginx_signing.key \
576
576
&& rpm -Uvh /ubi-bin/c-ares-*.rpm \
577
- && dnf --nodocs install -y nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-plus-module-fips-check nginx-agent-${NAP_AGENT_VERSION}* \
577
+ && dnf --nodocs install -y nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-plus-module-fips-check nginx-agent-${NAP_AGENT_VERSION}. * \
578
578
&& dnf --nodocs install -y app-protect-module-plus-${NAP_WAF_VERSION}* \
579
579
&& nap-waf.sh \
580
580
&& agent.sh \
0 commit comments