installation
Installation
fleet is glue, not a package: a host runs from a git checkout plus a state directory and the external tools it already uses. Install the pieces you need — the dispatcher core and panel run without Jenkins.
Prerequisites
- Python 3.11+ and
pip(PyYAML + jsonschema). - git and the GitHub CLI (
gh) on the runner host. - Linux runners (COI): Incus and
coi, with your user inincus-admin. - Admin panel / website: Erlang & Elixir (admin) through mise, Node (website), pinned in the repo
mise.toml. - Jenkins controller + build nodes (installed separately).
1. Get the code
git clone https://github.com/wrbl606/fleet.git
cd fleet2. Dispatcher core
fleetctl owns normalize → resolve → plan → run → publish. It is stdlib-first and runs identically on a laptop and in CI.
python3 -m pip install -r requirements.txt
python3 -m fleetctl env-check --platform linux3. Trusted registry
Keep the tracked registry.yaml generic and write deployment-specific routing, allowlists, and comment policy to the git-ignored registry.local.yaml overlay.
# write deployment-specific routing to the git-ignored overlay
scripts/configure-registry.sh jira --project ENG --repo acme/engine --labels agent
scripts/configure-registry.sh trusted acme/engine
scripts/configure-registry.sh show --effective # merged view4. Admin panel
The panel owns the run ledger and the webhook ingest endpoint. It defaults to 0.0.0.0:4000 and migrates the database on start.
mise install
bash admin/start.sh --host 0.0.0.0 --port 4000| Env var | Purpose |
|---|---|
FLEET_INGEST_TOKEN | Bearer token for POST /api/ingest, POST /api/trigger, and GET /api/metrics |
FLEET_WEBHOOK_URL | Dispatcher endpoint inbound webhooks are forwarded to (Jenkins GWT invoke URL) |
FLEET_WEBHOOK_TOKEN | Token appended to the forward URL and sent as a bearer header |
FLEET_INGEST_PUBLIC_URL | Public URL of the panel ingest endpoint, shown on the Trigger page |
FLEET_GITHUB_WEBHOOK_SECRET | GitHub webhook secret for X-Hub-Signature-256 HMAC auth |
FLEET_JENKINS_URL | Jenkins master web UI, linked from the nav and Trigger page |
GITHUB_TOKEN | GitOps config PRs (contents:write, pull-requests:write) |
FLEET_ADMIN_USER / FLEET_ADMIN_PASSWORD | Optional HTTP Basic auth for the UI |
Pages: / run ledger, /ingest ingest log, /trigger manual trigger, /gitops config PRs.
5. Jenkins
Jenkins is not bundled. The dispatcher core and panel run without it, but the webhook → pipeline → PR flow needs a Jenkins you operate. For a local WAR install use the helper scripts; otherwise install the plugins from scripts/jenkins/plugins.txt, add this repo as a global shared library named fleet-config, provide nodes labeled fleet-agent, and create the credentials fleet-webhook-token, fleet-github-read,fleet-github-token, and one per [agent].llm_env. See Triggers & ingest for the webhook wiring.
6. Landing page (optional)
The marketing site is a static Astro build in website/.
bash website/start.sh # dev server on 0.0.0.0:4100
bash website/start.sh --build # production build + preview
bash website/start.sh --daemon # background; stop with website/stop.sh7. Verify
Run the sandbox smoke test (no LLM key required) and the CI checks.
bash scripts/smoke.sh # expected: PASS
bash scripts/ci.sh # fleetctl unit tests + schema validation
bash scripts/ci-admin.sh # admin: compile --warnings-as-errors + format + testsNext
Configure how tasks enter fleet in Triggers & ingest, or read the security model.