Binary DB Agent Installation
Install a Container Runtime
DB Agent requires Docker or Podman to be installed and running on the host to manage database containers.
Verify your installation:
sudo docker --versionDocker isn't installed yet
If Docker is not installed, the easiest way to get it is Docker's installation script:
curl -sSL https://get.docker.com/ | sudo CHANNEL=stable bashOtherwise refer to the official Docker installation guide for your distribution.
Install the DB Agent Binary
This downloads the binary and prints its version. Run sudo -v first so a password prompt doesn't swallow the rest of a pasted block.
sudo curl -L "https://github.com/calagopus/db-agent/releases/latest/download/db-agent-$(uname -m)-linux" -o /usr/local/bin/calagopus-db-agent
sudo chmod +x /usr/local/bin/calagopus-db-agent
sudo /usr/local/bin/calagopus-db-agent versionAdd an Alias (Optional)
If you'd prefer to type db-agent instead of calagopus-db-agent, create a symlink:
sudo ln -s /usr/local/bin/calagopus-db-agent /usr/local/bin/db-agentConfigure DB Agent
Set an API token that clients will use to authenticate against the management API:
sudo /usr/local/bin/calagopus-db-agent configure --token <TOKEN>This writes the token into the config file at the default path (/etc/calagopus-db-agent/config.yml), creating it with defaults first if it doesn't exist yet. See the Configuration reference for every other available option.
Test the configuration by running DB Agent in the foreground:
sudo /usr/local/bin/calagopus-db-agentKill it with Ctrl-C once you've confirmed it starts without errors.
Install as a Service
This creates and enables a systemd or OpenRC service (auto-detected) that starts on boot, then shows its status:
sudo /usr/local/bin/calagopus-db-agent service-install
sudo systemctl status db-agent --no-pagercalagopus-db-agent service-install
rc-service db-agent statusNext Steps
With DB Agent running, connect it to the Panel and secure its connections. See Next Steps.