Skip to content

Commit

Permalink
feat: add lua-resty-events module (#323)
Browse files Browse the repository at this point in the history
Signed-off-by: Ling Samuel (WSL) <[email protected]>
  • Loading branch information
lingsamuel authored Nov 6, 2023
1 parent 27e9756 commit ebc0017
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build-apisix-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ if ([ $# -gt 0 ] && [ "$1" == "latest" ]) || [ "$version" == "latest" ]; then
wasm_nginx_module_ver="main"
lua_var_nginx_module_ver="master"
grpc_client_nginx_module_ver="main"
lua_resty_events_ver="main"
debug_args="--with-debug"
OR_PREFIX=${OR_PREFIX:="/usr/local/openresty-debug"}
else
Expand All @@ -25,6 +26,7 @@ else
wasm_nginx_module_ver="0.6.5"
lua_var_nginx_module_ver="v0.5.3"
grpc_client_nginx_module_ver="v0.4.4"
lua_resty_events_ver="0.2.0"
debug_args=${debug_args:-}
OR_PREFIX=${OR_PREFIX:="/usr/local/openresty"}
fi
Expand Down Expand Up @@ -85,6 +87,14 @@ else
grpc-client-nginx-module-${grpc_client_nginx_module_ver}
fi

if [ "$repo" == lua-resty-events ]; then
cp -r "$prev_workdir" ./lua-resty-events-${lua_resty_events_ver}
else
git clone --depth=1 -b $lua_resty_events_ver \
https://github.com/Kong/lua-resty-events.git \
lua-resty-events-${lua_resty_events_ver}
fi

cd ngx_multi_upstream_module-${ngx_multi_upstream_module_ver} || exit 1
./patch.sh ../openresty-${OPENRESTY_VERSION}
cd ..
Expand Down Expand Up @@ -140,6 +150,7 @@ fi
--add-module=../wasm-nginx-module-${wasm_nginx_module_ver} \
--add-module=../lua-var-nginx-module-${lua_var_nginx_module_ver} \
--add-module=../grpc-client-nginx-module-${grpc_client_nginx_module_ver} \
--add-module=../lua-resty-events-${lua_resty_events_ver} \
--with-poll_module \
--with-pcre-jit \
--without-http_rds_json_module \
Expand Down Expand Up @@ -186,6 +197,10 @@ cd grpc-client-nginx-module-${grpc_client_nginx_module_ver} || exit 1
sudo OPENRESTY_PREFIX="$OR_PREFIX" make install
cd ..

cd lua-resty-events-${lua_resty_events_ver} || exit 1
sudo OPENRESTY_PREFIX="$OR_PREFIX" make install
cd ..

# package etcdctl
ETCD_ARCH="amd64"
ETCD_VERSION=${ETCD_VERSION:-'3.5.4'}
Expand Down

0 comments on commit ebc0017

Please sign in to comment.