harbor-arm icon indicating copy to clipboard operation
harbor-arm copied to clipboard

build goharbor/swagger:v0.25.0 failed

Open kernelsky opened this issue 2 years ago • 3 comments

前面的操作都很正常没有报错 [root@kube01 harbor-arm]# make compile COMPILETAG=compile_golangimage cd src/github.com/goharbor/harbor && make -f Makefile compile make[1]: Entering directory '/opt/src/harbor-arm/src/github.com/goharbor/harbor'

Note: golang version: 1.18.1

Note: docker version: 20.10.14

Note: docker-compose version: 1.22.0 Sending build context to Docker daemon 90.52MB Step 1/6 : ARG GOLANG Step 2/6 : FROM ${GOLANG} 1.15.12: Pulling from library/golang c54d9402d498: Pull complete 6a8aff564b22: Pull complete 67e893e0778b: Pull complete 72bf2dd6193d: Pull complete 7ca9f9cb7efb: Pull complete a87ea9da07ae: Pull complete df76234ef7d0: Pull complete Digest: sha256:961dd10da27fa72b26cf8ffdb00c567519341517011d3d93ccfd0f6ecdd9d137 Status: Downloaded newer image for golang:1.15.12 ---> 92e0f4bd4b90 Step 3/6 : ARG SWAGGER_VERSION ---> Running in c955833e7d20 Removing intermediate container c955833e7d20 ---> 2c9b5a4dbd9b Step 4/6 : RUN ARCH= && dpkgArch="$(uname -m)" && case "${dpkgArch}" in x86_64) ARCH='x64'; curl -fsSL -o /usr/bin/swagger https://github.com/go-swagger/go-swagger/releases/download/$SWAGGER_VERSION/swagger_linux_amd64 && chmod +x /usr/bin/swagger ;; aarch64) ARCH='arm64'; curl -fsSL -o /usr/bin/swagger https://github.com/go-swagger/go-swagger/releases/download/$SWAGGER_VERSION/swagger_linux_arm64 && chmod +x /usr/bin/swagger ;; ppc64el) ARCH='ppc64le' ;; s390x) ARCH='s390x' ;; arm64) ARCH='arm64'; curl -fsSL -o /usr/bin/swagger https://github.com/go-swagger/go-swagger/releases/download/$SWAGGER_VERSION/swagger_linux_amd64 && chmod +x /usr/bin/swagger ;; armhf) ARCH='armv7l' ;; i386) ARCH='x86' ;; *) echo "unsupported architecture"; exit 1 ;; esac ---> Running in bbcf3425563c curl: (52) Empty reply from server The command '/bin/sh -c ARCH= && dpkgArch="$(uname -m)" && case "${dpkgArch}" in x86_64) ARCH='x64'; curl -fsSL -o /usr/bin/swagger https://github.com/go-swagger/go-swagger/releases/download/$SWAGGER_VERSION/swagger_linux_amd64 && chmod +x /usr/bin/swagger ;; aarch64) ARCH='arm64'; curl -fsSL -o /usr/bin/swagger https://github.com/go-swagger/go-swagger/releases/download/$SWAGGER_VERSION/swagger_linux_arm64 && chmod +x /usr/bin/swagger ;; ppc64el) ARCH='ppc64le' ;; s390x) ARCH='s390x' ;; arm64) ARCH='arm64'; curl -fsSL -o /usr/bin/swagger https://github.com/go-swagger/go-swagger/releases/download/$SWAGGER_VERSION/swagger_linux_amd64 && chmod +x /usr/bin/swagger ;; armhf) ARCH='armv7l' ;; i386) ARCH='x86' ;; *) echo "unsupported architecture"; exit 1 ;; esac' returned a non-zero code: 52 build goharbor/swagger:v0.25.0 failed make[1]: *** [Makefile:343: gen_apis] Error 1 make[1]: Leaving directory '/opt/src/harbor-arm/src/github.com/goharbor/harbor' make: *** [Makefile:177: compile] Error 2

kernelsky avatar Apr 26 '22 06:04 kernelsky

This problem will be solved in this pr. https://github.com/goharbor/harbor-arm/pull/25

Jeremy-boo avatar May 16 '22 08:05 Jeremy-boo

没看懂怎么弄啊,解决了吗?

mashitu avatar Dec 06 '22 01:12 mashitu

这是github不能响应导致的,可以配置docker代理解决

ljzlegendice avatar Sep 12 '23 14:09 ljzlegendice