Kaynağa Gözat

【文档】修正 supervisord 注释与上游检查说明

supervisord 两处注释原称 PATH 继承 entrypoint 注入,实际 entrypoint 未改 PATH(x-cmd 经软链进 /usr/local/bin 接入),改为准确描述;check-upstream.sh 补充镜像源 dist-tags 同步延迟的说明。
PJ568 3 ay önce
ebeveyn
işleme
58702ec3f3
2 değiştirilmiş dosya ile 8 ekleme ve 6 silme
  1. 4 2
      scripts/check-upstream.sh
  2. 4 4
      supervisord.conf

+ 4 - 2
scripts/check-upstream.sh

@@ -14,9 +14,11 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
 CURRENT="$(grep -E '^ARG DSH_VERSION=' "$DIR/Dockerfile" | head -n1 | cut -d= -f2)"
 [ -n "$CURRENT" ] || { echo "错误:未能在 Dockerfile 找到 ARG DSH_VERSION" >&2; exit 1; }
 
-# npm view 返回 dist-tags.latest;registry 由 npm 配置决定(CI 默认 npmjs)
+# npm view 返回 dist-tags.latest;registry 由 npm 配置决定(CI 默认 npmjs 无同步延迟;
+# 若自建 runner 走镜像源如 npmmirror,dist-tags 可能有分钟级同步延迟,检测会略滞后但不误报)
 #
-# npm view returns dist-tags.latest; the registry follows npm config (npmjs by default on CI)
+# npm view returns dist-tags.latest; the registry follows npm config (npmjs by default on CI, no sync delay;
+# self-hosted runners behind mirrors like npmmirror may see minute-level dist-tags lag — detection lags, never false-positives)
 LATEST="$(npm view @deepseek-ai/dsh version)"
 [ -n "$LATEST" ] || { echo "错误:npm view 未返回版本" >&2; exit 1; }
 

+ 4 - 4
supervisord.conf

@@ -33,9 +33,9 @@ serverurl=unix:///var/run/supervisor.sock
 # Note: --trusted-host is not passed (unreliable in rc.6); trustedHosts goes through cordis.patch.yml
 [program:dsh]
 command=/usr/local/bin/dsh --profile web --port 3080
-# PATH 继承 entrypoint 注入(含 x-cmd 工具目录)
+# x-cmd 工具经 entrypoint 软链进 /usr/local/bin(agent bash 的 PATH 白名单固定,接入方式见 entrypoint x-cmd 段)
 #
-# PATH inherits the entrypoint injection (including the x-cmd tool directory)
+# x-cmd tools are symlinked into /usr/local/bin by the entrypoint (the agent bash PATH whitelist is fixed; see the entrypoint's x-cmd section)
 user=node
 environment=HOME="/home/node"
 stdout_logfile=/dev/stdout
@@ -51,9 +51,9 @@ stopwaitsecs=30
 # Caddy basic auth reverse proxy
 [program:caddy]
 command=/usr/bin/caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
-# PATH 继承 entrypoint 注入(含 x-cmd 工具目录)
+# x-cmd 工具经 entrypoint 软链进 /usr/local/bin(agent bash 的 PATH 白名单固定,接入方式见 entrypoint x-cmd 段)
 #
-# PATH inherits the entrypoint injection (including the x-cmd tool directory)
+# x-cmd tools are symlinked into /usr/local/bin by the entrypoint (the agent bash PATH whitelist is fixed; see the entrypoint's x-cmd section)
 user=node
 environment=HOME="/home/node",XDG_DATA_HOME="/home/node/.local/share"
 stdout_logfile=/dev/stdout