Skip to content

Commit 4ab6e49

Browse files
authored
feat: add amesh to apisix-base (#259)
1 parent 0055bc9 commit 4ab6e49

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

build-apisix-base.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if ([ $# -gt 0 ] && [ "$1" == "latest" ]) || [ "$version" == "latest" ]; then
1111
wasm_nginx_module_ver="main"
1212
lua_var_nginx_module_ver="master"
1313
grpc_client_nginx_module_ver="main"
14+
amesh_ver="main"
1415
debug_args="--with-debug"
1516
OR_PREFIX=${OR_PREFIX:="/usr/local/openresty-debug"}
1617
else
@@ -20,6 +21,7 @@ else
2021
wasm_nginx_module_ver="0.6.4"
2122
lua_var_nginx_module_ver="v0.5.3"
2223
grpc_client_nginx_module_ver="v0.3.1"
24+
amesh_ver="main"
2325
debug_args=${debug_args:-}
2426
OR_PREFIX=${OR_PREFIX:="/usr/local/openresty"}
2527
fi
@@ -81,6 +83,14 @@ else
8183
grpc-client-nginx-module-${grpc_client_nginx_module_ver}
8284
fi
8385

86+
if [ "$repo" == amesh ]; then
87+
cp -r "$prev_workdir" ./amesh-${amesh_ver}
88+
else
89+
git clone --depth=1 -b $amesh_ver \
90+
https://github.com/api7/amesh \
91+
amesh-${amesh_ver}
92+
fi
93+
8494
cd ngx_multi_upstream_module-${ngx_multi_upstream_module_ver} || exit 1
8595
./patch.sh ../openresty-${or_ver}
8696
cd ..
@@ -159,3 +169,7 @@ cd ..
159169
cd grpc-client-nginx-module-${grpc_client_nginx_module_ver} || exit 1
160170
sudo OPENRESTY_PREFIX="$OR_PREFIX" make install
161171
cd ..
172+
173+
cd amesh-${amesh_ver} || exit 1
174+
sudo OPENRESTY_PREFIX="$OR_PREFIX" sh -c 'PATH="${PATH}:/usr/local/go/bin" make install'
175+
cd ..

0 commit comments

Comments
 (0)