xie900610 opened a new issue, #11630:
URL: https://github.com/apache/apisix/issues/11630

   ### Description
   
   lua /usr/local/apisix/apisix/cli/apisix.lua start
   lua: [string "context=... or {}..."]:1037: attempt to index global 'item' (a 
nil value)
   stack traceback:
           [string "context=... or {}..."]:1037: in function 'conf_render'
           /usr/share/lua/5.1/apisix/cli/ops.lua:797: in function 'init'
           /usr/share/lua/5.1/apisix/cli/ops.lua:870: in function '?'
           /usr/share/lua/5.1/apisix/cli/ops.lua:959: in function 'execute'
           /usr/local/apisix/apisix/cli/apisix.lua:34: in main chunk
           [C]: ?
   目前遇到了这个困难,有人帮忙解答下吗?
   下面是我的dockerfile部分内容:
   RUN yum install yum-utils
   RUN yum-config-manager --add-repo 
https://openresty.org/package/centos/openresty.repo
   RUN yum install -y make wget tar openresty curl git gcc lua-devel sudo unzip 
which
   COPY ./Makefile /usr/local/apisix/
   COPY ./luarocks-3.4.0.tar.gz /usr/local/apisix/
   COPY  ./NOTICE  /usr/local/apisix/
   COPY  ./LICENSE  /usr/local/apisix/
   COPY  ./README.md  /usr/local/apisix/
   COPY  ./rockspec  /usr/local/apisix/rockspec/
   COPY  ./conf  /usr/local/apisix/conf/
   COPY  ./bin   /usr/local/apisix/bin/
   COPY  ./apisix  /usr/local/apisix/apisix/
   COPY  ./ci   /usr/local/apisix/ci/
   COPY  ./utils  /usr/local/apisix/utils/
   # 设置 LuaRocks 服务器
   WORKDIR  /usr/local/apisix
   # 设置 LuaRocks 服务器
   ENV LUAROCKS_SERVER=https://luarocks.cn
   RUN sh ./utils/linux-install-luarocks.sh
   RUN git config --global url."https://".insteadOf git://
   # 安装依赖
   RUN make deps
   # 安装 APISIX
   RUN  make install
   # 设置工作目录
   # 启动 APISIX 并监控日志
   ENTRYPOINT ["/usr/bin/apisix", "start"]
   
   ### Environment
   
   - APISIX version (run `apisix version`):2.10
   - Operating system 5.10.134-16.1.al8.x86_64 #1 SMP Thu Dec 7 14:11:24 UTC 
2023 x86_64 x86_64 x86_64 GNU/Linux
   - openresty/1.25.3.2 
   - etcd version: 远程服务
   - APISIX Dashboard version, if relevant:无
   - Plugin runner version, for issues related to plugin runners:无
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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