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

build goharbor/swagger:v0.25.0 failed #30

Open
kernelsky opened this issue Apr 26, 2022 · 3 comments
Open

build goharbor/swagger:v0.25.0 failed #30

kernelsky opened this issue Apr 26, 2022 · 3 comments

Comments

@kernelsky
Copy link

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

This problem will be solved in this pr. #25

@mashitu
Copy link

mashitu commented Dec 6, 2022

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

@ljzlegendice
Copy link

ljzlegendice commented Sep 12, 2023

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

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

No branches or pull requests

4 participants