We were trying to configure building multi-arch container image on Kubernetes using OneDev and I do not see a way to do that without having access to Docker deployment.
If I'm correct, on Kubernetes to build container image, we can either:
have docker running somewhere (provided by us) and use Build Docker Image step providing additional options (assuming executor will have access to the provided Docker deployment
use Build Docker Image (Kaniko) to use Kaniko for building images
With those two options, I do not see a way to build multi-arch image on Kubernetes (no Docker) without providing additional services, ie. having Docker running somewhere, as if I'm correct Kaniko is unable to build multi-arch images.
What approach to building multi-arch container images on Kubernetes cluster using OneDev would you suggest?
Is there any other solution or approach that might allow us building mutli-arch container images on Kubernetes using OneDev? (We do have only a single architecture Kubernetes cluster).
Robin Shen commented 3 months ago
OneDev can only build docker image via Kaniko on Kubernetes. Unless Kaniko supports that (as far as I know it does not), OneDev will not be able to build multi-arch docker image on Kubernetes.
My suggestion would be to connect a separate agent to your OneDev server for building multi-arch images.
We were trying to configure building multi-arch container image on Kubernetes using OneDev and I do not see a way to do that without having access to Docker deployment. If I'm correct, on Kubernetes to build container image, we can either:
Build Docker Image
step providing additional options (assuming executor will have access to the provided Docker deploymentBuild Docker Image (Kaniko)
to use Kaniko for building imagesWith those two options, I do not see a way to build multi-arch image on Kubernetes (no Docker) without providing additional services, ie. having Docker running somewhere, as if I'm correct Kaniko is unable to build multi-arch images.
What approach to building multi-arch container images on Kubernetes cluster using OneDev would you suggest? Is there any other solution or approach that might allow us building mutli-arch container images on Kubernetes using OneDev? (We do have only a single architecture Kubernetes cluster).