moorefu commented on issue #2324:
URL: https://github.com/apache/apisix/issues/2324#issuecomment-699278724
We do this like this.
Prepare a mirror environment of the off-line target environment, but the
mirror environment is on-line.
in the on-line environment execute the shell like this
```bash
#!/bin/sh
APISIX_VERSION=1.5
apisix_version="${APISIX_VERSION}"
yum install -y yum-plugin-downloadonly && \
yum install -y yum-utils && \
yum-config-manager --add-repo
https://openresty.org/package/centos/openresty.repo && \
yum install -y --downloadonly --downloaddir=./rpms/ etcd openresty curl git
gcc libaio libpng-devel && \
yum install -y --downloadonly --downloaddir=./rpms/
https://github.com/apache/apisix/releases/download/$APISIX_VERSION/apisix-$APISIX_VERSION-0.el7.noarch.rpm
```
and the the copy the rpms dir to the target environment, execute some shell
like this
```bash
#!/bin/sh
ls -l rpms|grep rpm|awk '{print "rpms/"$9}'|tr '\n' ' ' | yum localinstall
-y --nogpgcheck
```
enjoy!
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]