Example Systemd configuration for Basic Builder
This directory contains an example configuration set for running Basic Builder under systemd.
This presumes you've done a pip3 install . in the root of the repository (or in a virtualenv, etc.).
For demonstration purposes, the ExecStart path is /usr/local/bin/bbuilder, the EnvironmentFile is located at /etc/default/bbuilder, and that the User to execute as is named git.
-
Copy
environment.exampleto/etc/default/bbuilderand edit it to suit your needs.NOTE: This file contains the sensitive
BB_AUTH_KEYvalue. Ensure this file is only readable by trusted users (e.g. mode400)! -
Copy
bbuilder-api.serviceandbbuilder-worker.serviceinto/etc/systemd/system. -
Run
sudo systemctl daemon-reloadto load the changes to Systemd. -
If applicable, create your service user.
-
Enable and start the API (
sudo systemctl enable --now bbuilder-api.service) and Worker (sudo systemctl enable --now bbuilder-worker.service). -
Configure your webhooks, etc.