docker: the image is Debian 12 slim, so the Cursor and Devin CLIs magpie installs at sign-in run in it (#2834, bborn2)
magpie installs a subscription's CLI at sign-in with its vendor's `curl … | bash` (internal/provider/install.go: Cursor, Devin, Grok Build). The distroless image had no curl and no /usr/bin/env (the installers' shebang), so that install couldn't run there, and only Grok Build had a native fallback. bborn2 reported that a Cursor CLI installed by hand failed with "cannot execute: required file not found". The image is now debian:12-slim with ca-certificates and curl. It keeps the nonroot user at uid/gid 65532, HOME and XDG under /config, the healthcheck, and magpie on PATH. Size: 157MB against 82MB for origin/main's image, both built here on arm64. Running a feature magpie offers is worth the 75MB. Changed in review: dropped the branch's GOPROXY build arg, a separate goal. The comments in install.go and install_test.go that said the image has no curl now say "had". docs/reference.md and the site's Docker page (en, zh, ja) say Debian with bash and curl instead of distroless with busybox. Run, with OrbStack's docker: - docker build of this tree and of d783df46c's Dockerfile: 157MB vs 82MB. - docker run of the new image: health "healthy", user nonroot (id 65532). `curl https://cursor.com/install -fsS | bash` exit 0, then `~/.local/bin/cursor-agent --version` printed 2026.10.16-e3cb207. Devin's install.sh installed devin v3000.11.92 (its trailing `devin setup` said "Login canceled" with no terminal, as on any host). `devin --version` printed 3000.11.92. bash and `magpie version` run. - Old image: `which curl` finds none, and /usr/bin/env doesn't exist. - A volume written by the old image (file owned 65532) was read and written by the new image. - gofmt -l clean; go vet darwin, linux (nogui) and windows clean. - Full `go test -tags nogui -timeout 45m ./...`: every package ok except internal/agent and internal/gateway, which timed out at 45m mid-test (TestConnectSaysHow, TestLargeRequestEndpoints) under a load average of about 200 from parallel suites. This commit changes no code those packages build, only comments in internal/provider, which passed (992s), so they weren't rerun. Not tried: a Grok Build install inside the image, and a full in-magpie Cursor/Devin sign-in with a real account in the container. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
committed by
yetone
co-authored by
Claude Opus 5.5
parent
ccb2eea159
commit
ae7dc10ae2
+4
-3
@@ -2230,9 +2230,10 @@ uses the service's gateway.
|
||||
|
||||
### Docker
|
||||
|
||||
`docker build` makes a server image: the terminal-only binary on
|
||||
distroless (`cc`, for the glibc the plugins' Bun needs) with bash and
|
||||
busybox for a terminal in the container (`docker exec -it magpie bash`, or a
|
||||
`docker build` makes a server image: the terminal-only binary on Debian 12
|
||||
slim, with bash and curl, so a vendor's `curl … | bash` installer runs and
|
||||
the CLI it installs (Cursor's, Devin's, Grok Build) finds the glibc it links,
|
||||
as the plugins' Bun does, and a terminal opens in the container (`docker exec -it magpie bash`, or a
|
||||
NAS panel's terminal; `magpie` is on its PATH), run as nonroot,
|
||||
with everything it keeps in a volume at `/config`: magpie's own files
|
||||
(`/config/magpie`), the sign-ins kept where their agent keeps them (HOME is
|
||||
|
||||
Reference in New Issue
Block a user