Open lakewatcher opened 1 year ago
When I was compiling apisix-base using apisix-tool, I encountered the following problems :
case: Removing intermediate container 6b0e5e017b5a ---> ef848f93daf0 [Warning] One or more build-args [OPENRESTY] were not consumed Successfully built ef848f93daf0 Successfully tagged apache/apisix-base-packaged-rpm:1.0.0 docker run -d --rm --name output --net="host" apache/apisix-base-packaged-rpm:1.0.0 65e43220911c5e50fc65ac8b409a52496b7d765b04c8b2bffc030715cf22f394 docker cp output:/output "docker cp" requires exactly 2 arguments. See 'docker cp --help'.
Usage: docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|- docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH
Copy files/folders between a container and the local filesystem make: *** [package-apisix-base-rpm] Error 1
exec: sudo make package type=rpm app=apisix-base version=1.0.0 image_base=centos image_tag=7 buildx=False
I looked at the source code. Is there a problem here?
后续, 1.重新编译,依然报错。 2.直接把PWD改为路径,依然报错
手动运行 docker run -d --rm --name output --net="host" apache/apisix-base-packaged-rpm:1.0.0 发现镜像无法运行,应该是打镜像有问题,但是没有错误信息
${PWD} ->$(shell pwd) solved
${PWD}
$(shell pwd)
When I was compiling apisix-base using apisix-tool, I encountered the following problems :
case: Removing intermediate container 6b0e5e017b5a ---> ef848f93daf0 [Warning] One or more build-args [OPENRESTY] were not consumed Successfully built ef848f93daf0 Successfully tagged apache/apisix-base-packaged-rpm:1.0.0 docker run -d --rm --name output --net="host" apache/apisix-base-packaged-rpm:1.0.0 65e43220911c5e50fc65ac8b409a52496b7d765b04c8b2bffc030715cf22f394 docker cp output:/output "docker cp" requires exactly 2 arguments. See 'docker cp --help'.
Usage: docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|- docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH
Copy files/folders between a container and the local filesystem make: *** [package-apisix-base-rpm] Error 1
exec: sudo make package type=rpm app=apisix-base version=1.0.0 image_base=centos image_tag=7 buildx=False
I looked at the source code. Is there a problem here?![image](https://user-images.githubusercontent.com/27823963/209920446-1787bfc2-fb81-4c1a-a423-daafa61781cf.png)