Sign inSign up

andreidrang/databasus-agent

By andreidrang

•Updated 4 months ago

Image
0

66

andreidrang/databasus-agent repository overview

⁠Databasus Verification Agent

Docker image for running a Databasus⁠ verification agent alongside a Docker daemon. The agent downloads its binary from the Databasus API at startup, registers itself, and executes verification jobs inside the container.

⁠Quick Start

docker run -d \
  -e DATABASUS_HOST=https://databasus.example.com \
  -e AGENT_ID=my-agent \
  -e AGENT_TOKEN=secret \
  --privileged \
  andreidrang/databasus-agent:latest

--privileged is required — the container runs its own dockerd to manage containers inside verification jobs.

⁠Configuration

All configuration is passed via environment variables.

VariableRequiredDefaultDescription
DATABASUS_HOSTyes—Databasus API URL (e.g. https://databasus.example.com)
AGENT_IDyes—Unique agent identifier
AGENT_TOKENyes—Agent authorization token
MAX_CPUno2CPU limit per job (cores)
MAX_RAM_MBno2048RAM limit per job (MB)
MAX_DISK_GBno20Disk limit per job (GB)
MAX_CONCURRENT_JOBSno1Maximum parallel jobs
ALLOW_INSECURE_HTTPnofalseAllow HTTP (non-HTTPS) connections

⁠Build Locally

docker build \
  --build-arg DATABASUS_HOST=https://databasus.example.com \
  --build-arg AGENT_ID=my-agent \
  --build-arg AGENT_TOKEN=secret \
  -t andreidrang/databasus-agent:latest \
  -f databasus-agent.Dockerfile .

Or via the project Makefile:

make build-databasus-agent
make push-databasus-agent

⁠How It Works

  1. Container starts and launches dockerd in the background.
  2. After a 5-second wait for daemon initialization, entrypoint.sh runs.
  3. The script downloads the verification-agent binary from $DATABASUS_HOST/api/v1/system/verification-agent?arch=amd64.
  4. The agent starts with the supplied parameters and begins polling for jobs.

⁠Use with Railway

This image is designed to run on Railway. Set the environment variables in the Railway dashboard under your service's Variables tab. Railway injects them into the container, and the entrypoint picks them up automatically.

Tag summary

Content type

Image

Digest

sha256:40b0ceb2c…

Size

16.7 MB

Last updated

4 months ago

docker pull andreidrang/databasus-agent:2026-05-28