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/10/28 09:24:16 UTC
[GitHub] [apisix-dashboard] Caelebs opened a new issue #615: v2.0-rc2 Build docker image error.
Caelebs opened a new issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [ ] Question or discussion
- [x] Bug
- [ ] Requirements
- [ ] Feature or performance improvement
- [ ] Other
___
### Bug
- Which version of Apache APISIX Dashboard, OS, and Browser?
Failed to build docker image based on the current `v2.0-rc2` version. The error message is as follows
```
Step 13/17 : RUN cd /go/manager-api/build-tools && lua schema-sync.lua > /go/manager-api/schema.json && cd /go/manager-api/ && rm -rf /go/manager-api/build-tools/
---> Running in 8e282779783e
lua: ./apisix/plugins/api-breaker.lua:25: attempt to index field 'shared' (a nil value)
stack traceback:
./apisix/plugins/api-breaker.lua:25: in main chunk
[C]: in function 'require'
schema-sync.lua:128: in main chunk
[C]: ?
The command '/bin/sh -c cd /go/manager-api/build-tools && lua schema-sync.lua > /go/manager-api/schema.json && cd /go/manager-api/ && rm -rf /go/manager-api/build-tools/' returned a non-zero code: 1
```
Commands used to build the image `docker build -t apisix-manager-api:v2.0-rc2 .`
Dashboard-manager-api version `v2.0-rc2`
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] Caelebs commented on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
Caelebs commented on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-717815408
I tried to modify the Dockerfile and change the apisix code download address to 2.0release version, but new problems appeared in the build process. The content of my modification is as follows
```
RUN wget **https://github.com/apache/apisix/archive/2.0.zip** \
&& apt-get update && apt-get install zip -y \
&& unzip **2.0.zip** \
&& rm -rf /go/manager-api/build-tools/apisix/ \
&& mkdir -p /go/manager-api/build-tools/apisix \
&& mv **./apisix-2.0/apisix/*** /go/manager-api/build-tools/apisix/
```
and the error message is `no such file or directory`
```
Step 12/17 : COPY --from=build-env /usr/share/zoneinfo/Hongkong /etc/localtime
---> Using cache
---> 874bd2476b2f
Step 13/17 : RUN cd /go/manager-api/build-tools && lua schema-sync.lua > /go/manager-api/schema.json && cd /go/manager-api/ && rm -rf /go/manager-api/build-tools/
---> Running in 5b50cda236c4
Removing intermediate container 5b50cda236c4
---> 6c9e7905c54d
Step 14/17 : ADD ./dist /go/manager-api
ADD failed: stat /var/lib/docker/tmp/docker-builder690428283/dist: no such file or directory
```
@juzhiyuan
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-718343149
After discussions, we are going to fix this in 2.0 RC3, it will take no longer than 3 days.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan edited a comment on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
juzhiyuan edited a comment on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-719133226
Deploy with Docker Compose is removed, and we are developing the new Dockerfile, so I will close this issue. The new Dockerfile will be added to RC3.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] Caelebs edited a comment on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
Caelebs edited a comment on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-717815408
I tried to modify the Dockerfile and change the apisix code download address to 2.0 release version, but new problems appeared in the build process. The content of my modification is as follows
```
RUN wget **https://github.com/apache/apisix/archive/2.0.zip** \
&& apt-get update && apt-get install zip -y \
&& unzip **2.0.zip** \
&& rm -rf /go/manager-api/build-tools/apisix/ \
&& mkdir -p /go/manager-api/build-tools/apisix \
&& mv **./apisix-2.0/apisix/*** /go/manager-api/build-tools/apisix/
```
and the error message is `no such file or directory`
```
Step 12/17 : COPY --from=build-env /usr/share/zoneinfo/Hongkong /etc/localtime
---> Using cache
---> 874bd2476b2f
Step 13/17 : RUN cd /go/manager-api/build-tools && lua schema-sync.lua > /go/manager-api/schema.json && cd /go/manager-api/ && rm -rf /go/manager-api/build-tools/
---> Running in 5b50cda236c4
Removing intermediate container 5b50cda236c4
---> 6c9e7905c54d
Step 14/17 : ADD ./dist /go/manager-api
ADD failed: stat /var/lib/docker/tmp/docker-builder690428283/dist: no such file or directory
```
@juzhiyuan
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-719133226
Deploy with Docker Compose is removed, and we are developing the new Dockerfile, so I will close this issue. The new Dockerfile will be added in RC3.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] Caelebs edited a comment on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
Caelebs edited a comment on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-717815408
I tried to modify the Dockerfile and change the apisix code download address to 2.0 release version, but new problems appeared in the build process. The content of my modification is as follows
```
RUN wget https://github.com/apache/apisix/archive/2.0.zip \
&& apt-get update && apt-get install zip -y \
&& unzip 2.0.zip \
&& rm -rf /go/manager-api/build-tools/apisix/ \
&& mkdir -p /go/manager-api/build-tools/apisix \
&& mv ./apisix-2.0/apisix/* /go/manager-api/build-tools/apisix/
```
and the error message is `no such file or directory`
```
Step 12/17 : COPY --from=build-env /usr/share/zoneinfo/Hongkong /etc/localtime
---> Using cache
---> 874bd2476b2f
Step 13/17 : RUN cd /go/manager-api/build-tools && lua schema-sync.lua > /go/manager-api/schema.json && cd /go/manager-api/ && rm -rf /go/manager-api/build-tools/
---> Running in 5b50cda236c4
Removing intermediate container 5b50cda236c4
---> 6c9e7905c54d
Step 14/17 : ADD ./dist /go/manager-api
ADD failed: stat /var/lib/docker/tmp/docker-builder690428283/dist: no such file or directory
```
@juzhiyuan
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-725314479
Please follow this guide: https://github.com/apache/apisix-dashboard/blob/feat-docs/docs/deploy.zh-CN.md
```sh
$ git clone -b v2.0 https://github.com/apache/apisix-dashboard.git
```
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan closed issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-725314119
emmm no, we are still under the v2.0 branch.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] Caelebs commented on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
Caelebs commented on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-718326560
Before the 2.1 version is released, how should I modify the source code to build the manager-api docker image file?
@juzhiyuan
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] backnero commented on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
backnero commented on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-725243608
```
[91mlua: ./apisix/plugins/api-breaker.lua:24: attempt to index field 'shared' (a nil value)
stack traceback:
./apisix/plugins/api-breaker.lua:24: in main chunk
[C]: in function 'require'
schema-sync.lua:128: in main chunk
[C]: ?
[0mThe command '/bin/sh -c cd /go/manager-api/build-tools && lua schema-sync.lua > /go/manager-api/schema.json && cd /go/manager-api/ && rm -rf /go/manager-api/build-tools/' returned a non-zero code: 1
exit status 1
Run docker build failed.
BUILD FAILED exit status 1
```
clone from master branch
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-717819615
It seems that there still have something wrong when deploying the dashboard with Docker, these issues should be fixed before 2.1 release.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] backnero commented on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
backnero commented on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-725234706
When will the same problem be solved?
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #615: v2.0-rc2 Build docker image error.
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #615:
URL: https://github.com/apache/apisix-dashboard/issues/615#issuecomment-725241555
same problem? could you please provide more info, like links or snapshots?
----------------------------------------------------------------
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