docs: publish Orbit image reference and Compose pull instructions

This commit is contained in:
2026-11-02 15:41:30 +08:00
parent 9df5ffec74
commit 7ce4cce24f
3 changed files with 20 additions and 8 deletions

View File

@@ -20,20 +20,18 @@ Compose 文件要求显式提供数据库密码,仓库没有默认密码,也
## 2. 首次启动
先构建不可变镜像。正式发布时应把 `ORBIT_IMAGE` 换成带版本和摘要的镜像地址:
从项目根目录运行。可以直接使用已发布的公开服务端镜像,无需登录 OmniGate 或重新编译。Docker 按主机自动选择 `linux/amd64` 或 `linux/arm64`。以下示例固定到 v0.1.3 的双架构索引摘要;如需单独构建,见[容器构建说明](21-container-deployment.md)。
```sh
docker build \
--build-arg VERSION=v0.1.1 \
--build-arg REVISION="$(git rev-parse HEAD)" \
--build-arg BUILD_TIME="$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
-t orbit:v0.1.1 .
export ORBIT_IMAGE=api.omnigate.site/platform/orbit:v0.1.3@sha256:7a58bdb6fa9f39dc4eb7f80dc46300627043a2284ed565787e71bf5d033bb390
docker pull "$ORBIT_IMAGE"
# 无需数据库即可核对镜像版本、源码提交及内置迁移清单
docker run --rm --entrypoint /usr/local/bin/orbit-admin "$ORBIT_IMAGE" release manifest
```
在当前 shell 或 Secret 管理器中注入配置。以下值仅是变量示例,不是生产密码:
```sh
export ORBIT_IMAGE=orbit:v0.1.1
export ORBIT_DB_NAME=orbit
export ORBIT_DB_USER=orbit_runtime
export ORBIT_DB_PASSWORD='从秘密管理器读取'