Skip to content

Commit 67cd0df

Browse files
committed
add restriction based off comment
1 parent 43c02bc commit 67cd0df

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NGINX_PLUS_VERSION ?= R35
77
NAP_WAF_VERSION ?= 35+5.498
88
NAP_WAF_COMMON_VERSION ?= 11.533
99
NAP_WAF_PLUGIN_VERSION ?= 6.20.0
10-
NAP_AGENT_VERSION ?= 2
10+
NAP_AGENT_VERSION ?= 2.0
1111
NGINX_AGENT_VERSION ?= 3.3
1212
PLUS_ARGS = --build-arg NGINX_PLUS_VERSION=$(NGINX_PLUS_VERSION) --secret id=nginx-repo.crt,src=nginx-repo.crt --secret id=nginx-repo.key,src=nginx-repo.key
1313

build/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG NAP_WAF_VERSION=35+5.498
66
ARG NAP_WAF_COMMON_VERSION=11.533
77
ARG NAP_WAF_PLUGIN_VERSION=6.20.0
88
ARG NGINX_AGENT_VERSION=3.3
9-
ARG NAP_AGENT_VERSION=2
9+
ARG NAP_AGENT_VERSION=2.0
1010
ARG DOWNLOAD_TAG=edge
1111
ARG DEBIAN_FRONTEND=noninteractive
1212
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
357357
app-protect-plugin=${NAP_WAF_PLUGIN_VERSION}* \
358358
app-protect-attack-signatures \
359359
app-protect-threat-campaigns \
360-
nginx-agent=${NAP_AGENT_VERSION}* \
360+
nginx-agent=${NAP_AGENT_VERSION}.* \
361361
&& rm -f /etc/apt/sources.list.d/app-protect.sources /etc/apt/sources.list.d/nginx-agent.sources \
362362
&& nap-waf.sh \
363363
&& agent.sh; \
@@ -388,7 +388,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
388388
--mount=type=bind,from=nginx-files,src=nap-waf.sh,target=/usr/local/bin/nap-waf.sh \
389389
--mount=type=bind,from=nginx-files,src=debian-agent-12.sources,target=/etc/apt/sources.list.d/nginx-agent.sources \
390390
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}* \
392392
&& nap-waf.sh \
393393
&& agent.sh
394394

@@ -414,7 +414,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
414414
mkdir -p /etc/nginx/reporting/ && cp -av /tmp/nginx/reporting/tracking.info /etc/nginx/reporting/tracking.info \
415415
&& ubi-setup.sh \
416416
&& 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}.* \
418418
&& agent.sh \
419419
&& ubi-clean.sh
420420

@@ -448,7 +448,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
448448
mkdir -p /etc/nginx/reporting/ && cp -av /tmp/nginx/reporting/tracking.info /etc/nginx/reporting/tracking.info \
449449
&& ubi-setup.sh \
450450
&& 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}.* \
452452
&& source /tmp/rhel_license \
453453
&& microdnf --nodocs install -y ca-certificates shadow-utils subscription-manager \
454454
&& 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
501501
&& rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
502502
&& rpm -Uvh /ubi-bin/c-ares-*.rpm \
503503
&& 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}* \
505505
&& nap-waf.sh \
506506
&& ubi-clean.sh \
507507
&& agent.sh
@@ -535,7 +535,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
535535
&& rpm --import /tmp/nginx_signing.key \
536536
&& rpm --import /tmp/app-protect-security-updates.key \
537537
&& 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}.* \
539539
&& sed -i 's/\(def in_container():\)/\1\n return False/g' /usr/lib64/python*/*-packages/rhsm/config.py \
540540
&& subscription-manager register --org=${RHEL_ORGANIZATION} --activationkey=${RHEL_ACTIVATION_KEY} --name ${BUILD_OS}-$(uname -m) || true \
541541
&& subscription-manager attach \
@@ -574,7 +574,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
574574
&& useradd --system --gid nginx --no-create-home --home-dir /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \
575575
&& rpm --import /tmp/nginx_signing.key \
576576
&& 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}.* \
578578
&& dnf --nodocs install -y app-protect-module-plus-${NAP_WAF_VERSION}* \
579579
&& nap-waf.sh \
580580
&& agent.sh \

0 commit comments

Comments
 (0)