kubernetes-retired / service-catalog

Consume services in Kubernetes using the Open Service Broker API
https://svc-cat.io
Apache License 2.0
1.05k stars 387 forks source link

Add multi arch docker image support #2900

Closed duanhongyi closed 2 years ago

duanhongyi commented 2 years ago

I need to use service catalog on both arm64 and AMD64 platforms; Now the official image does not support multi arch; So I use the following command to build it myself:

git clone https://github.com/kubernetes-sigs/service-catalog
cd service-catalog && make images-all
docker tag service-catalog-amd64:canary drycc/service-catalog-amd64:canary
docker tag service-catalog-arm64:canary drycc/service-catalog-arm64:canary
docker push drycc/service-catalog-amd64:canary
docker push drycc/service-catalog-arm64:canary
docker manifest create drycc/service-catalog:canary drycc/service-catalog-arm64:canary drycc/service-catalog-amd64:canary
docker manifest annotate docker.io/drycc/service-catalog:canary docker.io/drycc/service-catalog-arm64:canary --os linux --arch arm64
docker manifest annotate docker.io/drycc/service-catalog:canary docker.io/drycc/service-catalog-amd64:canary --os linux --arch amd64
docker manifest push docker.io/drycc/service-catalog:canary

I hope the official image supports multi arch.