api7 / apisix-build-tools

Build tools to package and release
Apache License 2.0
122 stars 95 forks source link

Help Request, docker cp lost parameter $PWD #268

Open lakewatcher opened 1 year ago

lakewatcher commented 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? image

lakewatcher commented 1 year ago

后续, 1.重新编译,依然报错。 2.直接把PWD改为路径,依然报错

手动运行 docker run -d --rm --name output --net="host" apache/apisix-base-packaged-rpm:1.0.0 发现镜像无法运行,应该是打镜像有问题,但是没有错误信息

SinCatGit commented 1 year ago

${PWD} ->$(shell pwd) solved