## 問題 Debian trixie 套件庫更新後,`feat/image-only-cli` 上的映像建置在 CI 失敗。PR #84 的以下檢查都因此失敗,與 #84 的改動無關: - `Hermes Tools Verify`、`OpenClaw Tools Verify`(所有架構) - `PR build and direct managed startup`(Hermes、OpenClaw) 本機先前建置成功,是因為用到 Docker 快取。 ## 原因 ### 1. `Dockerfile.base` 系列鎖定的版本已不在套件庫 以下檔案鎖定的版本已下架:`Dockerfile.base`、`agents/hermes-01x/Dockerfile.base`、`agents/hermes/Dockerfile.base`、`agents/langchain-deepagents-code/Dockerfile.base`。 | 套件 | 鎖定版本 | 套件庫現有版本 | |------|----------|----------------| | `libc6`、`libc-bin` | `2.41-12+deb13u4` | `2.41-12+deb13u5` | | `zlib1g-dev` | `1:1.3.dfsg+really1.3.1-1+b1` | `1:1.3.dfsg+really1.3.1-1+deb13u1` | | `ca-certificates` | `20250419` | `20250419+deb13u1` | | `dos2unix` | `7.5.2-1` | `7.5.2-1+b1` | | `xz-utils`(`Dockerfile.base`、`agents/langchain-deepagents-code/Dockerfile.base`) | `5.8.1-1+deb13u1` | `5.8.1-1+deb13u2` | ### 2. tools 映像的 `perl-modules` 階段無法安裝編譯工具 `agents/hermes-01x/Dockerfile.tools` 和 `Dockerfile.tools` 的 `perl-modules` 階段會先 hold 基礎映像的受控套件,再安裝 `gcc make libc6-dev dpkg-dev`。 已發布的基礎映像把 `libc6` 鎖在 `2.41-12+deb13u4`,但套件庫只剩 `libc6-dev 2.41-12+deb13u5`,所以 apt 回報: ```text libc6-dev : Depends: libc6 (= 2.41-12+deb13u5) but 2.41-12+deb13u4 is to be installed ``` ### 3. tools 映像最終階段的套件安裝也會失敗 在 Hermes 基礎映像上模擬最終階段的安裝(hold 受控套件,並帶入 `perl-modules` 建出的 `libtext-charwidth-perl`),apt 3.0 解不出相依: ```text chromium : Depends: chromium-common (= 156.0.8078.79-1~deb13u1) but it is not going to be installed ``` 安裝清單明列 `chromium-common=156.0.8078.79-1~deb13u1` 後就解得開。目前 CI 在第 2 點就先失敗,還沒跑到這一步。 ## 驗收 - 四個 `Dockerfile.base` 改鎖套件庫現有的版本,不用 Docker 快取也能建置成功,`PR build and direct managed startup` 通過。 - 兩個 tools 映像不用快取能建置成功,`Hermes Tools Verify`、`OpenClaw Tools Verify` 通過。 - tools 映像的受控套件版本與基礎映像一致,最終階段的版本檢查不放寬。 ## 待決定 第 2 點有兩種修法: - **重建並發布基礎映像:** 改用 `libc6 2.41-12+deb13u5` 重建,再更新 tools 映像的 `BASE_IMAGE` digest。這需要發布新的基礎映像。 - **只改 `perl-modules` 階段:** 從 `snapshot.debian.org` 取得與基礎映像相符的 `libc6-dev 2.41-12+deb13u4`,並用 checksum 鎖定。基礎映像不變;這個階段只在建置時使用,不會進入最終映像。 ## 不在本 issue 範圍 `cli-test-shards (6)` 在 `src/lib/inference/serving/host-local-vllm-selection.test.ts` 逾時 5 秒;本機 1.4 秒通過,需另外觀察。
Activity
fix(images): pass the image checks after the Debian pin update
ci(images): keep the pinned Deep Agents Code PR base