Why a Raspberry Pi 4 for GitLab CI?
If you already host a GitLab instance on a NAS or a tiny server, a Pi 4 can be the perfect “just‑add‑a‑little‑more‑power” solution.
It’s cheap, low‑power, and its 4‑core Cortex‑A72 at 1.5 GHz does more than you’d expect for unit tests, linting, and even modest Docker builds—just keep the job size in check.
Prerequisites
| Item | What you need |
|---|---|
| Raspberry Pi 4 | 2 GB or 4 GB RAM works; 8 GB gives headroom for Docker. |
| Micro‑SD card | 32 GB+, Class 10. |
| Power supply | Official 5 V/3 A USB‑C. |
| Network | Wired Ethernet is best for stability. |
| Host OS | Raspbian Bookworm (Debian 12) or Ubuntu 22.04 LTS for ARM. |
| GitLab instance | Self‑hosted or GitLab.com, with an API token for runners. |
If you’re new to the Pi, flash the OS first and make sure you can SSH in.
For a fresh Raspbian image, enable SSH by placing an empty ssh file in the boot partition or run raspi-config after boot.