Skip to content

Commit 2b6a9f2

Browse files
authored
Add Alpine 3.22 Support (#1150)
1 parent a9e5d34 commit 2b6a9f2

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,12 @@ jobs:
9393
strategy:
9494
matrix:
9595
container:
96+
- image: "ubuntu"
97+
version: "24.04"
9698
- image: "redhatenterprise"
9799
version: "9"
98100
- image: "alpine"
99-
version: "3.19"
101+
version: "3.22"
100102
steps:
101103
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
102104
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ GOBIN ?= $$(go env GOPATH)/bin
2222
# | redhatenterprise | 8, 9 | |
2323
# | rockylinux | 8, 9 | |
2424
# | almalinux | 8, 9 | |
25-
# | alpine | 3.17, 3.18, 3.19, 3.20, 3.21 | |
25+
# | alpine | 3.18, 3.19, 3.20, 3.21 3.22 | |
2626
# | oraclelinux | 8, 9 | |
27-
# | suse | sles12sp5, sle15 | |
27+
# | suse | sle15 | |
2828
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
2929
OS_RELEASE ?= ubuntu
30-
OS_VERSION ?= 22.04
30+
OS_VERSION ?= 24.04
3131
BASE_IMAGE = "docker.io/$(OS_RELEASE):$(OS_VERSION)"
3232
IMAGE_TAG = "agent_$(OS_RELEASE)_$(OS_VERSION)"
3333
DOCKERFILE_PATH = "./test/docker/nginx-oss/$(CONTAINER_OS_TYPE)/Dockerfile"
@@ -62,7 +62,7 @@ APK_PACKAGE := ./build/$(PACKAGE_NAME).apk
6262
DEB_PACKAGE := ./build/$(PACKAGE_NAME).deb
6363
RPM_PACKAGE := ./build/$(PACKAGE_NAME).rpm
6464

65-
MOCK_MANAGEMENT_PLANE_CONFIG_DIRECTORY ?=
65+
MOCK_MANAGEMENT_PLANE_CONFIG_DIRECTORY ?=
6666
MOCK_MANAGEMENT_PLANE_LOG_LEVEL ?= INFO
6767
MOCK_MANAGEMENT_PLANE_GRPC_ADDRESS ?= 127.0.0.1:0
6868
MOCK_MANAGEMENT_PLANE_API_ADDRESS ?= 127.0.0.1:0

Makefile.packaging

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ TARBALL_NAME := $(PACKAGE_PREFIX).tar.gz
1414

1515
DEB_DISTROS ?= ubuntu-noble-24.04 ubuntu-jammy-22.04 ubuntu-focal-20.04 debian-bookworm-12 debian-bullseye-11
1616
DEB_ARCHS ?= arm64 amd64
17-
RPM_DISTROS ?= oraclelinux-8-x86_64 oraclelinux-9-x86_64 suse-12-x86_64 suse-15-x86_64
17+
RPM_DISTROS ?= oraclelinux-8-x86_64 oraclelinux-9-x86_64 suse-15-x86_64
1818
RPM_ARCH := x86_64
1919
REDHAT_VERSIONS ?= redhatenterprise-8 redhatenterprise-9
2020
REDHAT_ARCHS ?= aarch64 x86_64
2121
ROCKY_VERSIONS ?= rocky-8 rocky-9
2222
ROCKY_ARCHS ?= aarch64 x86_64
2323
FREEBSD_DISTROS ?= "FreeBSD:13:amd64" "FreeBSD:14:amd64"
24-
APK_VERSIONS ?= 3.18 3.19 3.20 3.21
24+
APK_VERSIONS ?= 3.18 3.19 3.20 3.21 3.22
2525
APK_ARCHS ?= aarch64 x86_64
2626
APK_REVISION ?= 1
2727
ALMA_VERSIONS ?= almalinux-8 almalinux-9

scripts/packages/package-check.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ PKG_DIR="${PKG_REPO}/${PKG_NAME}"
4949
PKG_REPO_URL="https://${PKG_DIR}"
5050

5151
APK=(
52+
alpine/v3.22/main/aarch64/nginx-agent-$VERSION.apk
53+
alpine/v3.22/main/x86_64/nginx-agent-$VERSION.apk
5254
alpine/v3.21/main/aarch64/nginx-agent-$VERSION.apk
5355
alpine/v3.21/main/x86_64/nginx-agent-$VERSION.apk
5456
alpine/v3.20/main/aarch64/nginx-agent-$VERSION.apk
@@ -81,7 +83,6 @@ AMZN=(
8183
)
8284
SUSE=(
8385
sles/15/x86_64/RPMS/nginx-agent-$VERSION.sles15.ngx.x86_64.rpm
84-
sles/12/x86_64/RPMS/nginx-agent-$VERSION.sles12.ngx.x86_64.rpm
8586
)
8687
CENTOS=(
8788
centos/9/aarch64/RPMS/nginx-agent-$VERSION.el9.ngx.aarch64.rpm
@@ -156,4 +157,4 @@ check_repo() {
156157
}
157158

158159
check_repo
159-
check_pkgs
160+
check_pkgs

test/docker/nginx-oss/deb/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ COPY ./build /agent/build
1212
COPY $ENTRY_POINT /agent/entrypoint.sh
1313

1414
RUN set -x \
15-
&& addgroup --system --gid 101 nginx \
16-
&& adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 101 nginx \
15+
&& ls /usr/sbin/ \
16+
&& groupadd --system --gid 101 nginx \
17+
&& useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx \
1718
&& apt-get update \
1819
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates \
1920
gnupg2 \

0 commit comments

Comments
 (0)