Packages/Baker: add rpm package
What
Adds rpm packages for the agnostic baker
Why
We want the agnostic baker to be the default baker in the next release.
How
Very similar to !17580 (merged). In short I'm duplicating the existing baker package but rely on the agnostic-baker binary instead.
Manually testing the MR
(I have removed the how-to download the packages because I haven't tested it and I'm not sure about the procedure, if you really don't want to build either have a look at .gitlab/merge_request_templates/rpm-packages.md or ask me the packages directly).
To build the packages locally, simply execute the script. (it doesn't require a lot of dependencies, but I couldn't list them).
$ scripts/packaging/build-rpm-local.sh
$ sudo apt install $HOME/rpmbuild/RPMS/x86_64/octez-zcash-something
$ sudo apt install $HOME/rpmbuild/RPMS/x86_64/octez-node_202504041710+a9652393a6.x86_64
$ sudo apt install $HOME/rpmbuild/RPMS/x86_64/octez-client_202504041710+a9652393a6.x86_64
$ sudo apt install $HOME/rpmbuild/RPMS/x86_64/octez-agnostic-baker_202504041710+a9652393a6.x86_64
Before starting: with the debian package it configures the packages when you install them, not with fedora, so you'll need to change some variables, for instance add LQVOTE=off in /etc/default/octez-baker. I also had issue with starting the octez-node because it defaults to mainnet and downloading a snapshot importing it and all made the start service crash, but that's another design issue.
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 fedora:latest
RUN dnf install --skip-unavailable -y \
dnf-plugins-core logrotate libev curl jq hidapi \
&& rm -rf /var/lib/apt/lists/*
COPY octez-*.rpm /tmp
RUN rpm -i /tmp/octez-zcash-params.rpm
RUN rpm -i /tmp/octez-node.rpm
RUN rpm -i /tmp/octez-client.rpm
RUN rpm -i /tmp/octez-agnostic-baker.rpm
but as testing the services is really important I really recommend testing in a VM. However, the service logic is the same as for debian, so if it worked for debian, it'll work for Fedora