Skip to content

Commit e4101a5

Browse files
committed
Test agent release 3.5.0
1 parent fc3c682 commit e4101a5

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

build/Dockerfile.nginx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,22 @@ RUN apk update && apk add --no-cache 'pcre2>=10.46-r0' 'libxml2>=2.13.9-r0'
1212

1313
# renovate: datasource=github-tags depName=nginx/agent
1414
ARG NGINX_AGENT_VERSION=v3.4.2
15+
ARG NGINX_AGENT_BRANCH=release-3.5.0
1516
ARG NJS_DIR
1617
ARG NGINX_CONF_DIR
1718
ARG BUILD_AGENT
1819

19-
RUN --mount=type=bind,from=nginx-files,src=nginx_signing.rsa.pub,target=/etc/apk/keys/nginx_signing.rsa.pub \
20-
printf "%s\n" "https://packages.nginx.org/nginx-agent/alpine/v$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
21-
&& apk add --no-cache nginx-agent=${NGINX_AGENT_VERSION#v}
20+
# Build nginx-agent from source using the fix branch
21+
RUN apk add --no-cache git go make \
22+
&& git clone --branch ${NGINX_AGENT_BRANCH} --depth 1 https://github.com/nginx/agent.git /tmp/agent \
23+
&& cd /tmp/agent \
24+
&& make build \
25+
&& cp /tmp/agent/build/nginx-agent /usr/bin/nginx-agent \
26+
&& mkdir -p /etc/nginx-agent \
27+
&& cp /tmp/agent/nginx-agent.conf /etc/nginx-agent/ \
28+
&& cd / \
29+
&& rm -rf /tmp/agent \
30+
&& apk del git go make
2231

2332
RUN apk add --no-cache bash \
2433
&& mkdir -p /usr/lib/nginx/modules \

build/Dockerfile.nginxplus

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ FROM alpine:3.22
99
ARG NGINX_PLUS_VERSION=R35
1010
# renovate: datasource=github-tags depName=nginx/agent
1111
ARG NGINX_AGENT_VERSION=v3.4.2
12+
ARG NGINX_AGENT_BRANCH=release-3.5.0
1213
ARG NJS_DIR
1314
ARG NGINX_CONF_DIR
1415
ARG BUILD_AGENT
@@ -19,8 +20,19 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/apk/cert.pem,mode=0644 \
1920
addgroup -g 1001 -S nginx \
2021
&& adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx \
2122
&& printf "%s\n" "https://pkgs.nginx.com/plus/${NGINX_PLUS_VERSION}/alpine/v$(grep -E -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
22-
&& printf "%s\n" "https://pkgs.nginx.com/nginx-agent/alpine/v$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
23-
&& apk add --no-cache nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-agent=${NGINX_AGENT_VERSION#v}
23+
&& apk add --no-cache nginx-plus nginx-plus-module-njs nginx-plus-module-otel
24+
25+
# Build nginx-agent from source using the fix branch
26+
RUN apk add --no-cache git go make \
27+
&& git clone --branch ${NGINX_AGENT_BRANCH} --depth 1 https://github.com/nginx/agent.git /tmp/agent \
28+
&& cd /tmp/agent \
29+
&& make build \
30+
&& cp /tmp/agent/build/nginx-agent /usr/bin/nginx-agent \
31+
&& mkdir -p /etc/nginx-agent \
32+
&& cp /tmp/agent/nginx-agent.conf /etc/nginx-agent/ \
33+
&& cd / \
34+
&& rm -rf /tmp/agent \
35+
&& apk del git go make
2436

2537
RUN apk add --no-cache bash \
2638
&& mkdir -p /usr/lib/nginx/modules \

0 commit comments

Comments
 (0)