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

[question] 打包镜像报错,ERROR: failed to solve: process "/bin/sh -c unzip supersonic-standalone-0.9.10-SNAPSHOT.zip" did not complete successfully: exit code: 1 #2054

Open
yuanzhiwei opened this issue Feb 13, 2025 · 3 comments
Labels
question Further information is requested

Comments

@yuanzhiwei
Copy link

Describe your question

[+] Building 48.3s (10/14) docker:default
=> [internal] load build definition from DockerfileS2 0.1s
=> => transferring dockerfile: 1.23kB 0.0s
=> [internal] load metadata for docker.io/supersonicbi/supersonic:0.9.8 2.2s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.1s
=> [ 1/10] FROM docker.io/supersonicbi/supersonic:0.9.8@sha256:f2a0757f8cc52bd064edb225bf2bbd1902c1894a356e890d7 0.0s
=> [internal] load build context 24.7s
=> => transferring context: 822.26MB 24.6s
=> CACHED [ 2/10] WORKDIR /usr/src/app 0.0s
=> CACHED [ 3/10] RUN apt-get install -y postgresql-client 0.0s
=> CACHED [ 4/10] RUN rm /usr/src/app/supersonic-standalone-latest 0.0s
=> [ 5/10] COPY assembly/build/supersonic-standalone-0.9.10-SNAPSHOT.zip . 4.9s
=> ERROR [ 6/10] RUN unzip supersonic-standalone-0.9.10-SNAPSHOT.zip 16.2s

[ 6/10] RUN unzip supersonic-standalone-0.9.10-SNAPSHOT.zip:
0.840 Archive: supersonic-standalone-0.9.10-SNAPSHOT.zip
0.841 warning: supersonic-standalone-0.9.10-SNAPSHOT.zip appears to use backslashes as path separators
0.845 inflating: supersonic-standalone-0.9.10-SNAPSHOT/bin/supersonic-common.bat
0.846 inflating: supersonic-standalone-0.9.10-SNAPSHOT/bin/supersonic-common.sh
0.847 inflating: supersonic-standalone-0.9.10-SNAPSHOT/bin/supersonic-daemon.bat
...............................省略N行...............................
15.43 inflating: supersonic-standalone-0.9.10-SNAPSHOT/webapp/static/iconfont.5204fa7c.svg
15.43 inflating: supersonic-standalone-0.9.10-SNAPSHOT/webapp/static/iconfont.652bd972.woff
15.43 inflating: supersonic-standalone-0.9.10-SNAPSHOT/webapp/static/iconfont.c3dd44a1.ttf
15.43 inflating: supersonic-standalone-0.9.10-SNAPSHOT/webapp/static/iconfont.e4f493be.woff2
15.43 inflating: supersonic-standalone-0.9.10-SNAPSHOT/webapp/static/TencentSans-W7.8b8c12d6.woff
15.49 inflating: supersonic-standalone-0.9.10-SNAPSHOT/webapp/system/index.html
15.49 inflating: supersonic-standalone-0.9.10-SNAPSHOT/webapp/tag/index.html
15.49 inflating: supersonic-standalone-0.9.10-SNAPSHOT/webapp/tag/market/index.html


DockerfileS2:19

17 |
18 | # Unzip the supersonic standalone zip
19 | >>> RUN unzip supersonic-standalone-0.9.10-SNAPSHOT.zip
20 |
21 | RUN rm supersonic-standalone-0.9.10-SNAPSHOT.zip

ERROR: failed to solve: process "/bin/sh -c unzip supersonic-standalone-0.9.10-SNAPSHOT.zip" did not complete successfully: exit code: 1

Your organization

gei

@yuanzhiwei yuanzhiwei added the question Further information is requested label Feb 13, 2025
@zzccctv
Copy link

zzccctv commented Feb 14, 2025

改一下,docker-build.sh,然后在supersonic/docker目录下运行

Image

@yuanzhiwei
Copy link
Author

改一下,docker-build.sh,然后在supersonic/docker目录下运行

Image

谢谢回复, 这里不是路径问题导致没找到压缩包, 是unzip解压完之后报错了,请看“省略N行”那儿就是解压过程,返回了错误代码导致打包程序退出了, 我将这个压缩包拿过来执行 unzip -t 都是返回的ok, 不知道怎么解决

@zzccctv
Copy link

zzccctv commented Feb 14, 2025

看看是不是压缩包有问题,之前我也遇到过,在网络传输过程中,包有损坏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants