Packer templates for building Raspberry Pi system images
Uses packer qemu
builder and ansible-local
provisioner to build system images for the raspberry pi
NOTE
At the moment only the Raspberry Pi 3B+ and 4B are supported, and system images are pre-installed with kubernetes bootstrapping tools (kubeadm
)
To build a debian disk image, invoke packer as follows:
packer build debian-arm64.json
After a successful run, the system image will be saved in output-qemu/debian-arm64
By default, a system image for the Raspberry Pi 4B is generated. To build a system image for the Raspberry Pi 3B+, invoke packer as follows:
packer build -var rpi_hardware_version=3 debian-arm64.json
User Variables can be overridden invidiually by passing -var 'key=value'
or passing a JSON file via -var-file=path
. For a complete list of variables that can be overridden, see Configuration
Images are built by GitHub Actions with every commit. To download the image from a job, navigate to Actions, select the latest job and click the desired image in the Artifacts section.
BSD