This is an old revision of the document!
Docker
Redbug is deploying sotware to the Raspberry Pi using docker.
Building for the Pi
A Raspberry Pi uses an ARM processor, which is different from the x86 processor your development machine likely uses. We're going to build for the Pi by building a multi-platform docker image that includes compiled code for several different platforms, so that we can push it to a repository like Docker Hub, and it can be used by different people in different environments.
We're going to do the building it from your development machine. This requires the use of docker's buildx command, which accesses extended build capabilities.
Buildx requires a “driver”, which is a collection of build tools setup to support multiple platforms. It achieves this using docker images itself. These instructions are based on this article on Building Multi-Platform Images.
