Skip to content

Rewrite docker's Darwin deploy path against the API that exists - #81

Merged
David-Noble-at-work merged 2 commits into
developfrom
feature/docker.devlore-package
Aug 28, 2026
Merged

David-Noble-at-work merged 2 commits into
developfrom
feature/docker.devlore-package

Conversation

@David-Noble-at-work

@David-Noble-at-work David-Noble-at-work commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

A clean-slate rewrite of the docker package, starting with Darwin. Planned in
NobleFactor/devlore-cli docs/plans/docker.devlore-package.md.

Why a rewrite and not a repair

Every phase script in the previous package called an API that no longer exists:

Written in the package Reality
plan.package.install("docker-ce", "docker-ce-cli") Namespace is pkg; it takes a list, not varargs
plan.verify(name, check=…, optional=True) No Verify method on any provider — all four verify.star files were entirely these calls
plan.file.write(path=…, content=…) It is plan.file.write_text(destination_path=…, content=…, mode=…)
plan.user.add_to_group(user, "docker") No user provider
plan.download(url, dest) appnet.download(url) returns bytes; no dest form
plan.notify(…) Does not exist
Upgrade/install.star UpgradePhaseOrder is {prepare, upgrade, migrate, verify} — install is not an upgrade phase

Nothing reads .star contents in CI, so this passed continuously. Chartered as
NobleFactor/devlore-cli#721.

Darwin is Colima, for licensing

The previous Darwin path installed Docker Desktop from a DMG and was blocked on primitives that do
not exist. The bash that actually deploys uses Colima, and the reason is licensing: Docker
Desktop requires a paid subscription above 250 employees or $10M revenue, and OrbStack has a paid
commercial tier. A Darwin package built on Desktop hands every customer a licence obligation that
scales with their headcount.

So this package ensures a runtime exists. It never displaces an installed Desktop or OrbStack —
the goal is to avoid putting a licensed product on a machine, not to prefer Colima on its merits.
Decommission is asymmetric for the same reason, and that falls out of the receipt boundary rather
than needing a feature flag.

What is added

  • lifecycle.yaml — rewritten. Darwin only; purge-data the sole feature; licensing rationale in notes.
  • README.md — rewritten. Tribal knowledge with its reasons, including why binary presence is the
    wrong runtime check and why the Colima flags matter.
  • Darwin/Deploy/install.star — the runtime guard, built as a decision tree because a phase script's
    runtime is hermetic and cannot interrogate the host at plan time.
  • Darwin/Deploy/provision.star — colima start with --vm-type vz --mount-type virtiofs --vz-rosetta. The source bash passes only --cpu 2 --memory 4, leaving VM and mount type at
    defaults; those flags are the difference people usually mistake for Colima being slow.
  • Darwin/Deploy/verify.star — docker info then docker run --rm hello-world.

No Darwin/Deploy/prepare.star: Darwin has no prepare work, and an empty phase is worse than an
absent one.

Every branch is an invocation and there are no lambdas anywhere, so these graphs write their
receipts — see NobleFactor/devlore-cli#720.

What is removed — 37 files

Linux.Debian/, Linux.Fedora/, Windows/, Darwin/Decommission/, Darwin/Upgrade/, and
Darwin/Deploy/prepare.star. All of it targets the dead API above.

Linux.Debian returns rewritten — it is where the fuller mechanism lives: apt receipts, a real
systemd service through plan.service.*, seven conflicting packages removed under a dpkg-query
guard, and hardware-gated verification that treats an ODROID missing its cgroup v1 boot argument as
degraded rather than failed.

Linux.Fedora is not coming back until the platform router wires a dnf leaf. Driving it through
plan.shell.exec would work but forfeits receipts, which would defeat the decommission proof.
Windows is viable later — winget is wired — but no source script covers it.

Known limitation, being fixed next

install.star detects existing runtimes by path (/Applications/OrbStack.app,
/Applications/Docker.app). The executing graph is fsroot-confined to its own directory, so those
absolute paths are not reachable and the guard will not work as written. The replacement is
docker info answering, which is the semantically correct predicate anyway — binary presence is
satisfied by a dangling shim, and a dormant Docker.app can sit beside a live OrbStack serving
nothing.

@David-Noble-at-work David-Noble-at-work self-assigned this Aug 28, 2026
@David-Noble-at-work
David-Noble-at-work merged commit ed2511a into develop Aug 28, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the feature/docker.devlore-package branch August 28, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant