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
22 changes: 11 additions & 11 deletions docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ CR_REGISTRY_PASSWORD=dataelem
# Backend and worker share one image; OpenFGA and its migration share another.
# CR release tags below are AMD64; on ARM64 append -arm64 to the five BISHENG service image tags.
# Tag builds publish -amd64/-arm64 first; the formal tags are promoted after Release approval.
BISHENG_BACKEND_IMAGE=cr.dataelem.com/dataelement/bisheng-backend:v3.0.1-beta1
BISHENG_FRONTEND_IMAGE=cr.dataelem.com/dataelement/bisheng-frontend:v3.0.1-beta1
BISHENG_BACKEND_IMAGE=cr.dataelem.com/dataelement/bisheng-backend:v3.1.0-beta1
BISHENG_FRONTEND_IMAGE=cr.dataelem.com/dataelement/bisheng-frontend:v3.1.0-beta1
MYSQL_IMAGE=cr.dataelem.com/mysql:8.0
OPENFGA_IMAGE=cr.dataelem.com/dataelement/openfga:v1.15.2-dm
REDIS_IMAGE=cr.dataelem.com/redis:7.0.4
Expand All @@ -24,13 +24,13 @@ ETCD_IMAGE=cr.dataelem.com/quay.io/coreos/etcd:v3.5.5
MINIO_IMAGE=cr.dataelem.com/minio/minio:RELEASE.2023-03-20T20-16-18Z
MILVUS_IMAGE=cr.dataelem.com/milvusdb/milvus:v2.5.10
# Full image reference replaces the former SANDBOX_IMAGE_TAG setting.
BISHENG_SANDBOX_IMAGE=cr.dataelem.com/dataelement/bisheng-sandbox:v3.0.0
BISHENG_SANDBOX_IMAGE=cr.dataelem.com/dataelement/bisheng-sandbox:v3.1.0-beta1
# Optional FT profile: historical FT version, independent of platform tags.
BISHENG_FT_IMAGE=cr.dataelem.com/dataelement/bisheng-ft:v0.5.0
BISHENG_FT_PORT=8000
# Optional app-runtime profile images.
BISHENG_RUNTIME_MANAGER_IMAGE=cr.dataelem.com/dataelement/bisheng-runtime-manager:v3.0.0
BISHENG_APP_PROXY_IMAGE=cr.dataelem.com/dataelement/bisheng-app-proxy:v3.0.0
BISHENG_RUNTIME_MANAGER_IMAGE=cr.dataelem.com/dataelement/bisheng-runtime-manager:v3.1.0-beta1
BISHENG_APP_PROXY_IMAGE=cr.dataelem.com/dataelement/bisheng-app-proxy:v3.1.0-beta1
# Socket proxy uses separate architecture tags; the unsuffixed tag is AMD64.
DOCKER_SOCKET_PROXY_IMAGE=cr.dataelem.com/tecnativa/docker-socket-proxy:0.3.0
# ARM alternative: set DOCKER_SOCKET_PROXY_IMAGE to cr.dataelem.com/tecnativa/docker-socket-proxy:0.3.0-arm64.
Expand All @@ -45,7 +45,7 @@ COMPOSE_PROJECT_NAME=bisheng
BISHENG_NETWORK_NAME=bisheng-network

# install.sh adds/removes gateway and ft here; Compose selects optional services.
COMPOSE_PROFILES=
COMPOSE_PROFILES=app-runtime
BISHENG_PRO=false
BISHENG_PUBLIC_URL=
# User-supplied readable license file; no file means no Gateway.
Expand Down Expand Up @@ -86,8 +86,8 @@ LOCAL_ISOLATION=uid
# <= the host CPU count or Docker refuses to start the runners. Default 2.
SANDBOX_CPUS=2

# Optional app runtime: enable with --profile app-runtime and the matching
# backend configuration. See docs/architecture/14-app-factory-deployment.md
# App runtime is enabled in new deployments; existing .env choices are preserved.
# Configure host isolation before running hosted applications. See docs/architecture/14-app-factory-deployment.md
# and src/runtime-manager/OPERATIONS.md for the deployment prerequisites.
BISHENG_APP_DATA_ROOT=/opt/bisheng/app-data
BISHENG_RUNTIME_PROTOCOL_VERSION=2
Expand Down Expand Up @@ -125,8 +125,8 @@ BISHENG_RTM_BUILD_RESERVE_MB=2048
# Python dependencies are downloaded only during the isolated preparation phase.
# Production private deployments may replace this with an approved internal mirror.
BISHENG_RTM_BUILD_INDEX_URL=https://pypi.org/simple
# Optional approved npm mirror. Blank uses the runtime image default, subject to
# the deployment's build-egress policy.
BISHENG_RTM_BUILD_NPM_REGISTRY=
# npm download source for the isolated preparation phase.
# Replace it with an approved enterprise mirror when needed.
BISHENG_RTM_BUILD_NPM_REGISTRY=https://registry.npmjs.org
# Runtime/preparer base images are selected by immutable profiles in backend,
# not by RTM_IMAGE_PREFIX. See src/runtime-manager/OPERATIONS.md.
18 changes: 15 additions & 3 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
bash docker/install.sh
```

脚本首次将 `.env.example` 复制为 `.env`,校验配置,使用默认公共账号登录 `cr.dataelem.com`,拉取镜像并执行 `up -d`。默认不启用 Gateway 和 FT,也不会询问是否启用。已有 `.env` 会保留,不自动覆盖或合并。部署需要 Bash 和常用系统命令,无需宿主机 Python。
脚本首次将 `.env.example` 复制为 `.env`,校验配置,使用默认公共账号登录 `cr.dataelem.com`,拉取镜像并执行 `up -d`。默认启用 Vibe App 运行服务、沙箱和 BS Client;Gateway 和 FT 默认关闭。已有 `.env` 的开关、镜像、来源与凭据保留;启用 app-runtime 时仅补齐缺失的独立运行时密钥。部署需要 Bash 和常用系统命令,无需宿主机 Python。

账号在 `.env` 的 `CR_REGISTRY_USERNAME` / `CR_REGISTRY_PASSWORD` 中配置;默认使用提供的公共账号,密码通过 `--password-stdin` 传入 Docker。`--prepare-only` 只生成、校验配置,不登录、不拉取、不启动服务。
账号在 `.env` 的 `CR_REGISTRY_USERNAME` / `CR_REGISTRY_PASSWORD` 中配置;默认使用提供的公共账号,密码通过 `--password-stdin` 传入 Docker。`--prepare-only` 只生成、校验配置(含首次生成的独立运行时密钥),不登录、不拉取、不启动服务。

## Gateway(可选)

Expand Down Expand Up @@ -87,6 +87,18 @@ docker compose logs gateway

## 其他部署方式

- VibeApp 运行环境是独立的 `app-runtime` profile,需要额外配置,见[应用工场部署说明](../docs/architecture/14-app-factory-deployment.md)。
- Vibe App 的 `app-runtime` profile 在全新部署默认启用。宿主隔离、基础运行镜像和容量等实际运行前提见[应用工场部署说明](../docs/architecture/14-app-factory-deployment.md)与[宿主隔离说明](../deploy/runtime-manager/README.md)。这些条件尚未满足时操作会明确失败,默认开关不替代运行准入。
- Kubernetes 部署见 [Helm 说明](helm/README.md)。
- Office 可选服务使用 `docker-compose-office.yml`。

## 默认客户端与依赖下载

部署 YAML 使用 `bs_client`(旧 `dsh` 仍兼容);两者同时存在时新块整块优先。`enabled` 默认开启,`platform_public_url` 可留空,登录、Chat、会话、Work 工具和技能按当前请求地址工作。需要固定公开地址时才配置它;URL 为不带路径的 HTTP(S) origin。

标准代理保留公开 Host 与端口。外部 TLS 终止代理应覆盖客户端转发头,并在 `nginx/conf.d/default.conf` 与 `websocket.conf` 的 `geo $bs_trusted_edge` 中登记其真实 IP/CIDR;无需为此填写客户端部署地址。后端仅信任 `bs_client.trusted_proxy_hosts` 声明的代理,默认 Compose 为 frontend/gateway。直接访问后端时不会相信任意客户端传入的转发头。

全新在线部署在受控准备阶段从 PyPI(含 wheel 文件域名)与 npm 下载基础镜像未预装的包;`.env` 中 `BISHENG_RTM_BUILD_INDEX_URL`、`BISHENG_RTM_BUILD_NPM_REGISTRY` 可改为企业源。`BISHENG_RUNTIME_OFFLINE=true` 选择离线,缺包明确失败,不自动改用公网。安装/编译和正式运行继续使用既有出站限制。

首次运行 install.sh 为各运行时身份生成不同随机密钥,重跑不会轮换。关闭 Vibe 时将实际 YAML 的 `app_runtime.enabled` 改为 false,并从 `.env` 的 `COMPOSE_PROFILES` 移除 app-runtime;保留数据。仅修改 profile 不会修改用户自管 YAML。沙箱按现有 endpoints/执行器配置关闭,已有会话的停用需要单独安排。

模板服务 tag 跟随 v3.1.0-beta1,实际安装需使用包含本次变更的后端/运行时发行镜像。源码验证不表示镜像已构建、已推送或线上已更新。
25 changes: 15 additions & 10 deletions docker/bisheng/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ database_pool:
# 代码默认值为 "";保持省略时使用数据库中自动生成的密钥。
# jwt_secret: "replace-with-a-long-random-string"

# DSH Desktop 部署默认值(默认关闭)。启用前填写 platform_public_url,
# 例如 https://work.example.com 或 http://192.0.2.15:18081。
# 以下配置块须配合支持 DSH 的后端镜像使用;业务接入另在管理页启用。
# dsh:
# BS Client 默认开启,地址留空即可按当前请求使用;需要固定公开地址时再覆盖。
# 配合包含本配置兼容变更的 beta1 后端镜像使用;旧顶层 dsh 仍可读取。
bs_client:
# access_ttl_seconds: 300 # 访问令牌有效期(秒)
# session_ttl_seconds: 2592000 # 桌面会话绝对有效期(秒,30 天)
# enabled: false # 只控制管理模块入口;业务接入另在管理页启用
enabled: true
# client_id: "dsh-desktop" # 固定协议值
# contract_version: "0.5.0" # 固定协议值
# platform_public_url: null # 公共 HTTP(S) origin;启用 DSH 前必须填写,不带路径
platform_public_url: null # 可选固定 HTTP(S) origin,不带路径
trusted_proxy_hosts: [frontend, gateway] # 只信任本部署代理的公开协议
# web_session_cookie_name: "access_token_cookie" # 桌面浏览器登录 Cookie 名
# gateway_internal_url: null # 已弃用;原生会话不再访问此地址
# billing_timezone: "Asia/Shanghai" # 月度配额结算时区
Expand Down Expand Up @@ -254,11 +254,16 @@ logger_conf:
# public_base_url: "" # 代码默认空;例如 https://kb.example.com

# ── 工场运行时层(F054)─────────────────────────────────────────────────
# 这一层可以整层不装:enabled 保持 false 时,平台其余部分零变化,
# 全新 Compose 默认启用;设 enabled: false 并取消 app-runtime profile 可整层不装,
# /apps/{slug} 会落到"本环境未启用应用工场"引导页,CLI 部署被 16207 明确拒绝。
# compose 形态下这两个服务挂在 `app-runtime` profile 后面,不带
# `--profile app-runtime` 启动就根本不创建(scripts/deploy.sh 已自动处理)。
# app_runtime:
# Compose 新 .env 默认选择 app-runtime;已有 .env 的 profile 选择保持不变。
# below !env bindings are supplied to both backend and worker by Compose.
app_runtime:
enabled: true
manager_base_url: "http://runtime-manager:8091"
manager_hmac_secret: !env ${BISHENG_RUNTIME_CONTROL_SECRET}
proxy_hmac_secret: !env ${BISHENG_APP_PROXY_HMAC_SECRET}
obo_secret: !env ${BISHENG_APP_OBO_SECRET}
# # 以下是运行时 v2 默认值;注释值为环境变量未设置时的回退值。
# # 显式填写 YAML 会优先于这些 BISHENG_RUNTIME_* 环境变量的默认工厂。
# runtime_service_keys: {} # 未填写时读取 BISHENG_RUNTIME_SERVICE_KEYS(JSON)
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ services:
RTM_OVERCOMMIT_RATIO: ${BISHENG_RTM_OVERCOMMIT_RATIO:-0.8}
RTM_BUILD_RESERVE_MB: ${BISHENG_RTM_BUILD_RESERVE_MB:-2048}
RTM_BUILD_INDEX_URL: ${BISHENG_RTM_BUILD_INDEX_URL:-https://pypi.org/simple}
RTM_BUILD_NPM_REGISTRY: ${BISHENG_RTM_BUILD_NPM_REGISTRY:-}
RTM_BUILD_NPM_REGISTRY: ${BISHENG_RTM_BUILD_NPM_REGISTRY-https://registry.npmjs.org}
RTM_BUILD_EXTRA_INDEX_URL: 'http://backend:7860/api/v1/dev-toolkit/simple/'
RTM_BUILD_EXTRA_TRUSTED_HOST: backend
RTM_IMAGE_PULL_POLICY: ${BISHENG_RUNTIME_IMAGE_PULL_POLICY:-never}
Expand Down
5 changes: 5 additions & 0 deletions docker/gateway/config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ spring:
max-in-memory-size: 200MB
cloud:
gateway:
default-filters: [PreserveHostHeader]
x-forwarded:
proto-enabled: false
host-enabled: false
port-enabled: false
httpclient:
connect-timeout: 30000
response-timeout: 3600s
Expand Down
8 changes: 7 additions & 1 deletion docker/helm/bisheng/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Redis 默认支持独立 Redis 与 DB index 分离。不要据此假定 Sentinel
runtime: {enabled: false}
sandbox: {enabled: false}
# 原生 DSH 的基本登录独立于 Gateway 开关
# dsh: {enabled: true}
# bs_client: {enabled: false} # 客户端默认开启,按需关闭
```

Vibe 关闭时无运行控制面、材料入口和目录初始化;新装关闭沙箱时沿用正常未启用流程。**本期不支持已开启沙箱、已保存端点/执行器/会话后的热关闭联动**;默认开启后持续使用,后续专门修复该业务缺陷。
Expand Down Expand Up @@ -203,3 +203,9 @@ python scripts/verify_k8s_runtime.py --context company \
私有执行镜像需要先在执行空间放 Registry Secret。若该空间由运维预建,设置 `runtime.namespaceManagement.createExecution: false`,明确并固定 `runtime.execution.installationId`,由运维给专用 Namespace 设置同值 `runtime.bisheng.io/installation` 以及 restricted PSA 标签;不要将共享业务空间作为执行空间。控制空间通过 Helm --namespace 选择。新空间由 Chart 创建时自动带这些标签。

受管配置/运行策略/Nginx/Gateway 配置通过 Pod template checksum 触发正常 Helm 滚动,无手工启动补丁。已有外部 ConfigMap/Secret 内容在 Chart 外变化时,更新 `global.configRevision` 为新的运维版本号后升级,以让进程重新装配配置/读取身份;不要用此参数自动轮换签名根。

## BS Client 可选地址

客户端默认开启,`bs_client: null` 表示使用默认值;显式 `bs_client: {enabled: false}` 关闭入口。旧 `dsh` 仍被接受,新块非 null 时整块优先。完整后端配置使用 `config.settings.bs_client`;其中 `platform_public_url` 默认不注入,留空可正常登录并使用 Chat、会话及 Work/MCP。需要固定 origin 时在该字段显式设置;全局 `publicUrl` 继续服务其它部署用途,不再成为 DSH 使用前提。

公开 Host 必须连同端口保留。Chart 为前端/可选 Gateway 建立 headless peers Service,让后端按代理 Pod IP 验证可信协议来源。外部 TLS 终止代理须清理客户端转发头,并将实际边缘代理 CIDR 放入 `frontend.proxy.trustedForwardedCidrs`;不默认信任整个私网。自管 `config.existingConfigMap` 的用户须同步相应 BS Client 配置。
19 changes: 18 additions & 1 deletion docker/helm/bisheng/templates/configmap-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,24 @@
{{- $fg = mergeOverwrite $fg (default (dict) (get $settings "openfga")) -}}
{{- $_ := set $fg "force_write_model" false -}}
{{- $_ := set $settings "openfga" $fg -}}
{{- $_ := set $settings "dsh" (mergeOverwrite (dict "enabled" .Values.dsh.enabled "platform_public_url" .Values.publicUrl) (default (dict) (get $settings "dsh"))) -}}
{{- $client := dict "enabled" true -}}
{{- if ne .Values.bs_client nil -}}
{{- $client = mergeOverwrite $client .Values.bs_client -}}
{{- else if hasKey .Values "dsh" -}}
{{- $client = mergeOverwrite $client .Values.dsh -}}
{{- end -}}
{{- if hasKey $settings "bs_client" -}}
{{- $client = deepCopy (get $settings "bs_client") -}}
{{- else if hasKey $settings "dsh" -}}
{{- $client = deepCopy (get $settings "dsh") -}}
{{- end -}}
{{- if not (hasKey $client "trusted_proxy_hosts") -}}
{{- $proxies := list (printf "%s.%s.svc.%s" (include "bisheng.component" (list . "frontend-peers")) .Release.Namespace .Values.global.clusterDomain) -}}
{{- if .Values.gateway.enabled }}{{ $proxies = append $proxies (printf "%s.%s.svc.%s" (include "bisheng.component" (list . "gateway-peers")) .Release.Namespace .Values.global.clusterDomain) }}{{ end -}}
{{- $_ := set $client "trusted_proxy_hosts" $proxies -}}
{{- end -}}
{{- $_ := unset $settings "dsh" -}}
{{- $_ := set $settings "bs_client" $client -}}
{{- $_ := set $settings "open_platform" (mergeOverwrite (dict "enabled" .Values.openPlatform.enabled) (default (dict) (get $settings "open_platform"))) -}}
{{- $minioHost := printf "%s:%d" (include "bisheng.host" (list . "minio")) (int .Values.minio.external.port) -}}
{{- $share := .Values.minio.external.sharepoint -}}
Expand Down
10 changes: 8 additions & 2 deletions docker/helm/bisheng/templates/configmap-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ metadata:
data:
default.conf: |
map $http_upgrade $connection_upgrade { default upgrade; '' close; }
map $http_x_forwarded_proto $bs_forwarded_proto { default $http_x_forwarded_proto; "" $scheme; }
map $http_x_forwarded_host $bs_forwarded_host { default $http_x_forwarded_host; "" $http_host; }
geo $bs_trusted_edge {
default 0;
{{- range .Values.frontend.proxy.trustedForwardedCidrs }}
{{ . }} 1;
{{- end }}
}
map "$bs_trusted_edge:$http_x_forwarded_proto" $bs_forwarded_proto { default $scheme; "1:http" http; "1:https" https; }
map $http_host $bs_forwarded_host { default $http_host; }
server {
listen {{ .Values.frontend.service.port }};
{{- if .Values.frontend.service.clientPort }}
Expand Down
5 changes: 5 additions & 0 deletions docker/helm/bisheng/templates/gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ data:
main: {allow-bean-definition-overriding: true}
cloud:
gateway:
default-filters: [PreserveHostHeader]
x-forwarded:
proto-enabled: false
host-enabled: false
port-enabled: false
httpclient:
connect-timeout: 30000
response-timeout: 3600s
Expand Down
16 changes: 16 additions & 0 deletions docker/helm/bisheng/templates/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,19 @@ spec:
values: [{{ include "runtime.name" (list . "runtime-manager") }}, {{ include "runtime.name" (list . "app-proxy") }}, {{ include "runtime.name" (list . "egress-proxy") }}, {{ include "runtime.name" (list . "runtime-admission") }}]
ports: [{protocol: TCP, port: {{ .Values.global.internalPlatformPort }}}]
{{- end }}

{{- /* Headless records resolve proxy pod IPs, not a ClusterIP that never appears as a peer. */}}
{{- range $component := list "frontend" "gateway" }}
{{- if or (eq $component "frontend") $.Values.gateway.enabled }}
---
apiVersion: v1
kind: Service
metadata: {name: {{ include "bisheng.component" (list $ (printf "%s-peers" $component)) }}}
spec:
clusterIP: None
selector:
{{- include "bisheng.selectorLabels" $ | nindent 4 }}
app.kubernetes.io/component: {{ $component }}
ports: [{name: http, port: {{ if eq $component "frontend" }}{{ $.Values.frontend.service.port }}{{ else }}{{ $.Values.gateway.service.port }}{{ end }}, targetPort: http}]
{{- end }}
{{- end }}
19 changes: 19 additions & 0 deletions docker/helm/bisheng/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,13 @@
},
"maxBodySize": {
"type": "string"
},
"trustedForwardedCidrs": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9A-Fa-f:.]+/[0-9]{1,3}$"
}
}
}
}
Expand Down Expand Up @@ -1653,6 +1660,18 @@
},
"runtime": {
"type": "object"
},
"bs_client": {
"type": [
"object",
"null"
],
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
}
}
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
Expand Down
6 changes: 4 additions & 2 deletions docker/helm/bisheng/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ database:
existingSecret: ''
passwordKey: password
password: bisheng-change-me
dsh:
enabled: false
# null uses enabled: true; set bs_client.enabled: false to disable.
# Legacy dsh input remains supported when bs_client is null.
bs_client: null
openPlatform:
enabled: false
bootstrap:
Expand Down Expand Up @@ -244,6 +245,7 @@ frontend:
nodePort: 0
clientNodePort: 0
proxy:
trustedForwardedCidrs: [127.0.0.1/32, "::1/128"]
readTimeoutSeconds: 300
maxBodySize: 1024m
mysql:
Expand Down
13 changes: 13 additions & 0 deletions docker/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,19 @@ if [[ -n "$FT_CHOICE" ]]; then
profiles="$(env_get "$ENV_FILE" COMPOSE_PROFILES)"
env_set "$ENV_FILE" COMPOSE_PROFILES "$(set_optional_profile "$profiles" "$FT_CHOICE" ft)"
fi
# Runtime identities are installation-specific and stable across retries/upgrades.
case ",$(env_get "$ENV_FILE" COMPOSE_PROFILES)," in
*,app-runtime,*)
for key in BISHENG_RUNTIME_MANAGER_SECRET BISHENG_RUNTIME_CONTROL_SECRET BISHENG_RUNTIME_ENTRY_SECRET BISHENG_RUNTIME_EGRESS_SECRET BISHENG_APP_PROXY_HMAC_SECRET BISHENG_APP_OBO_SECRET BISHENG_RUNTIME_HOST_ISOLATION_SECRET; do
if [[ -z "$(env_get "$ENV_FILE" "$key")" ]]; then
env_set "$ENV_FILE" "$key" "$(od -An -N32 -tx1 /dev/urandom | tr -d ' \n')"
fi
done
if [[ -z "$(env_get "$ENV_FILE" BISHENG_RUNTIME_PAYLOAD_KEY)" ]]; then
env_set "$ENV_FILE" BISHENG_RUNTIME_PAYLOAD_KEY "$(head -c 32 /dev/urandom | base64 | tr '+/' '-_' | tr -d '\r\n')"
fi
;;
esac
compose config --quiet
if [[ "$PREPARE_ONLY" = true ]]; then printf '配置已生成并通过 Compose 校验。\n'; exit 0; fi
# Authenticate with the public defaults; existing deployments may override them.
Expand Down
Loading
Loading