2019-04-01 06:02:19 +02:00
|
|
|
.. _rpi_build:
|
|
|
|
|
|
|
|
Building for a Raspberry Pi
|
|
|
|
===========================
|
|
|
|
|
|
|
|
The build does not need to be done on the Pi.
|
|
|
|
|
2019-10-09 18:17:40 +02:00
|
|
|
To do so, go to ``tests/`` and call ``./build_arm.sh``, it will build all
|
|
|
|
necessary images for arm.
|
2019-04-01 06:02:19 +02:00
|
|
|
|
2019-10-09 18:17:40 +02:00
|
|
|
To push the locally built images to a remote server, run ``./deploy_to_pi.sh``.
|
|
|
|
Docker 18.09+ is needed to use ``-H ssh://<user>@<host>``.
|
2019-04-01 06:02:19 +02:00
|
|
|
|
|
|
|
Adjustments
|
|
|
|
-----------
|
|
|
|
|
|
|
|
``build_arm.sh`` uses some variables passed as ``build-arg`` to docker-compose:
|
|
|
|
|
2019-10-09 18:17:40 +02:00
|
|
|
- ``ALPINE_VER``: version of ALPINE to use
|
2022-03-18 22:46:49 +02:00
|
|
|
- ``DISTRO``: is the main distro used. Dockerfiles are set on Alpine 3.14, and
|
|
|
|
build script overrides for ``balenalib/rpi-alpine:3.14``
|
2019-10-09 18:17:40 +02:00
|
|
|
- ``QEMU``: Used by webmails dockerfiles. It will add ``qemu-arm-static`` only
|
|
|
|
if ``QEMU`` is set to ``arm``
|
|
|
|
- ``ARCH``: Architecture to use for ``admin``, and ``webmails`` as their images
|
|
|
|
are available for those architectures.
|