Skip to content

Commit 73061a6

Browse files
committed
Update preinstall script to update agent config from V2 to V3
1 parent 5712773 commit 73061a6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/docker/nginx-official-image/apk/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ WORKDIR /agent
1212
COPY ./build/${PACKAGE_NAME}.apk /agent/build/${PACKAGE_NAME}.apk
1313
COPY ./ /agent
1414

15+
RUN apk del nginx-agent \
1516
RUN apk add --allow-untrusted /agent/build/${PACKAGE_NAME}.apk
1617

1718
RUN unlink /var/log/nginx/access.log

test/docker/nginx-official-image/deb/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ COPY ./build/${PACKAGE_NAME}.deb /agent/build/${PACKAGE_NAME}.deb
1414
COPY ./ /agent
1515

1616
RUN apt-get update \
17+
&& apt purge -y nginx-agent \
1718
&& apt install --no-install-recommends --no-install-suggests -y /agent/build/${PACKAGE_NAME}.deb \
1819
&& rm /agent/build/${PACKAGE_NAME}.deb
1920

0 commit comments

Comments
 (0)