Appearance
Build the packages Since v0.2
This page is for packagers and developers. Operators install a finished package: see Install a node. Each package format is built on the distribution family it is for, because the binary links that family's RE2 library.
Before you begin
- A checkout of the repository with the web console built once (it is embedded in the binary):
cd web && npm run build. - The Lima virtual machines the scripts use:
waap-ha(Ubuntu 26.04) for the.deb,waap-rocky9(Rocky Linux 9,scripts/lima-el9.yaml) for the.rpm. They are created on first use and run offline with the host's Go module cache.
Build and test
sh
make packages # arm64 .deb and .rpm into dist/packages/
make pkg-test pkg-test-rpm # install tests: .deb on Ubuntu 26.04, .rpm on Rocky Linux 9
make packages-amd64 pkg-test-amd64 # the same for amd64 (VM waap-x86)scripts/pkg-build.sh builds the release bundle (tools/release, which checks the SBOM against the binary). Then tools/packages writes each package twice and refuses to continue if the bytes differ. It prints the requirements it read from the binaries. Our own code writes the .deb (internal/pkgbuild); the .rpm uses github.com/google/rpmpack.
Settings
| Setting | What it does | Default | Allowed values | Applies in |
|---|---|---|---|---|
PACKAGE_VERSION | Version written into the package. | 0.2.0 | version string | all builds |
SOURCE_DATE_EPOCH | File times inside the package. | the last commit time | Unix time | all builds |
PKG_FORMATS | Formats to build. | chosen from the host | deb, rpm | all builds |
ENVOY_BIN | Path of the pinned Envoy binary. | none | file path | direct scripts/pkg-build.sh runs |
Build for amd64
make packages-amd64 runs the same scripts in amd64 containers on an arm64 Lima VM with Rosetta (waap-x86, scripts/lima-x86.yaml): the .deb in an Ubuntu 26.04 container and the .rpm in a Rocky Linux 9 container. It needs two pinned files in ~/.cache/waap, which the script checks against their SHA-256:
sh
mkdir -p ~/.cache/waap && cd ~/.cache/waap
curl -fLO https://github.com/envoyproxy/envoy/releases/download/v1.39.4/envoy-1.39.4-linux-x86_64
curl -fLO https://go.dev/dl/go1.27.3.linux-amd64.tar.gzmake pkg-test-amd64 runs scripts/pkg-test.sh in amd64 Ubuntu 26.04 and Rocky Linux 9 containers with systemd as PID 1. On a real x86_64 Linux host, run scripts/pkg-build.sh there directly with ENVOY_BIN=/path/to/envoy-1.39.4-linux-x86_64.
Rosetta translates user space only
The kernel in these tests is the VM's arm64 kernel. Confirm a release on real x86_64 hardware.
What has been tested
Results of 25 November 2026 unless stated.
| Check | Result |
|---|---|
.deb arm64 on Ubuntu 26.04: install, start, metrics and console, waap setup (a second run refuses), a benign request passes, SQL injection is logged in detect mode (rule 942100), reinstall, remove keeps data, purge deletes data and user | passed (scripts/pkg-test.sh) |
.rpm aarch64 on Rocky Linux 9.9 with systemd and SELinux enforcing: the same checks, no SELinux denials | passed (make pkg-test-rpm) |
.deb amd64 and .rpm x86_64 in amd64 systemd containers under Rosetta: the same checks | passed (make pkg-test-amd64) |
.rpm in a Rocky Linux 9 minimal container without systemd: requirements, scripts, modes, rpm -V, upgrade, erase | passed (24 November) |
| Byte-identical rebuilds | passed (each package is built twice per run) |
| Upgrade from v0.1.0 through the packages, with a blocked backup, and rollback | passed (make upgrade-test, make pkg-upgrade-test, make pkg-upgrade-test-rpm, make pkg-upgrade-test-amd64) |
lintian, rpmlint | not run (not installed) |
| Split-role units live | not run |