Skip to content

Commit

Permalink
feat: upgrade to openresty-1.25.3.1 (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
zll600 authored Feb 21, 2024
1 parent 6f1a404 commit 0b0d528
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
13 changes: 7 additions & 6 deletions build-apisix-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -x

version=${version:-0.0.0}

OPENRESTY_VERSION=${OPENRESTY_VERSION:-1.21.4.2}
OPENRESTY_VERSION=${OPENRESTY_VERSION:-1.25.3.1}
if [ "$OPENRESTY_VERSION" == "source" ] || [ "$OPENRESTY_VERSION" == "default" ]; then
OPENRESTY_VERSION="1.21.4.2"
OPENRESTY_VERSION="1.25.3.1"
fi

if ([ $# -gt 0 ] && [ "$1" == "latest" ]) || [ "$version" == "latest" ]; then
Expand All @@ -19,10 +19,10 @@ if ([ $# -gt 0 ] && [ "$1" == "latest" ]) || [ "$version" == "latest" ]; then
debug_args="--with-debug"
OR_PREFIX=${OR_PREFIX:="/usr/local/openresty-debug"}
else
ngx_multi_upstream_module_ver="1.1.1"
ngx_multi_upstream_module_ver="1.2.0"
mod_dubbo_ver="1.0.2"
apisix_nginx_module_ver="1.15.0"
wasm_nginx_module_ver="0.6.5"
apisix_nginx_module_ver="1.16.0"
wasm_nginx_module_ver="0.7.0"
lua_var_nginx_module_ver="v0.5.3"
lua_resty_events_ver="0.2.0"
debug_args=${debug_args:-}
Expand Down Expand Up @@ -113,7 +113,7 @@ tar -xzf LuaJIT-$lj_ver.tar.gz
mv luajit2-* bundle/LuaJIT-2.1-20220411
fi

or_limit_ver=0.08
or_limit_ver=0.09
if [ ! -d "bundle/lua-resty-limit-traffic-$or_limit_ver" ]; then
echo "ERROR: the official repository of lua-resty-limit-traffic has been updated, please sync to API7's repository." >&2
exit 1
Expand Down Expand Up @@ -146,6 +146,7 @@ fi
--with-stream_ssl_module \
--with-stream_ssl_preread_module \
--with-http_v2_module \
--with-http_v3_module \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module \
Expand Down
11 changes: 6 additions & 5 deletions build-apisix-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ ld_opt=${ld_opt:-"-L$zlib_prefix/lib -L$pcre_prefix/lib -L$OPENSSL_PREFIX/lib -W

# dependencies for building openresty
OPENSSL_VERSION=${OPENSSL_VERSION:-"3.2.0"}
OPENRESTY_VERSION="1.21.4.2"
ngx_multi_upstream_module_ver="1.1.1"
OPENRESTY_VERSION="1.25.3.1"
ngx_multi_upstream_module_ver="1.2.0"
mod_dubbo_ver="1.0.2"
apisix_nginx_module_ver="1.15.0"
wasm_nginx_module_ver="0.6.5"
apisix_nginx_module_ver="1.16.0"
wasm_nginx_module_ver="0.7.0"
lua_var_nginx_module_ver="v0.5.3"
lua_resty_events_ver="0.2.0"

Expand Down Expand Up @@ -145,7 +145,7 @@ no_pool_patch=${no_pool_patch:-}

cd openresty-${OPENRESTY_VERSION} || exit 1

or_limit_ver=0.08
or_limit_ver=0.09
if [ ! -d "bundle/lua-resty-limit-traffic-$or_limit_ver" ]; then
echo "ERROR: the official repository of lua-resty-limit-traffic has been updated, please sync to API7's repository." >&2
exit 1
Expand Down Expand Up @@ -179,6 +179,7 @@ fi
--with-stream_ssl_module \
--with-stream_ssl_preread_module \
--with-http_v2_module \
--with-http_v3_module \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module \
Expand Down

0 comments on commit 0b0d528

Please sign in to comment.