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:
1 parent
a28a831a14
commit
a538ab75dd
7 files changed
+365
-31
No files matched your search
+12
-1
@@ -8,7 +8,8 @@
|
||||
# FAKE_BOOT_PW the password that gets a 200; anything else gets a 401
|
||||
# FAKE_BOOT_CODE force a code (404, 000, 500 ...) whatever the password
|
||||
# FAKE_BWS_SUMS match (default) | mismatch | absent
|
||||
# FAKE_FAIL=curl:deb | curl:chezmoi | curl:fzf fail just that one download
|
||||
# FAKE_FAIL=curl:deb | curl:chezmoi | curl:fzf | curl:docker
|
||||
# fail just that one download
|
||||
|
||||
_fb=$(dirname "$0") # the fakebin directory
|
||||
url=; out=; prev=; readcfg=0
|
||||
@@ -46,6 +47,16 @@ case $url in
|
||||
installer chezmoi "\$HOME/.local/bin"; exit 0 ;;
|
||||
*astral.sh/uv/install.sh*)
|
||||
installer uv "\$HOME/.local/bin"; exit 0 ;;
|
||||
*get.docker.com*)
|
||||
# The vendor's convenience script. It installs the engine and both plugins
|
||||
# in one pass, so the stand-in drops a single `docker` fake -- `docker
|
||||
# buildx` and `docker compose` are subcommands of that binary, not separate
|
||||
# ones. Through emit, because the caller downloads this to a file and runs
|
||||
# the file rather than feeding it to a shell through a pipe: POSIX sh has no
|
||||
# pipefail, so the pipe form cannot tell a failed download from a good one.
|
||||
# FAKE_FAIL=curl:docker is that download failing.
|
||||
[ "$mode" = docker ] && exit 22
|
||||
installer docker "\$HOME/.local/bin" | emit; exit 0 ;;
|
||||
*go.dev/VERSION*)
|
||||
echo go1.99.0; exit 0 ;;
|
||||
*api.github.com*)
|
||||
|
||||
Reference in new issue
Block a user