goharbor / harbor-arm

Build Harbor for arm architecture.
Apache License 2.0
73 stars 44 forks source link

spectral is not arm64,i can not find spectral #4

Closed xincuni closed 3 years ago

xincuni commented 3 years ago

image

spectral is not arm64

xincuni commented 3 years ago

[root@ecs-ebb6 ~]# uname -a Linux ecs-ebb6 4.18.0-147.5.1.el8_1.aarch64 #1 SMP Tue Feb 4 23:44:08 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

tianon commented 3 years ago

You probably don't need Spectral for deploying Harbor on arm64 -- it should only be needed if you're doing development on Harbor.

xincuni commented 3 years ago

I need harbor-arm64's offline package deployment. I used make build to expose this error, including swagger..

What should I do if I want to deploy an offline package

morlay commented 3 years ago

@xincuni

It may push upstream https://github.com/stoplightio/spectral to provide arm64 binary or switch to use this Dockerfile build a multi-arch images https://github.com/stoplightio/spectral/blob/develop/Dockerfile

xincuni commented 3 years ago

Process of execution

os: centos8 (huawei鲲鹏) docker: 20.10.8 docker-compose: 1.22.0

shell:

[root@ecs-1495 harbor-arm]# make build image

According to the commit information to harbor in the main branch of the warehouse, I switch to a specified commit

morlay commented 3 years ago

@xincuni

you could install QEMU for development see https://github.com/tonistiigi/binfmt

xincuni commented 3 years ago

Connect the strip

[root@ecs-1495 harbor-arm]# cd src/github.com/goharbor/harbor/ [root@ecs-1495 harbor]# git reset --hard dabf6defaf1e597ea0b72c4937e53d53dd4a7ddc HEAD is now at dabf6defa Merge pull request #14517 from stonezdj/21mar26_remove_x_go_type

image

xincuni commented 3 years ago

@morlay Do you mean that I use docker buildx to package the offline package of arm64?

morlay commented 3 years ago

@xincuni I means for development, we don't need make alll tools images support multi-arch. when you install QEMU, docker could support run x86_64 on aarch64 host, not just docker buildx, like docker desktop did.

morlay commented 3 years ago

@xincuni on other hands, we don't need to build multi-arch images on aarch64 hosts, as you said we could build multi-arch images includes linux/arm64, on x86_64 hosts

xincuni commented 3 years ago

@morlay Thank you. I'll try x86_ 64 to build the offline package of arm64

morlay commented 3 years ago

@xincuni you could even use my builds.

https://github.com/orgs/querycap/packages?repo_name=harbor

xincuni commented 3 years ago

@morlay I saw that you built the arm64 package when you built it. Can you give me an offline installation package of arm64?

Or I download the image you built, but I don't know how to generate the offline installation package. I know that the harbor warehouse can use the make package_ Offline to generate offline packages

Jeremy-boo commented 3 years ago

we'll skip it in build arm action, Thank you

Jeremy-boo commented 3 years ago

we'll skip it in build arm action, Thank you please see this pr https://github.com/goharbor/harbor-arm/pull/6