Skip to content

Commit 42b9a87

Browse files
committed
mainline: get rid of duplication in variables versions
1 parent 0501f0b commit 42b9a87

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

mainline/alpine-perl/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM alpine:3.9
33
LABEL maintainer="NGINX Docker Maintainers <[email protected]>"
44

55
ENV NGINX_VERSION 1.15.12
6-
ENV NJS_VERSION 1.15.12.0.3.1
6+
ENV NJS_VERSION 0.3.1
77
ENV PKG_RELEASE 1
88

99
RUN set -x \
@@ -14,7 +14,7 @@ RUN set -x \
1414
nginx-module-geoip=${NGINX_VERSION}-r${PKG_RELEASE} \
1515
nginx-module-image-filter=${NGINX_VERSION}-r${PKG_RELEASE} \
1616
nginx-module-perl=${NGINX_VERSION}-r${PKG_RELEASE} \
17-
nginx-module-njs=${NJS_VERSION}-r${PKG_RELEASE} \
17+
nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-r${PKG_RELEASE} \
1818
" \
1919
&& case "$apkArch" in \
2020
x86_64) \

mainline/alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM alpine:3.9
33
LABEL maintainer="NGINX Docker Maintainers <[email protected]>"
44

55
ENV NGINX_VERSION 1.15.12
6-
ENV NJS_VERSION 1.15.12.0.3.1
6+
ENV NJS_VERSION 0.3.1
77
ENV PKG_RELEASE 1
88

99
RUN set -x \
@@ -13,7 +13,7 @@ RUN set -x \
1313
nginx-module-xslt=${NGINX_VERSION}-r${PKG_RELEASE} \
1414
nginx-module-geoip=${NGINX_VERSION}-r${PKG_RELEASE} \
1515
nginx-module-image-filter=${NGINX_VERSION}-r${PKG_RELEASE} \
16-
nginx-module-njs=${NJS_VERSION}-r${PKG_RELEASE} \
16+
nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-r${PKG_RELEASE} \
1717
" \
1818
&& case "$apkArch" in \
1919
x86_64) \

mainline/stretch-perl/Dockerfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ FROM debian:stretch-slim
22

33
LABEL maintainer="NGINX Docker Maintainers <[email protected]>"
44

5-
ENV NGINX_VERSION 1.15.12-1~stretch
6-
ENV NJS_VERSION 1.15.12.0.3.1-1~stretch
5+
ENV NGINX_VERSION 1.15.12
6+
ENV NJS_VERSION 0.3.1
7+
ENV PKG_RELEASE 1~stretch
78

89
RUN set -x \
910
&& apt-get update \
@@ -23,13 +24,13 @@ RUN set -x \
2324
test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; \
2425
apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/* \
2526
&& dpkgArch="$(dpkg --print-architecture)" \
26-
&& nginxPackages=" \
27-
nginx=${NGINX_VERSION} \
28-
nginx-module-xslt=${NGINX_VERSION} \
29-
nginx-module-geoip=${NGINX_VERSION} \
30-
nginx-module-image-filter=${NGINX_VERSION} \
31-
nginx-module-perl=${NGINX_VERSION} \
32-
nginx-module-njs=${NJS_VERSION} \
27+
&& nginxPackages=" \
28+
nginx=${NGINX_VERSION}-${PKG_RELEASE} \
29+
nginx-module-xslt=${NGINX_VERSION}-${PKG_RELEASE} \
30+
nginx-module-geoip=${NGINX_VERSION}-${PKG_RELEASE} \
31+
nginx-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE} \
32+
nginx-module-perl=${NGINX_VERSION}-${PKG_RELEASE} \
33+
nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-${PKG_RELEASE} \
3334
" \
3435
&& case "$dpkgArch" in \
3536
amd64|i386) \

mainline/stretch/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ FROM debian:stretch-slim
22

33
LABEL maintainer="NGINX Docker Maintainers <[email protected]>"
44

5-
ENV NGINX_VERSION 1.15.12-1~stretch
6-
ENV NJS_VERSION 1.15.12.0.3.1-1~stretch
5+
ENV NGINX_VERSION 1.15.12
6+
ENV NJS_VERSION 0.3.1
7+
ENV PKG_RELEASE 1~stretch
78

89
RUN set -x \
910
&& apt-get update \
@@ -24,11 +25,11 @@ RUN set -x \
2425
apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/* \
2526
&& dpkgArch="$(dpkg --print-architecture)" \
2627
&& nginxPackages=" \
27-
nginx=${NGINX_VERSION} \
28-
nginx-module-xslt=${NGINX_VERSION} \
29-
nginx-module-geoip=${NGINX_VERSION} \
30-
nginx-module-image-filter=${NGINX_VERSION} \
31-
nginx-module-njs=${NJS_VERSION} \
28+
nginx=${NGINX_VERSION}-${PKG_RELEASE} \
29+
nginx-module-xslt=${NGINX_VERSION}-${PKG_RELEASE} \
30+
nginx-module-geoip=${NGINX_VERSION}-${PKG_RELEASE} \
31+
nginx-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE} \
32+
nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-${PKG_RELEASE} \
3233
" \
3334
&& case "$dpkgArch" in \
3435
amd64|i386) \

0 commit comments

Comments
 (0)