You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2021/11/05 00:48:11 UTC
[apisix-docker] branch master updated: feat: install apisix with
apisix rpm repo (#244)
This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-docker.git
The following commit(s) were added to refs/heads/master by this push:
new 9bfd926 feat: install apisix with apisix rpm repo (#244)
9bfd926 is described below
commit 9bfd9269503e475acadf90d7de18610b3ae297a6
Author: Xunzhuo <mi...@gmail.com>
AuthorDate: Fri Nov 5 08:48:07 2021 +0800
feat: install apisix with apisix rpm repo (#244)
---
centos/Dockerfile | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/centos/Dockerfile b/centos/Dockerfile
index a282856..791c594 100644
--- a/centos/Dockerfile
+++ b/centos/Dockerfile
@@ -3,10 +3,8 @@ FROM centos:7
ARG APISIX_VERSION=2.10.1
LABEL apisix_version="${APISIX_VERSION}"
-RUN yum -y install yum-utils\
- && yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo \
- && yum install -y pcre openresty which tzdata openldap-devel \
- && yum install -y https://github.com/apache/apisix/releases/download/$APISIX_VERSION/apisix-$APISIX_VERSION-0.el7.x86_64.rpm \
+RUN yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm \
+ && yum install -y apisix-$APISIX_VERSION \
&& yum clean all \
&& sed -i 's/PASS_MAX_DAYS\t99999/PASS_MAX_DAYS\t60/g' /etc/login.defs