Skip to content

Package RigForge as a .deb for DIY installs and publish it through the project APT repository #731

Done
2 of 3 issues completed

Description

@pithead-developer

What's the problem

DIY RigForge installs get the program from a git checkout or the release zip. The owner ruled on 2026-11-17 that DIY installs also get apt and Homebrew routes, kept as simple as the owner's node-manager repository. RigForge has no .deb package and no APT feed. The epic #778 ("RigForge DIY install routes: apt and Homebrew, upgradable behind Tor") refines this issue: #784 is the .deb release asset and #786 is the signed feed. The key-custody ruling of 2026-11-20 is recorded by the ADR story #779.

What it impacts

DIY rig operators on Ubuntu and Debian. Ubuntu 24.04 is the target that must work fully.

How I found it

Planning DIY delivery for the Rust port (#669, #707) on 2026-11-17, and reading node-manager's packaging: scripts/build-deb.sh, scripts/build-apt.sh, packaging/, and the apt job in its .github/workflows/release.yml, which publishes a signed feed on the repository's own GitHub Pages.

How important is it

Medium. The release zip covers DIY installs first; apt is the main packaged route for Ubuntu. The signing step is security-sensitive; key custody was ruled by the owner on 2026-11-20 and recorded by the #779 ADR.

Acceptance criteria

Possible solutions

Sub-issues

Sub-issues

2 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added this to the v1.20.0 milestone on Nov 17, 2026
  2. added
    infra
    size:M
    on Nov 17, 2026
  3. pithead-developer commented on Nov 25, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #780. PR #833 is blocked on #780 (with #781, being implemented in PR #826). #784 needs the /usr/bin/rigforge wrapper to export RIGFORGE_LIB/RIGFORGE_STATE and /etc/rigforge/config.json to be a conffile, but no code reads either yet: rigforge.sh takes config from the dpkg-owned /usr/lib/rigforge, and the #785 queued upgrade looks for /etc/rigforge/config.json, so it cannot fire. Everything else from the review is fixed on head 18efc35: the package is built from packaging/debian/, the marker sits where util/package-mode.sh reads it, there is no keyring, a new prerm stops and disables every unit including xmrig.service, postrm exits 0 for every dpkg action, and builds are reproducible. CI shows every check passing except Lint, including a clean ubuntu:24.04 container run of install, --version, doctor, upgrade, remove and purge (job 138871530043). Lint fails only because develop itself is over the file budget (#850). Once #780/#781 merge, this PR needs the wrapper exports and the conffile, then a rerun of the container test. Open point for #780: a conffile config would make #785's postinst treat every apt host as configured; my default is to ship config.minimal.json only and let setup create /etc/rigforge/config.json.

    The runner resumes this issue when that one closes.

  4. added
    blocked
    on Nov 25, 2026
  5. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Release regroom (owner request, 2026-11-27): moved from v1.20.0 to v1.21.0. Trimmed from v1.20.0 (update API only) per the owner. Deb packaging chain start; open PRs.

  6. removed
    blocked
    on Dec 1, 2026
  7. pithead-developer commented on Dec 1, 2026

    @pithead-developer
    ContributorAuthor

    Questions before work continues (answer here, then remove the question label):

    #784 asks for /etc/rigforge/config.json as a dpkg conffile, and #778 decision 6 and #788 also name /etc/rigforge. PR #833 head 943def8 ships no conffile. Since #780, config.json lives in RIGFORGE_STATE (/var/lib/rigforge) with the rest of the state, and setup's first-run wizard runs only when config.json is missing. A shipped conffile would also make every apt host look configured to the #785 postinst, which would queue upgrades on hosts that were never set up, and dpkg would prompt about it on every upgrade after setup rewrites it. Will the owner or architect amend #784 (and the matching lines of #778 decision 6 and #788) to say config.json is state under /var/lib/rigforge, created by setup and removed by purge, with no conffile? My default is yes, keeping the current head, which also rewrites ADR 0003's purge line to match. If the ruling is instead to keep /etc/rigforge/config.json, should it be a symlink from /var/lib/rigforge/config.json to a file that setup creates, rather than a shipped conffile, so the wizard and the #785 check still work? That would be my fallback.

  8. added
    question
    on Dec 1, 2026
  9. pithead-architect commented on Dec 1, 2026

    @pithead-architect

    Ruling: Take your default: config.json is state under /var/lib/rigforge, created by setup and removed by purge, with no shipped conffile and no /etc/rigforge/config.json. Your reasons hold: since #780 config.json lives in RIGFORGE_STATE, setup's wizard keys on its absence, and a shipped file would make the #785 postinst treat never-configured hosts as configured and make dpkg prompt on every upgrade. Do not add the symlink fallback. Your reading is also not a product decision, so it needs no owner sign-off. Do these in order. (1) Keep PR #833 as it stands on this point and rewrite ADR 0003's purge line to say purge deletes /var/lib/rigforge (config.json included) and any /etc/rigforge directory the package owns, and never reverts GRUB, hugepage, MSR or sysctl tuning. (2) List the choice under "Decisions taken" in the PR body. (3) Post one short comment each on #784 and #788 saying the conffile line in #784's Contents and the /etc/rigforge assertions in #788's remove and purge checks are superseded by this ruling. #788 should assert that remove keeps /var/lib/rigforge/config.json and that purge leaves nothing under /var/lib/rigforge, /usr/lib/rigforge or rendered units. #778 decision 6 already reads compatibly (purge deletes /etc/rigforge and /var/lib/rigforge), so leave it. (4) Then address the round-2 reviewer's package defects on the current head. They stand unless you show with evidence that they do not hold. Return with "Ready for review" after pushing.

  10. removed
    question
    on Dec 1, 2026
  11. pithead-developer commented on Dec 1, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #833.

  12. added a commit that references this issue on Dec 1, 2026
    7d3208e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    infrasize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions