Thank you. This is a great addition to 1.1.0. đź‘Ť Sunil
On Thu, Jun 16, 2022 at 8:31 PM Wilfred Spiegelenburg <wilfr...@apache.org> wrote: > Craig, > > This should be possible already. The python script I wrote uses just > docker, make and curl for some cleanup. It leverages the standard > Makefile for the compilation, go itself is used for the cross > compilation which is there in each install. > The only bit missing is the documentation to describe what needs to be > installed on a linux machine to get the docker cross architecture > build to work. > I know you need at least docker (moby should suffice) and the open > source machine emulator qemu [1]. Besides that nothing is, I think, > needed but some install instructions. > > Wilfred > > [1] https://www.qemu.org > > On Fri, 17 Jun 2022 at 00:33, Craig Condit <ccon...@apache.org> wrote: > > > > I think this is a great start. I would additionally like to see > instructions that allow for building multi-arch images on a (relatively) > stock Linux install without third-party software other than Docker itself. > I know it’s possible, and probably mostly there, but I think it’s important > to limit the third-party requirements for an RM as much as possible. > > > > Thanks for working on this. > > > > - Craig > > > > > > > On Jun 15, 2022, at 8:01 PM, Wilfred Spiegelenburg < > wilfr...@apache.org> wrote: > > > > > > Hi, > > > > > > By default we only publish images with the AMD64 architecture. > > > YUNIKORN-725 was implemented to allow builds to at least succeed on > > > both AMD64 and ARM architectures. > > > > > > Building images is a bit more involved and it was briefly discussed as > > > part of YUNIKORN-725, and then moved to YUNIKORN-1215 for > > > implementation. > > > Over the last week I have been working on getting a build working and > > > generating both AMD (amd64) and ARM (arm64v8) images combined into one > > > image tag. > > > I have a solution that works seamlessly if: > > > * Docker Desktop [1] is installed. > > > * Rancher Desktop [2] is installed with "dockerd (moby)" as the > > > container runtime > > > The code impact will be in the Docker and Makefile for the web and > > > k8shim repo. Plus a new tool in the release repo. > > > > > > Both desktops are free for use in open source development. Docker > > > desktop is only free within limits and might not work for some of us. > > > Rancher Desktop is the always free option. The CPU impact of running > > > Rancher Desktop on my local machine is slightly higher than docker > > > desktop. Besides that it works the same. > > > > > > The next step could be moving to multi stage docker images for the > > > build [3]. That should also open up the possibility for nedrctl to be > > > used for building the multi architecture images. > > > > > > My proposal is to: > > > * release multi architecture images for the 1.1.0 release > > > * delay multi stage build to a later release > > > > > > Any comments on this plan? I will raise the PRs against the different > > > repos as part of YUNIKORN-1215 in the next day or so. > > > > > > Wilfred > > > > > > [1] https://www.docker.com/products/docker-desktop/ > > > [2] https://rancherdesktop.io > > > [3] > https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/ > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: dev-unsubscr...@yunikorn.apache.org > > > For additional commands, e-mail: dev-h...@yunikorn.apache.org > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@yunikorn.apache.org > > For additional commands, e-mail: dev-h...@yunikorn.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@yunikorn.apache.org > For additional commands, e-mail: dev-h...@yunikorn.apache.org > >