Closed xincuni closed 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
You probably don't need Spectral for deploying Harbor on arm64 -- it should only be needed if you're doing development on Harbor.
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
@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
Process of execution
os: centos8 (huawei鲲鹏) docker: 20.10.8 docker-compose: 1.22.0
shell:
[root@ecs-1495 harbor-arm]# make build
According to the commit information to harbor in the main branch of the warehouse, I switch to a specified commit
@xincuni
you could install QEMU for development see https://github.com/tonistiigi/binfmt
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
@morlay Do you mean that I use docker buildx to package the offline package of arm64?
@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.
@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
@morlay Thank you. I'll try x86_ 64 to build the offline package of arm64
@xincuni you could even use my builds.
@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
we'll skip it in build arm action, Thank you
we'll skip it in build arm action, Thank you please see this pr https://github.com/goharbor/harbor-arm/pull/6
spectral is not arm64