zaunist commented on a change in pull request #5209:
URL: https://github.com/apache/apisix/pull/5209#discussion_r726810367



##########
File path: utils/install-dependencies.sh
##########
@@ -0,0 +1,127 @@
+#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Install dependencies on centos
+function install_dependencies_on_centos() {
+    # add OpenResty source
+    sudo yum install yum-utils
+    sudo yum-config-manager --add-repo 
https://openresty.org/package/centos/openresty.repo
+
+    # install OpenResty and some compilation tools
+    sudo yum install -y openresty curl git gcc openresty-openssl111-devel 
unzip pcre pcre-devel
+
+    # install LuaRocks
+    curl 
https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh
 -sL | bash -

Review comment:
       If local scripts are used, users need to clone the Apisix repository 
locally. Perhaps a guideline could be added that if the user has already cloned 
APISIX.
   For example: 
   > If you have cloned the APISIX project, execute in the APISIX root 
directory: bash utils/install-dependencies.sh




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to