Build Debian packages for Raspberry Pi: https://github.com/pi-top/deb-build-docker/
10K+
(This only needs to be done once)
echo -e "{\n \"experimental\": true\n}" | sudo tee /etc/docker/daemon.json &> /dev/null
sudo service docker restart
The following snippet will use amd64 for packages that do not require compilation, which will result in the fastest package building.
Packages that require compilation will be built in a container that is emulating ARM hardware (32 and 64 bit), which results in a slower build.
architectures=()
if [[ "$(grep "Architecture" debian/control | grep -v "all")" != "" ]]; then
docker run --privileged --rm docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
architectures+=("armhf")
architectures+=("arm64")
else
architectures+=("amd64")
fi
for architecture in ${architectures[@]}; do
docker run --rm \
--platform=${architecture} \
--volume $(pwd):/src \
pitop/deb-build:latest
done
Content type
Image
Digest
Size
225.8 MB
Last updated
over 5 years ago
docker pull pitop/deb-build