Skip to content

Commit facd8e7

Browse files
authored
Merge pull request #18 from Intellection/upgrade_to_zappi_nginx_1_25_3_on_bookworm
Upgrade docker image to `zappi/nginx:1.25.3` on Debian Bookworm
2 parents 542c3b6 + 341d903 commit facd8e7

File tree

3 files changed

+22
-27
lines changed

3 files changed

+22
-27
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.25.3
4+
5+
* Use `zappi/nginx:1.25.3` as the docker base image.
6+
* Upgrade `headers-more-nginx-module` to `v0.37`.
7+
38
## 1.25.2-3
49

510
* Log `X-Proxy-Backend` latency headers.

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @Intellection/sre
1+
* @Intellection/SRE

Dockerfile

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,44 @@
1-
FROM zappi/nginx:1.25.2 as builder
1+
FROM zappi/nginx:1.25.3 as builder
22

33
USER root
44

5-
# Install build dependencies
6-
RUN apk add --no-cache \
7-
alpine-sdk \
8-
bash \
9-
findutils \
10-
gcc \
11-
gd-dev \
12-
geoip-dev \
13-
libc-dev \
14-
libedit-dev \
15-
libxslt-dev \
16-
linux-headers \
17-
make \
18-
mercurial \
19-
openssl-dev \
20-
pcre-dev \
21-
perl-dev \
22-
zlib-dev
5+
RUN apt-get update -y && \
6+
apt-get install --no-install-recommends -y \
7+
build-essential \
8+
ca-certificates \
9+
libpcre3 \
10+
libpcre3-dev \
11+
wget \
12+
zlib1g \
13+
zlib1g-dev
2314

2415
WORKDIR /usr/src/
2516

2617
# Download nginx source
27-
ARG NGINX_VERSION="1.25.2"
18+
ARG NGINX_VERSION="1.25.3"
2819
ARG NGINX_PKG="nginx-${NGINX_VERSION}.tar.gz"
29-
ARG NGINX_SHA="05dd6d9356d66a74e61035f2a42162f8c754c97cf1ba64e7a801ba158d6c0711"
20+
ARG NGINX_SHA="64c5b975ca287939e828303fa857d22f142b251f17808dfe41733512d9cded86"
3021

3122
RUN wget "http://nginx.org/download/${NGINX_PKG}" && \
3223
echo "${NGINX_SHA} *${NGINX_PKG}" | sha256sum -c - && \
3324
tar --no-same-owner -xzf ${NGINX_PKG} --one-top-level=nginx --strip-components=1
3425

3526
# Download headers-more module source
36-
ARG HEADERS_MORE_VERSION="0.34"
27+
ARG HEADERS_MORE_VERSION="0.37"
3728
ARG HEADERS_MORE_PKG="v${HEADERS_MORE_VERSION}.tar.gz"
38-
ARG HEADERS_MORE_SHA="0c0d2ced2ce895b3f45eb2b230cd90508ab2a773299f153de14a43e44c1209b3"
29+
ARG HEADERS_MORE_SHA="cf6e169d6b350c06d0c730b0eaf4973394026ad40094cddd3b3a5b346577019d"
3930

4031
RUN wget "https://github.com/openresty/headers-more-nginx-module/archive/${HEADERS_MORE_PKG}" && \
4132
echo "${HEADERS_MORE_SHA} *${HEADERS_MORE_PKG}" | sha256sum -c - && \
4233
tar --no-same-owner -xzf ${HEADERS_MORE_PKG} --one-top-level=headers-more --strip-components=1
4334

4435
# Compile nginx with headers-more module using original configure arguments
4536
RUN cd nginx && \
46-
CONFIGURATION_ARGUMENTS=$(nginx -V 2>&1 | sed -n -e 's/^.*arguments: //p') && \
47-
sh -c "./configure --with-compat ${CONFIGURATION_ARGUMENTS} --add-dynamic-module=/usr/src/headers-more" && \
37+
./configure --with-compat --add-dynamic-module=/usr/src/headers-more && \
4838
make modules
4939

5040
# Production container starts here
51-
FROM zappi/nginx:1.25.2
41+
FROM zappi/nginx:1.25.3
5242

5343
# Copy compiled module
5444
COPY --from=builder /usr/src/nginx/objs/*_module.so /etc/nginx/modules/

0 commit comments

Comments
 (0)