You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/10 03:19:04 UTC

[GitHub] [apisix] backnero commented on issue #2678: bug: After upgrading to version 1.5, the attempt to call global'type' (a string value) error of ETCD appears

backnero commented on issue #2678:
URL: https://github.com/apache/apisix/issues/2678#issuecomment-724423357


   ```
   FROM centos:7
   
   # 设置时区为上海
   ENV TZ=Asia/Shanghai
   RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
   
   
   ARG APISIX_VERSION=1.5
   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 openresty \
   	&& yum install -y https://github.com/apache/apisix/releases/download/$APISIX_VERSION/apisix-$APISIX_VERSION-0.el7.noarch.rpm \
   	&& yum clean all \
   	&& sed -i 's/PASS_MAX_DAYS\t99999/PASS_MAX_DAYS\t60/g' /etc/login.defs
   
   
   WORKDIR /usr/local/apisix
   
   
   EXPOSE 9080 9443
   
   CMD ["sh", "-c", "/usr/bin/apisix init && /usr/bin/apisix init_etcd && /usr/local/openresty/bin/openresty -p /usr/local/apisix -g 'daemon off;'"]
   ```
   I use yum to install apisix 1.5
   


----------------------------------------------------------------
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:
users@infra.apache.org