Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error sudo docker build -f alpine-dev/Dockerfile . #83

Closed
jicvi opened this issue Nov 1, 2020 · 2 comments
Closed

error sudo docker build -f alpine-dev/Dockerfile . #83

jicvi opened this issue Nov 1, 2020 · 2 comments
Assignees

Comments

@jicvi
Copy link

jicvi commented Nov 1, 2020

Error: Error fetching file: Failed downloading https://github.com/apache/apisix/raw/master/rockspec - Failed downloading https://github.com/apache/apisix/raw/master/rockspec/apisix-master-0.rockspec - /root/.cache/luarocks/https___github.com_apache_apisix_raw_master_rockspec/apisix-master-0.rockspec
/usr/local/openresty/luajit/bin/luajit: /usr/local/openresty/luajit/share/lua/5.1/luarocks/cmd.lua:172: bad argument apache/apisix#1 to 'exit' (number expected, got string)
stack traceback:
[C]: in function 'exit'
/usr/local/openresty/luajit/share/lua/5.1/luarocks/cmd.lua:172: in function 'die'
/usr/local/openresty/luajit/share/lua/5.1/luarocks/cmd.lua:627: in function 'run_command'
/usr/local/openresty/luajit/bin/luarocks:38: in main chunk
[C]: at 0x5581e355f320
The command '/bin/sh -c set -x && /bin/sed -i 's,http://dl-cdn.alpinelinux.org,https://mirrors.aliyun.com,g' /etc/apk/repositories && apk add --no-cache --virtual .builddeps automake autoconf libtool pkgconfig cmake git && luarocks install https://github.com/apache/apisix/raw/master/rockspec/apisix-master-0.rockspec --tree=/usr/local/apisix/deps && cp -v /usr/local/apisix/deps/lib/luarocks/rocks-5.1/apisix/master-0/bin/apisix /usr/bin/ && bin='#! /usr/local/openresty/luajit/bin/luajit\npackage.path = "/usr/local/apisix/?.lua;" .. package.path' && sed -i "1s@.*@$bin@" /usr/bin/apisix && mv /usr/local/apisix/deps/share/lua/5.1/apisix /usr/local/apisix && apk del .builddeps build-base make unzip' returned a non-zero code: 1

@moonming moonming transferred this issue from apache/apisix Nov 1, 2020
@moonming
Copy link
Member

moonming commented Nov 1, 2020

can you download https://github.com/apache/apisix/raw/master/rockspec/apisix-master-0.rockspec by wget/curl success in your env?

@jicvi
Copy link
Author

jicvi commented Nov 1, 2020

Thank you!I try to install manually

@jicvi jicvi closed this as completed Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants