Repository navigation
Description
Problem
Running Consolebook today means installing Rust, Node.js, and npm, building the web app and then the server, and running cargo run -- serve by hand. There is no release binary, no service definition, no upgrade path, and no guidance from an empty installation to a first training session. The roadmap's Milestone 6 lists "deployment packages for common environments"; this is the first slice, for Linux with systemd.
Outcome
An agency administrator with a Linux server goes from nothing to a working installation with one command, and from an empty installation to a first evaluated session by following the screen. In detail:
- One command installs or upgrades.
curl -fsSL …/install/install.sh | sudo shdownloads a release for the machine and verifies its SHA-256. It installs/usr/local/bin/consolebook, aconsolebookservice account,/var/lib/consolebook, settings in/etc/consolebook/consolebook.env, and a hardened systemd unit. It then starts the service and prints the address and first-run setup code. Re-running it upgrades in place and keeps data and settings. Options:--lan,--listen,--version,--from FILE(offline), and--no-service. - Static Linux release archives (x86_64 and arm64, musl), built by
scripts/package-release.sh. - A release workflow. On a
v*tag it builds both architectures and runs the installer end to end on a real systemd runner: fresh install, setup code, health with the build's commit, and upgrade in place. Only then does it publish a GitHub release whose notes come fromCHANGELOG.md. Pull requests that touch the installer run the same proof without publishing. docs/install.md, written for operators: install, browser setup, the first day (people → program → publish → enroll → assign → session → evaluation), upgrading, backups and restore, day-to-day commands, removal, and running without systemd.- An in-app "Getting started" checklist on the administrator's home. It shows the seven first-day steps, each linked to where it is done and ticked from live counts (
GET /api/getting-started,manage_usersonly, counts only). It disappears once every step is done.
Scope
- In scope: the above.
- Out of scope:
- Windows and macOS packages.
- Container images.
- Built-in HTTPS (documented: put a reverse proxy in front).
- Automatic upgrades.
Acceptance
-
releaseworkflow green on the PR: both architectures build, the installer installs and upgrades on a systemd runner, the setup code is printed, and/api/healthreports the build's commit. - The installer passes
shellcheck -s sh. Its--no-servicepath is exercised locally against a locally built archive. - Getting-started progress is covered by integration tests, including the negative control that non-administrators are refused. The checklist renders and updates in a browser test.
- Full required gates and hosted
pr-gatepass. - After the first tag, the published release installs with the documented one-liner.
Depends on #86 (version and build identity) and #84 (the home page the checklist joins).
Authorization: the maintainer's request in the working session ("a brain-numbingly easy way to set this up, all the way through"), with standing permission to carry it through merge and cleanup.
Activity
fix(web): type the setup checklist against its declared state
setup: an optional guided setup for people and a first program
test(e2e): match the wizard's name fields exactly
style: format the example-program test
fix(install): probe the address the service is bound to
ci(release): build and install the static archives on every pull request
docs: record the Linux installation lifecycle as ADR 0023
fix(install): bracket an IPv6 address in the printed setup URL