Packages/Baker: add debian package
What
Closes #7764 (closed)
Adds debian packages for the agnostic baker
Why
We want the agnostic baker to be the default baker in the next release.
How
In short I'm duplicating the existing baker package but rely on the agnostic-baker binary instead.
Manually testing the MR
You can either build the packages locally or use artifacts from the CI.
To download the artifacts you should do
$ curl https://tezos-linux-repo.storage.googleapis.com/next/debian/octez.asc | gpg --dearmor -o /etc/apt/keyrings/octez.gpg
$ echo "deb [signed-by=/etc/apt/keyrings/octez.gpg] https://tezos-linux-repo.storage.googleapis.com/vch9@packages-agnostic-baker/debian bookworm main" > /etc/apt/sources.list.d/octez.list
$ apt-get update
$ apt install octez-node
To build them locally, simply execute the script. (it doesn't require a lot of dependencies, but I couldn't list them).
$ scripts/packaging/build-deb-local.sh
$ sudo apt install ./scripts/packaging/octez-node_202504041710+a9652393a6_amd64.deb
$ sudo apt install ./scripts/packaging/octez-client_202504041710+a9652393a6_amd64.deb
$ sudo apt install ./scripts/packaging/octez-agnostic-baker_202504041710+a9652393a6_amd64.deb
Then you can start the services:
$ sudo systemctl start octez-node
$ sudo systemctl start octez-agnostic-baker
and that's it, you can have a log at
/var/log/tezos/*.log
for both the node and the agnostic baker
If you don't have a debian os, you can test the installation with the following docker image:
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \
gdebi-core logrotate libev4t64 curl jq libhidapi-libusb0 \
&& rm -rf /var/lib/apt/lists/*
COPY octez-*.deb /tmp
RUN gdebi -n /tmp/octez-zcash-params.deb
RUN gdebi -n /tmp/octez-node.deb
RUN gdebi -n /tmp/octez-client.deb
RUN gdebi -n /tmp/octez-agnostic-baker.deb
but I'm not sure you cant test easily the systemd services in the docker image :/
Summary by CodeRabbit
-
New Features
- Introduced the new Agnostic Baker package for enhanced baking capabilities, including block creation and attestations with support for multiple architectures.
- Integrated improved service management with automatic startup, log rotation, and runtime persistence for a smoother operational experience.
-
Documentation
- Added comprehensive guides and manual pages detailing configuration steps and remote signer integration to help users easily set up and manage the service.
Edited by Valentin Chaboche