Debian deployment

This creates a .deb package that may be installed on Linux distributions that use dpkg as the package manager (e.g. Debian, Ubuntu, Mint). The package installs Veraison into /opt/veraison and sets up systemd units for the services.

Dependencies

In addition to dependencies for the native deployment, dpkg must be installed. If you are on a Debian or Ubuntu system, dpkg will already be present as it the package manager for your system. If you are on Arch, you can install it via

# on Arch
pacman -S dpkg

If you are on another system, you will need to find how to install dpkg on your own (first check that it is not the package manager for the system, then search the system's standard packages; if all else fails -- duckduckgo/brave is your friend).

Building the package

The location where the package will be built is specified with PACKAGE_DEST environment variable. It will default to /tmp if not set. To build the package simply do

git clone https://github.com/veraison/services.git
cd services/deployments/debian

make deb

This will create ${PACKAGE_DEST}/veraison_deb_package/veraison_VERSION_ARCH.deb, where VERSION is the Veraison version as reported by the get-veraison-version script, and ARCH is the architecture of your system as reported by dpkg --print-architecture.

Alongside the package, there will be a subdirectory with the same name but without the .deb suffix that contains the "sources" used to build the package.