Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
file: ./Dockerfile
platforms: linux/${{ matrix.arch }}
build-args: |
CODEX_CLI_VERSION=${{ steps.meta.outputs.codex_version || '0.149.1' }}
CODEX_CLI_VERSION=${{ steps.meta.outputs.codex_version || '0.151.0' }}
tags: |
${{ env.REGISTRY }}/${{ steps.meta.outputs.image_name }}:${{ matrix.arch }}-${{ steps.meta.outputs.version_tag }}
push: true
Expand All @@ -104,7 +104,7 @@ jobs:
file: ./Dockerfile
platforms: linux/${{ matrix.arch }}
build-args: |
CODEX_CLI_VERSION=${{ steps.meta.outputs.codex_version || '0.149.1' }}
CODEX_CLI_VERSION=${{ steps.meta.outputs.codex_version || '0.151.0' }}
tags: |
${{ env.REGISTRY }}/${{ steps.meta.outputs.image_name }}:${{ matrix.arch }}-${{ steps.meta.outputs.version_tag }}
push: true
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ RUN node --version \
&& mise --version

# Install global npm tools (codex + MCP utilities)
ARG CODEX_CLI_VERSION=0.149.1
ARG CODEX_CLI_VERSION=0.151.0
ENV CODEX_CLI_VERSION=${CODEX_CLI_VERSION}
RUN npm install -g \
@openai/codex@${CODEX_CLI_VERSION} \
Expand Down Expand Up @@ -119,7 +119,7 @@ RUN npx --yes node-gyp rebuild --directory=node_modules/node-pty || true \
# ── Stage 6: Runtime ─────────────────────────────────────────────────
FROM runtime-base AS runtime

ARG CODEX_CLI_VERSION=0.149.1
ARG CODEX_CLI_VERSION=0.151.0
ENV CODEX_CLI_VERSION=${CODEX_CLI_VERSION}

WORKDIR /app
Expand Down
4 changes: 2 additions & 2 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ The same image can serve both a domain root and a proxy subpath (for example, `h

```bash
docker build \
--build-arg CODEX_CLI_VERSION=0.149.1 \
-t codex-webui:0.149.1 .
--build-arg CODEX_CLI_VERSION=0.151.0 \
-t codex-webui:0.151.0 .
```

Nginx must retain `/codex/` in browser-facing URLs and strip it when proxying to the backend. The trailing slashes on both `location` and `proxy_pass` are required:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ Docker Compose 中使用时,`proxy_pass` 改为 `http://codex-webui:8172`,

```bash
docker build \
--build-arg CODEX_CLI_VERSION=0.149.1 \
-t codex-webui:0.149.1 .
--build-arg CODEX_CLI_VERSION=0.151.0 \
-t codex-webui:0.151.0 .
```

Nginx 必须保留浏览器侧的 `/codex/` 前缀,并在转发到后端时将它移除。`location` 和 `proxy_pass` 末尾的 `/` 均不可省略:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
# build:
# context: .
# args:
# CODEX_CLI_VERSION: "0.149.1"
# CODEX_CLI_VERSION: "0.151.0"
ports:
- "${PORT:-8172}:8172"
environment:
Expand Down
6 changes: 3 additions & 3 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,16 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \

| ARG | 默认值 | 说明 |
|-----|--------|------|
| `CODEX_CLI_VERSION` | `0.149.1` | **运行时**镜像内全局安装的 codex npm 包版本 |
| `CODEX_CLI_VERSION` | `0.151.0` | **运行时**镜像内全局安装的 codex npm 包版本 |

构建阶段生成协议类型用的是 `@openai/codex` devDependency(由 `pnpm-lock.yaml` 锁定),**不受本 ARG 控制**。改 `CODEX_CLI_VERSION` 时须同步更新 `package.json` 里的 devDependency,否则会出现「类型按 A 版本生成、运行时跑 B 版本」的错配。版本的唯一真相源是 `package.json`,Dockerfile / docker-compose / CI fallback 均跟随它。

本地构建:
```bash
docker compose build --build-arg CODEX_CLI_VERSION=0.149.1
docker compose build --build-arg CODEX_CLI_VERSION=0.151.0
```

CI 由 `codex-*` 格式的 tag 触发,tag 名会被解析成本 ARG:`codex-0.149.1` → `0.149.1`。同一 codex 版本重发镜像用 `codex-0.149.1-2` 这类后缀。tag 名不合该格式会导致解析失败、构建报错。
CI 由 `codex-*` 格式的 tag 触发,tag 名会被解析成本 ARG:`codex-0.151.0` → `0.151.0`。同一 codex 版本重发镜像用 `codex-0.151.0-2` 这类后缀。tag 名不合该格式会导致解析失败、构建报错。

## 反向代理与子目录部署

Expand Down
2 changes: 1 addition & 1 deletion docs/upstream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Do not edit them. Fix anything wrong by refreshing from upstream.

| File | Upstream path | Tag |
|---|---|---|
| `codex-app-server-0.149.1.md` | `codex-rs/app-server/README.md` | `rust-v0.149.1` |
| `codex-app-server-0.151.0.md` | `codex-rs/app-server/README.md` | `rust-v0.151.0` |

The tag matches the `@openai/codex` version pinned in the root `package.json`.
Refresh after bumping that dependency — a protocol migration is exactly when a
Expand Down
Loading