These are instructions for building rancher-agent
for arm32. If we start doing this regularly we'll need to standup CI, but for now doing it manually is good enough.
I suspect the reason that rancher-agent isn't supported for arm32 is because rancher proper (aka make build-server
) doesn't compile for arm32 (with error constant 4294967295 overflows int
). However, the agent (aka make build-agent
) builds fine.
Cross-compilation isn't quite straightforward in these projects, so they've been tweaked (and a bug fixed).
rancher-agent's Dockerfile.agent
pulls binaries from upstream dependencies that don't exist for arm32, so we have to build them manually.
share-mnt:
git clone https://github.com/paleozogt/rancher-share-mnt.git