Skip to content

docs: compare droot with more tools, and deploy with stretcher to a service run by systemd alone - #74

Merged
yuuki merged 4 commits into
masterfrom
agent/friendly-mccarthy-y92idx
Nov 19, 2026
Merged

yuuki merged 4 commits into
masterfrom
agent/friendly-mccarthy-y92idx

Conversation

@yuuki

@yuuki yuuki commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

What and why

Four documentation changes.

1. documentation/comparison.md: more tools. The page compared droot in detail with enroot only, and named systemd and Podman with Quadlet. This adds the other tools that a reader looking for "droot-like" software will find, and says how each differs from droot:

  • systemd's importctl pull-oci (systemd 260 and later): it gets an OCI image from a registry for systemd-nspawn, machinectl or portablectl, so it overlaps with droot export. The text states the differences: it verifies only the HTTPS certificates, and it does not apply the image's configuration to a unit.
  • HPC container runtimes: Charliecloud, Apptainer, udocker and Sarus. They are made for unprivileged users of clusters, not for services run by root. udocker's own documentation says that it should not be run by privileged users.
  • Tools that turn an image into a root file system: undocker, skopeo with umoci, and docker export.

The facts come from each tool's documentation in November 2026 (for example, importctl(1) says "Added in version 260" for pull-oci). The section says so, like the enroot section does.

2. documentation/comparison.md: a positioning figure. At the top of the page, a figure places the tools by two properties: how much they isolate the application from the host (horizontal), and who usually runs them (vertical: unprivileged users running jobs, or root and systemd running services). droot is alone in the quadrant of simple runtimes for services. The text under the figure says that the places are a judgement from the default behaviour of each tool, not measurements. documentation/images/positioning.svg is the source of positioning.png (rendered with Chromium at 2x).

3. documentation/deployment.md: stretcher with systemd alone. stretcher only runs commands, and systemd starts the application. A manifest can therefore deploy a service that systemd runs by itself (RootDirectory=, section 7). The new subsection "With systemd alone", at the end of "Deploying with stretcher", shows the post commands: switch current, write the drop-in with droot unit, systemctl daemon-reload, restart. It also says what a failed droot unit leaves, how to roll back, and why the deletion of old releases stays safe. The note "capze and dewy do not do it for you" in section 7 now points to it.

dewy is not covered: dewy starts the application as its own child process (to pass the listening socket on), so the settings of a systemd unit do not apply to it.

4. documentation/deployment.md: capze deploy in section 7. The example of section 7 still ran capze --keep 5 ..., the command line of capze 0.2, which the capze that follows 0.2 no longer accepts. It now runs capze deploy --keep 5 ..., like section 4 since #71.

How it was tested

Documentation only: no code, flags or help texts changed, so make check and make docs are not affected. I checked the links and the quoted statements of comparison.md against the upstream documentation, and looked at the rendered figure. The stretcher manifest was not run on a server.

Checklist

  • make check passes (and make test-root / make integration-test for changes to run, umount or export). Not run: the change touches no code.
  • Behaviour changes come with tests. No behaviour change.
  • User-visible changes are described in CHANGELOG.md (under "Unreleased") and in the README or the documentation. This change is documentation only; no CHANGELOG entry was added.
  • The compatibility contracts (flags, archive format, release assets, see AGENTS.md) are unchanged, or the change is called out above.
  • Paths inside the container root are resolved with osutil.Root. Not applicable.
  • No new dependency, or LICENSE_OF_DEPENDENCIES.md is updated.
  • Changes written with an AI assistant were reviewed by a human.

🤖 Generated with Claude Code

https://claude.ai/code/session_012me44AQP66fnntBNsKvieH

…xtractors)

Add to documentation/comparison.md systemd's importctl pull-oci, the HPC
container runtimes Charliecloud, Apptainer, udocker and Sarus, and the
tools that turn an image into a root file system (undocker, skopeo with
umoci, docker export), with how each differs from droot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012me44AQP66fnntBNsKvieH
@github-actions

This comment has been minimized.

stretcher only runs commands and systemd starts the application, so a
manifest can write the drop-in of droot unit after the switch of current,
reload systemd and restart the service. Document the post commands, what a
failed droot unit leaves, the rollback and the deletion of old releases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012me44AQP66fnntBNsKvieH
@yuuki yuuki changed the title docs: compare droot with more tools (importctl, HPC runtimes, image extractors) docs: compare droot with more tools, and deploy with stretcher to a service run by systemd alone Nov 19, 2026
@github-actions

This comment has been minimized.

The figure in documentation/comparison.md places the tools by how much they
isolate the application from the host and by who usually runs them
(unprivileged users running jobs, or root and systemd running services).
The SVG is the source of the PNG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012me44AQP66fnntBNsKvieH
@github-actions

This comment has been minimized.

Section 7 of documentation/deployment.md still ran capze with the command
line of capze 0.2, which the capze that follows 0.2 no longer accepts.
Section 4 was updated in #71; use the same capze deploy here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012me44AQP66fnntBNsKvieH
@github-actions

Copy link
Copy Markdown

Code Complexity

master (effb3c3) #74 (f60d652) +/-
Function count 746 746 0
Cognitive: total 2885 2885 0
Cognitive: max 30 30 0
Cognitive: median 2 2 0
Cognitive: p90 11 11 0
Cyclomatic: total 3086 3086 0
Cyclomatic: max 25 25 0
Cyclomatic: median 3 3 0
Cyclomatic: p90 10 10 0

Reported by octocov

@yuuki
yuuki merged commit def1dc6 into master Nov 19, 2026
14 checks passed
@yuuki
yuuki deleted the agent/friendly-mccarthy-y92idx branch November 19, 2026 12:42
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.

2 participants