docker: the image runs on Debian 13, so an npm package's glibc 2.38 binary starts
Passings_z on X: an MCP server in the Library never started in the Docker image, and the hub tried it again every minute. The server is arcane-rmcp (dinglebear-ai/rarcane): its npm launcher runs a Rust binary linked against glibc 2.38, and the image was debian:12-slim with glibc 2.36, so it died at once with "GLIBC_2.38 not found" and npx exited 1. The runtime base is now debian:13-slim (glibc 2.41) and Node is taken from node:24.22.3-trixie-slim to match. ca-certificates, curl, groupadd/useradd and bash are all in trixie under the same names. The Docker docs (en, zh, ja) and docs/reference.md say Debian 13; the search indexes and llms-full.txt are rebuilt (node docs-index.mjs). The hub already shows the reason: the Library's check reports "exited (1)" with the server's last stderr line, which here is the GLIBC line, so nothing there changes. Run (linux/amd64, podman 4.9.3 in the magpie-desktop WSL distro): - built the image from this tree; ldd --version says 2.41, Debian 13.7 - `npx -y arcane-rmcp --version` (from npmmirror: npmjs unpublished it on 08-03): ghcr.io/yetone/magpie:latest (glibc 2.36) exits 1 with "version `GLIBC_2.38' not found"; the new image prints "rarcane 0.4.4", exit 0 - docker.yml's smoke steps by hand: serve answers on 3425 (401 for a keyless request from the host, as podman's network makes it remote), magpie healthcheck ok, node v24.22.3, npm/npx 11.19.1, uv/uvx 0.13.7, python3/python/curl on PATH as nonroot (65532), chat/completions 401 with an error JSON, `provider add` into the volume works - mote: node --test search/worker/docker-tags (50 pass), go test ./internal/testenv (docs-index sums) ok Not tried: linux/arm64 (no emulation on the Linux box, no docker on mote or mica); docker.yml builds and smoke-tests it on a native arm runner. A volume made by the Debian 12 image was not reused across the upgrade by hand; uid 65532 and the /config layout are unchanged.
This commit is contained in:
+10
-7
@@ -16,10 +16,10 @@ RUN CGO_ENABLED=0 go build -tags nogui -trimpath \
|
||||
# The runtimes the Library's MCP servers start with: npx (most of them,
|
||||
# chrome-devtools among them: "npx not found", Passings_z on X), node and
|
||||
# npm (magpie installs an npx server's package and runs it with node,
|
||||
# mcp_npx.go), and uvx. Node is the official build, for Debian 12's glibc;
|
||||
# uv's static binaries download the Python a uvx server needs into the
|
||||
# volume the first time.
|
||||
FROM node:24.22.3-bookworm-slim AS node
|
||||
# mcp_npx.go), and uvx. Node is the official build, taken from the image
|
||||
# of the same Debian release as the one below; uv's static binaries
|
||||
# download the Python a uvx server needs into the volume the first time.
|
||||
FROM node:24.22.3-trixie-slim AS node
|
||||
FROM ghcr.io/astral-sh/uv:0.13.7 AS uv
|
||||
|
||||
# Debian, not distroless: a subscription's CLI is installed with its
|
||||
@@ -27,10 +27,13 @@ FROM ghcr.io/astral-sh/uv:0.13.7 AS uv
|
||||
# installs is a glibc binary that needs a full system's loader and
|
||||
# libraries. distroless with a copied curl ran the installer, but Cursor's
|
||||
# cursor-agent then failed with "cannot execute: required file not found".
|
||||
# Debian 12 has the glibc, libgcc and libstdc++ the plugins' Bun needs too,
|
||||
# and bash for a NAS panel's terminal. nonroot keeps distroless's uid 65532,
|
||||
# Debian has the glibc, libgcc and libstdc++ the plugins' Bun needs too,
|
||||
# and bash for a NAS panel's terminal. Debian 13, not 12: an npm package's
|
||||
# own binary built on a newer system needs glibc 2.38 or later, and Debian
|
||||
# 12's 2.36 crashed an MCP server's Rust binary at once (Passings_z on X,
|
||||
# "GLIBC_2.38 not found"); 13 has 2.41. nonroot keeps distroless's uid 65532,
|
||||
# so a volume made by an older image stays writable.
|
||||
FROM debian:12-slim
|
||||
FROM debian:13-slim
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates curl \
|
||||
|
||||
+1
-1
@@ -3773,7 +3773,7 @@ uses the service's gateway.
|
||||
|
||||
### Docker
|
||||
|
||||
`docker build` makes a server image: the terminal-only binary on Debian 12
|
||||
`docker build` makes a server image: the terminal-only binary on Debian 13
|
||||
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
|
||||
|
||||
@@ -29,7 +29,7 @@ e8f03915aaf12c386bd6254ccfacbe6dc7ae1544e0080bde67ce31b048a50ee0 docs/copilot.h
|
||||
c2795244d9df800736d5be9042a45bca9358800b27521723e9a4f0604e7a8c43 docs/crush.html
|
||||
d042047b8d4e480702a6986c52135154ded05388ff82e63f215d652ea55f0c6e docs/cursor-private-inference.html
|
||||
cf2645267d38d072f0467a02f6888b3a8848b27c3b14fa2461cda904ab07b793 docs/deepseek.html
|
||||
f792584f36b69f91df81db8b7509400cb6277258473581c11638c15ef2c3eacf docs/docker.html
|
||||
6c802a193f8179439f0a7415e7b8f8746abbef20e9a26e6a0ceb3c26d6b5afa0 docs/docker.html
|
||||
0df2e589a2a8d2f0a91344d79ba15eff4a63dbd4d26e9a24601fec9c61a1d90e docs/droid.html
|
||||
4ea324a67bf788a62585120a5685a66c977f1fccd7bf2ca39a4f5f6dae63fa04 docs/ds-bot.html
|
||||
1e11349a9456e75797816776f8f420de351683df7d2aaf09c18688aaf5d781b5 docs/empryo.html
|
||||
@@ -80,7 +80,7 @@ f3b062404993ee53684e2282e28c21af93f13003e7d09a13e0a06efcf36d1634 docs/ja/craft-
|
||||
07f679f11a97fa7e75130c5defef055b1abc142dbd15510b6ae9b67845817944 docs/ja/crush.html
|
||||
478cf1f70d9a9d9730931c785aee1f72e38bc27b62b3c429fed5ef6e97b8b406 docs/ja/cursor-private-inference.html
|
||||
1dce97081a8170168bc329f4f6c5cf555a207a8a90d375cb19de4c7ec9aba488 docs/ja/deepseek.html
|
||||
7525e8f57a909cf2f35bfef871d5b61f3f64c870b63663ddd4af7e3e33e532c8 docs/ja/docker.html
|
||||
807d37bed5d9cec08ac7a241520a772e3a85c2d718dd42ce86036da592e136bf docs/ja/docker.html
|
||||
e1b20bd4d38845588252a3b083f13517309bea5fbc4c1961f1a9a0291a870a44 docs/ja/droid.html
|
||||
82360502ec915c659a80d388eeb3fe359e68d65a86b5e4dcb46fbbdeefc488c7 docs/ja/ds-bot.html
|
||||
aa1c027a828a9f7cae0297aeb86e8d91759bf2cacb10875e56c1fe49f162a40c docs/ja/empryo.html
|
||||
@@ -279,7 +279,7 @@ abf1ef4b505f95b1b1cb32c79ae311f236c8c67c3474e00fe779359a650238d4 docs/zh/copilo
|
||||
a5b7151d7c21e4bb3f601c0c399d0e5a8de051ec7e342c552fd3883f589b66f4 docs/zh/crush.html
|
||||
939171a143b339969019c6fa2cba7f983cb83220b21e08fcb2e49f958fcb7fd3 docs/zh/cursor-private-inference.html
|
||||
69752603509b92a8c0dcda461b71b1e02e669de2f790f6e1ad50922090971dd2 docs/zh/deepseek.html
|
||||
c6054685a8cd97ad99e27a200d438a1305a87a1d2bc9b18e2465333a68a542fe docs/zh/docker.html
|
||||
1210fff1dd368dffaa75d5a8dcbc95ef560a4be1cfe73d59c07cf0e7cdc9f8b1 docs/zh/docker.html
|
||||
d282d59587baab9e6cdd4c1d36b69b9ceea9e2cd0b49d1537642fd529c7816a8 docs/zh/droid.html
|
||||
e8bc868847eede8bcdf157f13e2508f91c790baee914cb3c8f2b1801bf2c5fc1 docs/zh/ds-bot.html
|
||||
2665b5de3bc00d5a7f34ed318dcecc76cd136479ecd239f2623f76134f826850 docs/zh/empryo.html
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
<tr><td><b>Volume</b></td><td><code>/config</code>: providers, keys, sign-ins, plugins and usage</td></tr>
|
||||
<tr><td><b>User</b></td><td>nonroot (uid 65532)</td></tr>
|
||||
</table></div>
|
||||
<p>The image holds magpie’s terminal-only build on Debian 12 slim, with bash for a terminal in the container and curl for the installers of the CLIs some subscriptions sign in with (Cursor, Devin, Grok Build). It runs <code>magpie serve</code> (the gateway alone) unless given another command. The container finds no agents to wire, so magpie in it is a gateway: the agents that use it run elsewhere.</p>
|
||||
<p>The image holds magpie’s terminal-only build on Debian 13 slim, with bash for a terminal in the container and curl for the installers of the CLIs some subscriptions sign in with (Cursor, Devin, Grok Build). It runs <code>magpie serve</code> (the gateway alone) unless given another command. The container finds no agents to wire, so magpie in it is a gateway: the agents that use it run elsewhere.</p>
|
||||
|
||||
<h2 id="run"><a class="anchor" href="#run">Run it</a></h2>
|
||||
<p>Run it with the browser UI, a key for that page you keep across restarts, and both ports on the host’s loopback only:</p>
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
<tr><td><b>ボリューム</b></td><td><code>/config</code>:プロバイダ、キー、サインイン、プラグイン、使用量</td></tr>
|
||||
<tr><td><b>ユーザー</b></td><td>nonroot(uid 65532)</td></tr>
|
||||
</table></div>
|
||||
<p>イメージに入っているのはターミナル専用ビルドの magpie で、Debian 12 slim をベースに、コンテナ内でターミナルを使うための bash と、一部のサブスクリプションのサインインに必要な CLI(Cursor、Devin、Grok Build)をインストールするための curl を含みます。コマンドを指定しなければ <code>magpie serve</code>(ゲートウェイのみ)を実行します。コンテナ内には設定するエージェントがないので、ここでの magpie はゲートウェイです。それを使うエージェントはほかのマシンで動きます。</p>
|
||||
<p>イメージに入っているのはターミナル専用ビルドの magpie で、Debian 13 slim をベースに、コンテナ内でターミナルを使うための bash と、一部のサブスクリプションのサインインに必要な CLI(Cursor、Devin、Grok Build)をインストールするための curl を含みます。コマンドを指定しなければ <code>magpie serve</code>(ゲートウェイのみ)を実行します。コンテナ内には設定するエージェントがないので、ここでの magpie はゲートウェイです。それを使うエージェントはほかのマシンで動きます。</p>
|
||||
|
||||
<h2 id="run"><a class="anchor" href="#run">起動する</a></h2>
|
||||
<p>ブラウザ UI 付きで、再起動しても変わらないページ用のキーを渡し、両方のポートをホストのループバックだけに公開して起動します。</p>
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
<tr><td><b>数据卷</b></td><td><code>/config</code>:供应商、密钥、登录、插件和用量</td></tr>
|
||||
<tr><td><b>用户</b></td><td>nonroot(uid 65532)</td></tr>
|
||||
</table></div>
|
||||
<p>镜像里是 magpie 的纯终端版本,基于 Debian 12 slim,带 bash,方便在容器里开终端,也带 curl,用来安装部分订阅登录时需要的 CLI(Cursor、Devin、Grok Build)。不指定命令时运行 <code>magpie serve</code>(只有网关)。容器里找不到需要配置的 Agent,所以这里的 magpie 是一个网关:用它的 Agent 运行在别的机器上。</p>
|
||||
<p>镜像里是 magpie 的纯终端版本,基于 Debian 13 slim,带 bash,方便在容器里开终端,也带 curl,用来安装部分订阅登录时需要的 CLI(Cursor、Devin、Grok Build)。不指定命令时运行 <code>magpie serve</code>(只有网关)。容器里找不到需要配置的 Agent,所以这里的 magpie 是一个网关:用它的 Agent 运行在别的机器上。</p>
|
||||
|
||||
<h2 id="run"><a class="anchor" href="#run">运行</a></h2>
|
||||
<p>带 Web 界面运行,给页面一个重启后不变的 key,两个端口都只发布在宿主机的回环地址上:</p>
|
||||
|
||||
@@ -10779,7 +10779,7 @@ Run magpie on a server or a NAS that has no desktop: its gateway serves your mod
|
||||
| **Volume** | `/config`: providers, keys, sign-ins, plugins and usage |
|
||||
| **User** | nonroot (uid 65532) |
|
||||
|
||||
The image holds magpie’s terminal-only build on Debian 12 slim, with bash for a terminal in the container and curl for the installers of the CLIs some subscriptions sign in with (Cursor, Devin, Grok Build). It runs `magpie serve` (the gateway alone) unless given another command. The container finds no agents to wire, so magpie in it is a gateway: the agents that use it run elsewhere.
|
||||
The image holds magpie’s terminal-only build on Debian 13 slim, with bash for a terminal in the container and curl for the installers of the CLIs some subscriptions sign in with (Cursor, Devin, Grok Build). It runs `magpie serve` (the gateway alone) unless given another command. The container finds no agents to wire, so magpie in it is a gateway: the agents that use it run elsewhere.
|
||||
|
||||
## Run it
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user