Skip to content

Commit 50da3d5

Browse files
authored
fix: remove grpc-client-nginx-module (#377)
1 parent 7ac2887 commit 50da3d5

File tree

2 files changed

+2
-37
lines changed

2 files changed

+2
-37
lines changed

build-apisix-base.sh

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ if ([ $# -gt 0 ] && [ "$1" == "latest" ]) || [ "$version" == "latest" ]; then
1515
apisix_nginx_module_ver="main"
1616
wasm_nginx_module_ver="main"
1717
lua_var_nginx_module_ver="master"
18-
grpc_client_nginx_module_ver="main"
1918
lua_resty_events_ver="main"
2019
debug_args="--with-debug"
2120
OR_PREFIX=${OR_PREFIX:="/usr/local/openresty-debug"}
@@ -25,7 +24,6 @@ else
2524
apisix_nginx_module_ver="1.16.0"
2625
wasm_nginx_module_ver="0.7.0"
2726
lua_var_nginx_module_ver="v0.5.3"
28-
grpc_client_nginx_module_ver="v0.5.0"
2927
lua_resty_events_ver="0.2.0"
3028
debug_args=${debug_args:-}
3129
OR_PREFIX=${OR_PREFIX:="/usr/local/openresty"}
@@ -79,14 +77,6 @@ else
7977
lua-var-nginx-module-${lua_var_nginx_module_ver}
8078
fi
8179

82-
if [ "$repo" == grpc-client-nginx-module ]; then
83-
cp -r "$prev_workdir" ./grpc-client-nginx-module-${grpc_client_nginx_module_ver}
84-
else
85-
git clone --depth=1 -b $grpc_client_nginx_module_ver \
86-
https://github.com/api7/grpc-client-nginx-module \
87-
grpc-client-nginx-module-${grpc_client_nginx_module_ver}
88-
fi
89-
9080
if [ "$repo" == lua-resty-events ]; then
9181
cp -r "$prev_workdir" ./lua-resty-events-${lua_resty_events_ver}
9282
else
@@ -111,9 +101,6 @@ cc_opt=${cc_opt:-}
111101
ld_opt=${ld_opt:-}
112102
luajit_xcflags=${luajit_xcflags:="-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT"}
113103
no_pool_patch=${no_pool_patch:-}
114-
# TODO: remove old NGX_HTTP_GRPC_CLI_ENGINE_PATH once we have released a new
115-
# version of grpc-client-nginx-module
116-
grpc_engine_path="-DNGX_GRPC_CLI_ENGINE_PATH=$OR_PREFIX/libgrpc_engine.so -DNGX_HTTP_GRPC_CLI_ENGINE_PATH=$OR_PREFIX/libgrpc_engine.so"
117104

118105
cd openresty-${OPENRESTY_VERSION} || exit 1
119106

@@ -139,7 +126,7 @@ else
139126
fi
140127

141128
./configure --prefix="$OR_PREFIX" \
142-
--with-cc-opt="-DAPISIX_BASE_VER=$version $grpc_engine_path $cc_opt" \
129+
--with-cc-opt="-DAPISIX_BASE_VER=$version $cc_opt" \
143130
--with-ld-opt="-Wl,-rpath,$OR_PREFIX/wasmtime-c-api/lib $ld_opt" \
144131
$debug_args \
145132
--add-module=../mod_dubbo-${mod_dubbo_ver} \
@@ -149,7 +136,6 @@ fi
149136
--add-module=../apisix-nginx-module-${apisix_nginx_module_ver}/src/meta \
150137
--add-module=../wasm-nginx-module-${wasm_nginx_module_ver} \
151138
--add-module=../lua-var-nginx-module-${lua_var_nginx_module_ver} \
152-
--add-module=../grpc-client-nginx-module-${grpc_client_nginx_module_ver} \
153139
--add-module=../lua-resty-events-${lua_resty_events_ver} \
154140
--with-poll_module \
155141
--with-pcre-jit \
@@ -194,10 +180,6 @@ cd wasm-nginx-module-${wasm_nginx_module_ver} || exit 1
194180
sudo OPENRESTY_PREFIX="$OR_PREFIX" make install
195181
cd ..
196182

197-
cd grpc-client-nginx-module-${grpc_client_nginx_module_ver} || exit 1
198-
sudo OPENRESTY_PREFIX="$OR_PREFIX" make install
199-
cd ..
200-
201183
cd lua-resty-events-${lua_resty_events_ver} || exit 1
202184
sudo OPENRESTY_PREFIX="$OR_PREFIX" make install
203185
cd ..

build-apisix-runtime.sh

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ mod_dubbo_ver="1.0.2"
2727
apisix_nginx_module_ver="1.16.0"
2828
wasm_nginx_module_ver="0.7.0"
2929
lua_var_nginx_module_ver="v0.5.3"
30-
grpc_client_nginx_module_ver="v0.5.0"
3130
lua_resty_events_ver="0.2.0"
3231

3332

@@ -128,14 +127,6 @@ else
128127
lua-var-nginx-module-${lua_var_nginx_module_ver}
129128
fi
130129

131-
if [ "$repo" == grpc-client-nginx-module ]; then
132-
cp -r "$prev_workdir" ./grpc-client-nginx-module-${grpc_client_nginx_module_ver}
133-
else
134-
git clone --depth=1 -b $grpc_client_nginx_module_ver \
135-
https://github.com/api7/grpc-client-nginx-module \
136-
grpc-client-nginx-module-${grpc_client_nginx_module_ver}
137-
fi
138-
139130
cd ngx_multi_upstream_module-${ngx_multi_upstream_module_ver} || exit 1
140131
./patch.sh ../openresty-${OPENRESTY_VERSION}
141132
cd ..
@@ -151,9 +142,6 @@ cd ..
151142

152143
luajit_xcflags=${luajit_xcflags:="-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT"}
153144
no_pool_patch=${no_pool_patch:-}
154-
# TODO: remove old NGX_HTTP_GRPC_CLI_ENGINE_PATH once we have released a new
155-
# version of grpc-client-nginx-module
156-
grpc_engine_path="-DNGX_GRPC_CLI_ENGINE_PATH=$OR_PREFIX/libgrpc_engine.so -DNGX_HTTP_GRPC_CLI_ENGINE_PATH=$OR_PREFIX/libgrpc_engine.so"
157145

158146
cd openresty-${OPENRESTY_VERSION} || exit 1
159147

@@ -171,7 +159,7 @@ fi
171159

172160

173161
./configure --prefix="$OR_PREFIX" \
174-
--with-cc-opt="-DAPISIX_RUNTIME_VER=$runtime_version $grpc_engine_path $cc_opt" \
162+
--with-cc-opt="-DAPISIX_RUNTIME_VER=$runtime_version $cc_opt" \
175163
--with-ld-opt="-Wl,-rpath,$OR_PREFIX/wasmtime-c-api/lib $ld_opt" \
176164
$debug_args \
177165
--add-module=../mod_dubbo-${mod_dubbo_ver} \
@@ -181,7 +169,6 @@ fi
181169
--add-module=../apisix-nginx-module-${apisix_nginx_module_ver}/src/meta \
182170
--add-module=../wasm-nginx-module-${wasm_nginx_module_ver} \
183171
--add-module=../lua-var-nginx-module-${lua_var_nginx_module_ver} \
184-
--add-module=../grpc-client-nginx-module-${grpc_client_nginx_module_ver} \
185172
--add-module=../lua-resty-events-${lua_resty_events_ver} \
186173
--with-poll_module \
187174
--with-pcre-jit \
@@ -233,10 +220,6 @@ cd wasm-nginx-module-${wasm_nginx_module_ver} || exit 1
233220
sudo OPENRESTY_PREFIX="$OR_PREFIX" make install
234221
cd ..
235222

236-
cd grpc-client-nginx-module-${grpc_client_nginx_module_ver} || exit 1
237-
sudo OPENRESTY_PREFIX="$OR_PREFIX" make install
238-
cd ..
239-
240223
# package etcdctl
241224
ETCD_ARCH="amd64"
242225
ETCD_VERSION=${ETCD_VERSION:-'3.5.4'}

0 commit comments

Comments
 (0)