Basecamp guide / Fleet
Releasing from Basecamp
A release from Basecamp is a click, not a command you type on the machine. A job sends signed commands to the enrolled Outpost, which builds or pulls the image, starts it and answers the digest of what it built. Basecamp records that digest on the deployment and addresses every later step by it.
fli tutor:fleet
The lesson starts a control plane, adds a Server row, enrolls a real Outpost on this machine, runs a command there and releases an image. It needs a framework checkout, and Docker for the last step.
What else it can do
- Each command is signed with method, path, timestamp, nonce and a hash of the body, so it cannot be replayed or moved
POST /pullfetches an image and answers its digest, andPOST /deploystarts a container of exactly those bytesPOST /buildclones the app with its own deploy key and builds on the machine/deployanswers once the release is healthy and puts the old one back when it is not- Only
sha256:<64 hex>counts as a digest, because a tag is a name two builds can share - An App whose source is files is released by writing them under their own sha256 and swapping one symlink
fli basecamp:appmakes the current app an App in Basecamp, placed on a serverfli basecamp:deploy --app <app-id>builds here, loads the image on each machine and releases that digestfli basecamp:livesays why an App is not live: its release, its machine, then each hostname's DNS and HTTPSfli outpost:logs <box> <app>reads the container's logs
In depth: Outpost README § Where the bytes come from, tutor:fleet, Quickstart