Skip to content

Commit d523b4a

Browse files
authored
Merge pull request kubernetes#4780 from aledbf/openresty-master
Update nginx image to use openresty master
2 parents a85d5ed + d8ac82d commit d523b4a

File tree

3 files changed

+17
-53
lines changed

3 files changed

+17
-53
lines changed

images/nginx/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# 0.0.0 shouldn't clobber any released builds
16-
TAG ?= 0.92
16+
TAG ?= 0.93
1717
REGISTRY ?= quay.io/kubernetes-ingress-controller
1818
ARCH ?= $(shell go env GOARCH)
1919
DOCKER ?= docker

images/nginx/rootfs/build.sh

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ set -o pipefail
2121

2222
export DEBIAN_FRONTEND=noninteractive
2323

24-
export OPENRESTY_VERSION=1.15.8.2
24+
export OPENRESTY_VERSION=7508c1852265bd04fdb2dfd64989d4c490440f1a
2525
export NGINX_DIGEST_AUTH=cd8641886c873cf543255aeda20d23e4cd603d05
2626
export NGINX_SUBSTITUTIONS=bc58cb11844bc42735bbaef7085ea86ace46d05b
2727
export NGINX_OPENTRACING_VERSION=0.9.0
2828
export OPENTRACING_CPP_VERSION=1.5.1
2929
export ZIPKIN_CPP_VERSION=0.5.2
30-
export JAEGER_VERSION=cdfaf5bb25ff5f8ec179fd548e6c7c2ade9a6a09
31-
export MSGPACK_VERSION=3.1.1
32-
export DATADOG_CPP_VERSION=1.0.1
30+
export JAEGER_VERSION=0.5.0
31+
export MSGPACK_VERSION=3.2.0
32+
export DATADOG_CPP_VERSION=1.1.1
3333
export MODSECURITY_VERSION=d7101e13685efd7e7c9f808871b202656a969f4b
3434
export MODSECURITY_LIB_VERSION=3.0.3
3535
export OWASP_MODSECURITY_CRS_VERSION=3.1.0
@@ -93,6 +93,7 @@ clean-install \
9393
unzip \
9494
nano \
9595
ssdeep \
96+
dos2unix mercurial \
9697
|| exit 1
9798

9899
# https://www.mail-archive.com/[email protected]/msg1667178.html
@@ -124,8 +125,8 @@ mkdir --verbose -p "$BUILD_PATH"
124125
cd "$BUILD_PATH"
125126

126127
# download, verify and extract the source files
127-
get_src bf92af41d3ad22880047a8b283fc213d59c7c1b83f8dae82e50d14b64d73ac38 \
128-
"https://github.com/openresty/openresty/releases/download/v${OPENRESTY_VERSION}/openresty-${OPENRESTY_VERSION}.tar.gz"
128+
get_src 221cfecadd0ed2902738757e7d8fb0bc41882840f07ea87112740b44f173722f \
129+
"https://github.com/openresty/openresty/archive/${OPENRESTY_VERSION}.tar.gz"
129130

130131
get_src fe683831f832aae4737de1e1026a4454017c2d5f98cb88b08c5411dc380062f8 \
131132
"https://github.com/atomx/nginx-http-auth-digest/archive/$NGINX_DIGEST_AUTH.tar.gz"
@@ -145,13 +146,13 @@ get_src 30affaf0f3a84193f7127cc0135da91773ce45d902414082273dae78914f73df \
145146
get_src 5c8d25e68fb852f61489b669aebb7bd8ca8c88ebb5e5f969212fcceff3ee2d0b \
146147
"https://github.com/SpiderLabs/ModSecurity-nginx/archive/$MODSECURITY_VERSION.tar.gz"
147148

148-
get_src 3183450d897baa9309347c8617edc0c97c5b29ffc32bd2d12f498edf2dcbeffa \
149-
"https://github.com/jaegertracing/jaeger-client-cpp/archive/$JAEGER_VERSION.tar.gz"
149+
get_src c72609a1df7e61771ab9fac4b6d31a187d023cfe765ed488adec714c3cee7cde \
150+
"https://github.com/jaegertracing/jaeger-client-cpp/archive/v$JAEGER_VERSION.tar.gz"
150151

151-
get_src bda49f996a73d2c6080ff0523e7b535917cd28c8a79c3a5da54fc29332d61d1e \
152+
get_src ff865a36bad5c72b8e7ebc4b7cf5f27a820fce4faff9c571c1791e3728355a39 \
152153
"https://github.com/msgpack/msgpack-c/archive/cpp-$MSGPACK_VERSION.tar.gz"
153154

154-
get_src f7fb2ad541f812c36fd78f9a38e4582d87dadb563ab80bee3f7c3a2132a425c5 \
155+
get_src 052fd37cd698e24ab73ee18fc3fa55acd1d43153c12a0e65b0fba0447de1117e \
155156
"https://github.com/DataDog/dd-opentracing-cpp/archive/v$DATADOG_CPP_VERSION.tar.gz"
156157

157158
get_src 6faab57557bd9cc9fc38208f6bc304c1c13cf048640779f98812cf1f9567e202 \
@@ -441,6 +442,10 @@ WITH_MODULES="--add-module=$BUILD_PATH/nginx-http-auth-digest-$NGINX_DIGEST_AUTH
441442
--add-module=$BUILD_PATH/nginx_ajp_module-${NGINX_AJP_VERSION} \
442443
--add-module=$BUILD_PATH/ngx_brotli"
443444

445+
make
446+
447+
cd openresty-1.17.4.1rc0
448+
444449
./configure \
445450
${WITH_FLAGS} \
446451
--without-mail_pop3_module \
@@ -473,7 +478,7 @@ cd /usr/local/openresty
473478

474479
# build and install lua-resty-waf with dependencies
475480
export LUA_LIB_DIR=/usr/local/openresty/lualib
476-
export LUA_INCLUDE_DIR=/tmp/build/openresty-$OPENRESTY_VERSION/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1
481+
export LUA_INCLUDE_DIR=/tmp/build/openresty-$OPENRESTY_VERSION/openresty-1.17.4.1rc0/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1
477482

478483
ln -s $LUA_INCLUDE_DIR /usr/include/lua5.1
479484

@@ -489,10 +494,6 @@ cd "$BUILD_PATH/lua-resty-balancer-$LUA_RESTY_BALANCER_VERSION"
489494
make
490495
make install
491496

492-
if [[ ${ARCH} != "armv7l" ]]; then
493-
/install_lua_resty_waf.sh
494-
fi
495-
496497
# build Lua bridge tracer
497498
cd "$BUILD_PATH/lua-bridge-tracer-$LUA_BRIDGE_TRACER_VERSION"
498499
mkdir .build

images/nginx/rootfs/install_lua_resty_waf.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)