Skip to content

Commit a520c6e

Browse files
committed
fix alpine
1 parent 5f8cc7f commit a520c6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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.0
10+
NAP_AGENT_VERSION ?= 2
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: 3 additions & 3 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.0
9+
ARG NAP_AGENT_VERSION=2
1010
ARG DOWNLOAD_TAG=edge
1111
ARG DEBIAN_FRONTEND=noninteractive
1212
ARG PREBUILT_BASE_IMG=nginx/nginx-ingress:${DOWNLOAD_TAG}
@@ -230,7 +230,7 @@ RUN --mount=type=bind,from=alpine-fips-3.19,target=/tmp/fips/ \
230230
&& printf "%s\n" "https://pkgs.nginx.com/app-protect-security-updates/alpine/v$(grep -E -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
231231
&& printf "%s\n" "https://${PACKAGE_REPO}/nginx-agent/alpine/v$(grep -E -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
232232
&& apk add --no-cache libcap-utils libcurl nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-plus-module-fips-check \
233-
&& apk add --no-cache nginx-agent~${NAP_AGENT_VERSION} \
233+
&& apk add --no-cache "nginx-agent>=${NAP_AGENT_VERSION}" \
234234
&& mkdir -p /usr/ssl \
235235
&& cp -av /tmp/fips/usr/lib/ossl-modules/fips.so /usr/lib/ossl-modules/fips.so \
236236
&& cp -av /tmp/fips/usr/ssl/fipsmodule.cnf /usr/ssl/fipsmodule.cnf \
@@ -263,7 +263,7 @@ RUN --mount=type=bind,from=alpine-fips-3.19,target=/tmp/fips/ \
263263
&& printf "%s\n" "https://${PACKAGE_REPO}/app-protect-x-plus/alpine/v$(grep -E -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
264264
&& printf "%s\n" "https://${PACKAGE_REPO}/nginx-agent/alpine/v$(grep -E -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
265265
&& apk add --no-cache libcap-utils libcurl nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-plus-module-fips-check \
266-
&& apk add --no-cache nginx-agent~${NAP_AGENT_VERSION} \
266+
&& apk add --no-cache "nginx-agent>=${NAP_AGENT_VERSION}" \
267267
&& mkdir -p /usr/ssl \
268268
&& cp -av /tmp/fips/usr/lib/ossl-modules/fips.so /usr/lib/ossl-modules/fips.so \
269269
&& cp -av /tmp/fips/usr/ssl/fipsmodule.cnf /usr/ssl/fipsmodule.cnf \

0 commit comments

Comments
 (0)