rancher / os

Tiny Linux distro that runs the entire OS as Docker containers
https://rancher.com/docs/os/v1.x/en/
Apache License 2.0
6.44k stars 657 forks source link

How to cross-compile RancherOS from source for arm64/aarch64? #3040

Open ericdraken opened 3 years ago

ericdraken commented 3 years ago

Does anyone know how to cross-compile the latest (or any) RancherOS version from source (rancher/os) on amd64 for arm64?

I've been fighting dapper and Dockerfile.dapper and the build scripts and GOARCH=arm64 and QEMU to coax it to build in an emulated arm64 Docker container, Docker-in-Docker, binding docker.sock, copying in aarch64 libraries like libselinux, and so much more. I'm going in circles with static dependencies missing, tests not being built and failing, TOOLCHAIN indirect failures, and on. You have no idea. Are there real instructions out there to compile the arm64 iso, artifacts, and dist assets?

SneakyZEKE commented 2 years ago

Same need.