fix: docker installs from Docker, never brew; VM guest rows

The docker-ce, buildx and compose rows named apt packages that only exist in
Docker's own repository, so on stock Ubuntu they fell through to brew. They
are a script channel now: get.docker.com downloaded to the run's workdir and
run from the file on Linux, Docker Desktop's DMG installer on macOS. One
install serves all three rows; the plugin rows report its outcome.

Also adds virt/guest-agent and virt/spice-vdagent, with tests and README.
This commit is contained in:
bcherb2 committed 2026-11-18 01:41:43 -05:00
1 parent a28a831a14
commit a538ab75dd
7 files changed
+365 -31

No files matched your search

+28 -3
View File
@@ -166,12 +166,37 @@ otherwise brew would still be missing when the rows needing it are attempted.
The installer probes `apt-cache policy` before it batches, and asks for the
installation *candidate* rather than merely whether the name is known: on stock
Ubuntu `apt-cache show docker-ce` prints nothing and **exits 0**, so an
existence test kept it in the batch, apt refused all thirty packages at once,
and the brew fallback was never reached. One unavailable name took thirty
Ubuntu `apt-cache show nvidia-container-toolkit` prints nothing and **exits 0**,
so an existence test kept it in the batch, apt refused all thirty packages at
once, and the brew fallback was never reached. One unavailable name took thirty
installable ones down with it. A name with no candidate now moves to the brew
column instead.
**Docker is the case where that fallback was the wrong answer.** `docker-ce`,
`docker-buildx-plugin` and `docker-compose-plugin` exist only in Docker's own
apt repository, which nothing here configures — so all three had no candidate,
and the apt-then-brew rule sent a system daemon looking at Homebrew. The three
rows are a `script` channel now: on Linux Docker's own `get.docker.com`, the
vendor's supported route, which adds the repository and installs the engine
*and both plugins* in one pass; on macOS the Docker Desktop `.dmg` and its own
`Contents/MacOS/install`. The group still shows three members and still carries
its invasive warning, but `docker/docker-ce` is the row that does the work and
the other two report **its** outcome — "covered by" when it succeeded, "not
attempted" when it did not. What lands is the compose **plugin** —
`docker compose`. The deprecated standalone `docker-compose` v1 is never
fetched from anywhere.
Neither installer is piped into a shell. POSIX `sh` has no `pipefail`, so
`curl … | sh` exits with the *shell's* status: a download that 404s or is cut
off half way through reports success, the error path is unreachable, and
whatever fragment did arrive has already run as root. Both are downloaded into
the run's own `mktemp -d` directory, checked non-empty, and then executed from
there — and the `.dmg` is mounted read-only at a path inside that directory
rather than at `/Volumes/Docker`, which is a fixed name anyone able to mount an
image can occupy first. The presence check asks `docker buildx version` and
`docker compose version`, not merely whether a `docker` exists: `docker.io` and
`podman-docker` satisfy the latter while shipping neither plugin.
`@spec` carries the argument a channel needs but the package name cannot supply
— the scoped npm name, the flatpak app id, the `.deb` source. It defaults to the
package name.