Skip to content

Commit c462db5

Browse files
committed
v0.1.180: rename IT compose image to monoengine:local
Drop the monoengine-it image tag; compose project name monoengine-it is unchanged. Signed-off-by: Eli Ma <eli@patch.sh>
1 parent aacf147 commit c462db5

8 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎.github/workflows/config-validation.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
set -euo pipefail
112112
cargo build -p monoengine
113113
cp target/debug/monoengine monoengine.itbin
114-
docker build -f Dockerfile.it-runtime -t monoengine-it:local .
114+
docker build -f Dockerfile.it-runtime -t monoengine:local .
115115
rm -f monoengine.itbin
116116
docker compose -p monoengine-it -f docker-compose.test.yml --profile app up -d --wait monoengine
117117
curl -sf "http://127.0.0.1:19180/api/openapi.json" >/dev/null

‎Cargo.lock‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["bin"]
33

44
[package]
55
name = "monoengine-core"
6-
version = "0.1.179"
6+
version = "0.1.180"
77
edition = "2024"
88

99
[lib]

‎Dockerfile.it-runtime‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# desktops. (The source `Dockerfile` still builds+runs on bookworm.)
88
#
99
# cp target/debug/monoengine ./monoengine.itbin # or target/release/...
10-
# docker build -f Dockerfile.it-runtime -t monoengine-it:local .
10+
# docker build -f Dockerfile.it-runtime -t monoengine:local .
1111
# rm -f ./monoengine.itbin
1212

1313
FROM ubuntu:24.04

‎bin/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "monoengine"
3-
version = "0.1.179"
3+
version = "0.1.180"
44
edition = "2024"
55

66
# The thin composition-root binary. It depends on `monoengine-core` (which only

‎docker-compose.test.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ services:
114114
# Per-case cargo black-box tests still spawn via CARGO_BIN_EXE for isolation;
115115
# this service is the compose-hosted process under test for stack smoke.
116116
# Build context is the parent of `monoengine/` + `orbit/` (see Dockerfile).
117-
# CI may pre-tag `monoengine-it:local` from Dockerfile.it-runtime instead of
117+
# CI may pre-tag `monoengine:local` from Dockerfile.it-runtime instead of
118118
# rebuilding from source (`pull_policy: never`).
119119
monoengine:
120120
profiles: ["app"]
121-
image: monoengine-it:local
121+
image: monoengine:local
122122
pull_policy: never
123123
build:
124124
context: ..

‎docs/plan/plan-20260727.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183

184184
- **Status:** Accepted(2026-07-31)
185185
- **Context:** PT-01 收口后数据面与 git-cli 已在 compose 内,但被测产品仍只由宿主机 `cargo` 编译并通过 `CARGO_BIN_EXE` 拉起。缺少栈级常驻进程不利于「整栈 up」联调与 CI 对真实二进制镜像路径的探针。
186-
- **Decision:** 在 `docker-compose.test.yml` 增加 `monoengine` 服务(`profiles: ["app"]`,`127.0.0.1:19180:8000`),镜像 `monoengine-it:local`:本地可用父目录 context 的 `Dockerfile` 源码构建(需 sibling `orbit`);CI 用 `Dockerfile.it-runtime` 打包已编译二进制以避免二次全量编译。mail 默认关闭。`bin/tests/` 隔离黑盒**继续**使用 `CARGO_BIN_EXE`;栈级 smoke 为 `integration_compose_monoengine_http_smoke`(未启 profile 时 soft-skip)。
186+
- **Decision:** 在 `docker-compose.test.yml` 增加 `monoengine` 服务(`profiles: ["app"]`,`127.0.0.1:19180:8000`),镜像 `monoengine:local`:本地可用父目录 context 的 `Dockerfile` 源码构建(需 sibling `orbit`);CI 用 `Dockerfile.it-runtime` 打包已编译二进制以避免二次全量编译。mail 默认关闭。`bin/tests/` 隔离黑盒**继续**使用 `CARGO_BIN_EXE`;栈级 smoke 为 `integration_compose_monoengine_http_smoke`(未启 profile 时 soft-skip)。
187187
- **Alternatives considered:** 仅文档说明由 cargo 起服务(拒绝——与「compose 即测试方案」目标不符);用 compose 完全替代 CARGO_BIN 用例(拒绝——破坏 per-case 端口/DB/`MEGA_BASE_DIR` 隔离);把 monoengine 放进默认 `up`(拒绝——拖慢仅需数据面的开发循环)。
188188
- **Consequences:** 启全栈需显式 `--profile app`(及 git 时 `--profile git`);CI `config-validation` 在数据面后构建 runtime 镜像并探针 openapi;allowlist A 必须覆盖 `Dockerfile` / `Dockerfile.it-runtime`。
189189
- **Revisit when:** 需要 compose 内认证 push / 多实例 monoengine 拓扑时。

‎docs/refactoring/test-infra.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ git-cli 固定版本: `git version 2.49.1`
144144
| 项 | 值 |
145145
|---|---|
146146
| 服务名 | `monoengine` |
147-
| 镜像 | `monoengine-it:local`(`pull_policy: never`)。本地源码构建:`Dockerfile`(context = 含 `monoengine/`+`orbit/` 的父目录,bookworm)。CI/快速路径:宿主机 `cargo build -p monoengine` 后用 `Dockerfile.it-runtime`(**Ubuntu 24.04**,匹配较新 glibc)打包 `monoengine.itbin` |
147+
| 镜像 | `monoengine:local`(`pull_policy: never`)。本地源码构建:`Dockerfile`(context = 含 `monoengine/`+`orbit/` 的父目录,bookworm)。CI/快速路径:宿主机 `cargo build -p monoengine` 后用 `Dockerfile.it-runtime`(**Ubuntu 24.04**,匹配较新 glibc)打包 `monoengine.itbin` |
148148
| 固定版本字符串 | 无客户端 pin;镜像内容随源码 / 宿主机二进制变化,升级为显式 build |
149149
| 端口 | `127.0.0.1:19180:8000`(容器内 CLI 默认 `8000`;仅回环) |
150150
| healthcheck | `curl -f http://127.0.0.1:8000/api/openapi.json` |
@@ -153,7 +153,7 @@ git-cli 固定版本: `git version 2.49.1`
153153
| profiles | `profiles: ["app"]`:**不**参与默认 `up -d --wait`;显式 `--profile app` |
154154
| depends_on | `postgres`、`redis`(`service_healthy`)。mail 默认 `MEGA_MAIL__ENABLED=false`(NoopMailer,无需 vault password);不依赖 rustfs |
155155
| 清理 | `docker compose -p monoengine-it -f docker-compose.test.yml --profile app down -v`(或与 `--profile git` 一并) |
156-
| CI 入口 | `.github/workflows/config-validation.yml`:在数据面 `up` 后 `Dockerfile.it-runtime` 打 `monoengine-it:local`,`--profile app up -d --wait monoengine`,`curl` `127.0.0.1:19180/api/openapi.json`;job 末尾带 `--profile app` 的 `down -v` |
156+
| CI 入口 | `.github/workflows/config-validation.yml`:在数据面 `up` 后 `Dockerfile.it-runtime` 打 `monoengine:local`,`--profile app up -d --wait monoengine`,`curl` `127.0.0.1:19180/api/openapi.json`;job 末尾带 `--profile app` 的 `down -v` |
157157
| secret | 无注入生产 secret;DB 使用公开测试口令 `mono_test_password`;mail 关闭 |
158158
| 降级 / 黑盒 | 栈级 smoke:`integration_compose_monoengine_http_smoke`(端口未监听时 soft-skip)。隔离黑盒仍用 `CARGO_BIN_EXE` |
159159

@@ -172,7 +172,7 @@ CI / 宿主机二进制打包示例:
172172
```bash
173173
cargo build -p monoengine
174174
cp target/debug/monoengine monoengine.itbin
175-
docker build -f Dockerfile.it-runtime -t monoengine-it:local .
175+
docker build -f Dockerfile.it-runtime -t monoengine:local .
176176
rm -f monoengine.itbin
177177
docker compose -p monoengine-it -f docker-compose.test.yml --profile app up -d --wait monoengine
178178
```

0 commit comments

Comments
 (0)