You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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://
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
):2.10luarocks --version
):The text was updated successfully, but these errors were encountered: