Skip to content

Commit 55bc7cc

Browse files
authored
feat: add lua-var-nginx-module (#44)
1 parent dad276e commit 55bc7cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build-apisix-openresty.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ if [ $# -gt 0 ] && [ "$1" == "latest" ]; then
66
ngx_multi_upstream_module_ver=""
77
mod_dubbo_ver=""
88
apisix_nginx_module_ver=""
9+
lua_var_nginx_module_ver=""
910
debug_args="--with-debug"
1011
OR_PREFIX=${OR_PREFIX:="/usr/local/openresty-debug"}
1112
else
1213
ngx_multi_upstream_module_ver="-b 1.0.0"
1314
mod_dubbo_ver="-b 1.0.0"
1415
apisix_nginx_module_ver="-b 1.0.0"
16+
lua_var_nginx_module_ver="-b v0.5.2"
1517
debug_args=
1618
OR_PREFIX=${OR_PREFIX:="/usr/local/openresty"}
1719
fi
@@ -46,6 +48,13 @@ else
4648
https://github.com/api7/apisix-nginx-module.git
4749
fi
4850

51+
if [ "$repo" == lua-var-nginx-module ]; then
52+
cp -r "$prev_workdir" .
53+
else
54+
git clone --depth=1 $lua_var_nginx_module_ver \
55+
https://github.com/api7/lua-var-nginx-module
56+
fi
57+
4958
cd ngx_multi_upstream_module || exit 1
5059
./patch.sh ../openresty-${or_ver}
5160
cd ..
@@ -65,6 +74,7 @@ cd openresty-${or_ver} || exit 1
6574
--add-module=../mod_dubbo \
6675
--add-module=../ngx_multi_upstream_module \
6776
--add-module=../apisix-nginx-module \
77+
--add-module=../lua-var-nginx-module \
6878
$debug_args \
6979
--with-poll_module \
7080
--with-pcre-jit \

0 commit comments

Comments
 (0)