goharbor / harbor-arm

Build Harbor for arm architecture.
Apache License 2.0
69 stars 41 forks source link

build goharbor/swagger:v0.25.0 failed #30

Open kernelsky opened 2 years ago

kernelsky commented 2 years ago

前面的操作都很正常没有报错 [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

Jeremy-boo commented 2 years ago

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

mashitu commented 1 year ago

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

ljzlegendice commented 10 months ago

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