Skip to content

setup: brain-dead-simple install, upgrade, and first-day walkthrough #87

Closed

Description

@TusanHomichi

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 sh downloads a release for the machine and verifies its SHA-256. It installs /usr/local/bin/consolebook, a consolebook service 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 from CHANGELOG.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_users only, 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

  • release workflow green on the PR: both architectures build, the installer installs and upgrades on a systemd runner, the setup code is printed, and /api/health reports the build's commit.
  • The installer passes shellcheck -s sh. Its --no-service path 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-gate pass.
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions