Initial project source

这个提交包含在:
apple
2026-11-20 15:32:57 +08:00
当前提交 fb47c07f7c
共修改 8405 个文件,包含 806907 行新增和 0 行删除
+35
查看文件
@@ -0,0 +1,35 @@
# Copy with ./script/datagov/init-env.sh. Never commit .env.datagov.
COMPOSE_PROJECT_NAME=aixun-datagov-local
AIXUN_DATAGOV_FRONTEND_PORT=28000
AIXUN_DATAGOV_GATEWAY_PORT=28080
AIXUN_DATAGOV_NACOS_CONSOLE_PORT=28081
AIXUN_DATAGOV_NACOS_CLIENT_PORT=28848
AIXUN_DATAGOV_NACOS_GRPC_PORT=29848
AIXUN_DATAGOV_NACOS_GRPC_RAFT_PORT=29849
AIXUN_DATAGOV_MYSQL_PORT=23307
AIXUN_DATAGOV_REDIS_PORT=26380
AIXUN_DATAGOV_AUTH_PORT=29210
AIXUN_DATAGOV_SYSTEM_PORT=29201
AIXUN_DATAGOV_RESOURCE_PORT=29204
AIXUN_DATAGOV_INTEGRATION_PORT=29310
AIXUN_DATAGOV_DATAOPS_PORT=29320
AIXUN_DATAGOV_GOVERNANCE_PORT=29330
AIXUN_DATAGOV_DATAPRODUCT_PORT=29340
AIXUN_DATAGOV_OPENMETADATA_URL=http://127.0.0.1:33185
AIXUN_DATAGOV_DB_SCHEMA=aixun_datagov_system
AIXUN_DATAGOV_DB_USERNAME=datagov_app
AIXUN_DATAGOV_DB_PASSWORD=GENERATED_BY_INIT_ENV
AIXUN_DATAGOV_MYSQL_ROOT_PASSWORD=GENERATED_BY_INIT_ENV
AIXUN_DATAGOV_REDIS_PASSWORD=GENERATED_BY_INIT_ENV
AIXUN_DATAGOV_NACOS_NAMESPACE=aixun-datagov-local
AIXUN_DATAGOV_NACOS_GROUP=AIXUN_DATAGOV_GROUP
AIXUN_DATAGOV_NACOS_USERNAME=nacos
AIXUN_DATAGOV_NACOS_PASSWORD=GENERATED_BY_INIT_ENV
AIXUN_DATAGOV_NACOS_AUTH_TOKEN=GENERATED_BY_INIT_ENV
AIXUN_DATAGOV_NACOS_IDENTITY_KEY=GENERATED_BY_INIT_ENV
AIXUN_DATAGOV_NACOS_IDENTITY_VALUE=GENERATED_BY_INIT_ENV
AIXUN_DATAGOV_JWT_SECRET=GENERATED_BY_INIT_ENV
AIXUN_DATAGOV_ADMIN_PASSWORD=GENERATED_BY_INIT_ENV
AIXUN_DATAGOV_UAT_PASSWORD=GENERATED_BY_INIT_ENV
+29
查看文件
@@ -0,0 +1,29 @@
package cn.aixunkeji.datagov.dataproduct.bi;
import cn.aixunkeji.datagov.integration.api.tablefile.AnalyticsQuery;
import cn.aixunkeji.datagov.integration.tablefile.AnalyticsSqlCompiler;
import java.nio.charset.StandardCharsets;
import java.time.LocalDateTime;
import java.util.*;
/** Executes no database access. Uses the already-built production compiler and Owner result decoder. */
public final class BiOtherMysqlProbe {
private static String encode(String value){return Base64.getEncoder().encodeToString(value.getBytes(StandardCharsets.UTF_8));}
private static String decode(String value){return "-".equals(value)?null:new String(Base64.getDecoder().decode(value),StandardCharsets.UTF_8);}
public static void main(String[] args) throws ReflectiveOperationException {
String mode=args[0],aggregate=args[1];int top=Integer.parseInt(args[2]);
if(!Set.of("AVG","COUNT_DISTINCT","SUM").contains(aggregate)||top<1||top>2)throw new IllegalArgumentException();
if("compile".equals(mode)){
var plan=new AnalyticsQuery.Plan(List.of(),List.of("category"),List.of(new AnalyticsQuery.Measure("amount",aggregate,"value")),List.of(new AnalyticsQuery.Filter("tenant","EQ",List.of("fixture' OR 1=1 --"))),List.of(),10,false,new AnalyticsQuery.CategoryRemainder(top));
var compiled=AnalyticsSqlCompiler.compileForSource(plan,List.of("category","amount","tenant"),"MYSQL","aixun_datagov_system",null,"bi_other_fixture");
System.out.println(encode(compiled.sql()));System.out.println(String.join(",",compiled.parameters().stream().map(BiOtherMysqlProbe::encode).toList()));return;
}
if(!"decode".equals(mode))throw new IllegalArgumentException();
var rows=new ArrayList<Map<String,String>>();try(var input=new Scanner(System.in,StandardCharsets.UTF_8)){while(input.hasNextLine()){var values=input.nextLine().split("\\t",-1);if(values.length!=3)throw new IllegalArgumentException();var row=new LinkedHashMap<String,String>();row.put("category",decode(values[0]));row.put("value",decode(values[1]));row.put(AnalyticsQuery.CATEGORY_LEVEL,decode(values[2]));rows.add(row);}}
var plan=new BiQuerySource.Plan(List.of("category","amount"),List.of("category"),List.of(new BiQuerySource.Measure("amount",aggregate,"value")),List.of(),List.of(),10,false,new BiQuerySource.CategoryLimit(top));
// Source-file launch uses a distinct classloader. Reflection reaches the fixed package-private Owner method without changing production visibility.
var decoder=Class.forName("cn.aixunkeji.datagov.dataproduct.bi.BiCategoryResults").getDeclaredMethod("decode",BiQuerySource.Plan.class,BiQuerySource.Result.class);decoder.setAccessible(true);
try{var result=(BiQuerySource.Result)decoder.invoke(null,plan,new BiQuerySource.Result("SUCCEEDED",List.of("category","value",AnalyticsQuery.CATEGORY_LEVEL),List.copyOf(rows),false,LocalDateTime.now(),"Synthetic MySQL observation"));System.out.println("SUCCEEDED\t"+result.rows().size()+"\t"+Objects.toString(result.categoryRemainder().otherRowIndex(),"NONE"));}
catch(java.lang.reflect.InvocationTargetException error){var cause=error.getCause();if(!cause.getClass().getName().equals("cn.aixunkeji.datagov.dataproduct.bi.BiException"))throw error;var code=cause.getClass().getDeclaredField("code");code.setAccessible(true);System.out.println("REJECTED\t"+code.get(cause));}
}
}
@@ -0,0 +1,18 @@
package cn.aixunkeji.datagov.integration.tablefile;
import cn.aixunkeji.datagov.integration.api.tablefile.AnalyticsQuery;
import java.nio.charset.StandardCharsets;
import java.util.*;
/** Actual production plan/compiler over synthetic rows, without claiming Native policy or Browser acceptance. */
public final class BiPeriodComparisonMysqlProbe {
static String encode(String value){return Base64.getEncoder().encodeToString(value.getBytes(StandardCharsets.UTF_8));}
public static void main(String[] args){
var bucket=new AnalyticsQuery.TimeBucket("day",args[0],args.length>3?Integer.valueOf(args[3]):null);
var comparison=new AnalyticsQuery.PeriodComparison("PREVIOUS_YEAR",args[1],args[2],List.of(new AnalyticsQuery.ComparisonOutput("average","baseline","difference","rate"),new AnalyticsQuery.ComparisonOutput("people","people_baseline","people_difference","people_rate")));
var plan=new AnalyticsQuery.Plan(List.of(),List.of("day","area"),List.of(new AnalyticsQuery.Measure("amount","AVG","average"),new AnalyticsQuery.Measure("person","COUNT_DISTINCT","people")),List.of(new AnalyticsQuery.Filter("tenant","EQ",List.of("fixture' OR 1=1 --"))),List.of(),50,false,null,bucket,comparison);
var compiled=AnalyticsSqlCompiler.compileForSource(plan,List.of("day","area","amount","person","tenant"),"MYSQL","aixun_datagov_system",null,"bi_yoy_fixture");
if(!comparison.equals(compiled.comparison()))throw new IllegalStateException("Comparison execution evidence is missing");
System.out.println(encode(compiled.sql()));System.out.println(String.join(",",compiled.parameters().stream().map(BiPeriodComparisonMysqlProbe::encode).toList()));System.out.println(String.join(",",compiled.columns()));
}
}
@@ -0,0 +1,18 @@
package cn.aixunkeji.datagov.integration.tablefile;
import cn.aixunkeji.datagov.integration.api.tablefile.*;
import java.time.Instant;
import java.nio.charset.StandardCharsets;
import java.util.*;
/** Actual production DATE arithmetic and compiler. Inputs and all source rows are synthetic. */
public final class BiRelativeWindowMysqlProbe {
static String encode(String value){return Base64.getEncoder().encodeToString(value.getBytes(StandardCharsets.UTF_8));}
public static void main(String[] args){
var window=AnalyticsRelativeWindow.resolve(new AnalyticsQuery.RelativeWindow("day",args[0],Integer.parseInt(args[1]),args[2]),Instant.parse(args[3]));
var filters=new ArrayList<AnalyticsQuery.Filter>();filters.add(new AnalyticsQuery.Filter("tenant","EQ",List.of("fixture' OR 1=1 --")));if(args.length>4)filters.add(new AnalyticsQuery.Filter("day","GTE",List.of(args[4])));
var plan=new AnalyticsQuery.Plan(List.of(),List.of(),List.of(new AnalyticsQuery.Measure("amount","AVG","average"),new AnalyticsQuery.Measure("person","COUNT_DISTINCT","people")),List.copyOf(filters),List.of(),50,false,null,null,null,window);
var compiled=AnalyticsSqlCompiler.compileForSource(plan,List.of("day","amount","person","tenant"),"MYSQL","aixun_datagov_system",null,"bi_relative_fixture");
if(!window.equals(compiled.relativeWindow()))throw new IllegalStateException("Frozen window metadata missing");
System.out.println(encode(compiled.sql()));System.out.println(String.join(",",compiled.parameters().stream().map(BiRelativeWindowMysqlProbe::encode).toList()));System.out.println(String.join(",",compiled.columns()));System.out.println(window.referenceDate()+","+window.startDate()+","+window.endDateExclusive());
}
}
@@ -0,0 +1,29 @@
package cn.aixunkeji.datagov.dataproduct.bi;
import cn.aixunkeji.datagov.integration.api.tablefile.AnalyticsQuery;
import cn.aixunkeji.datagov.integration.tablefile.AnalyticsSqlCompiler;
import java.nio.charset.StandardCharsets;
import java.time.LocalDateTime;
import java.util.*;
/** Source-file fixture only: actual production compiler and Owner validation, no database access here. */
public final class BiTimeBucketMysqlProbe {
static String encode(String value){return Base64.getEncoder().encodeToString(value.getBytes(StandardCharsets.UTF_8));}
static String decode(String value){return value.equals("-")?null:new String(Base64.getDecoder().decode(value),StandardCharsets.UTF_8);}
public static void main(String[] args)throws ReflectiveOperationException {
String mode=args[0],unit=args[1];if(!Set.of("DAY","WEEK","MONTH","QUARTER","YEAR","FISCAL_QUARTER","FISCAL_YEAR").contains(unit))throw new IllegalArgumentException();
Integer fiscalMonth=args.length>3?Integer.valueOf(args[3]):null;
if(mode.equals("compile")){
var filters=new ArrayList<AnalyticsQuery.Filter>();filters.add(new AnalyticsQuery.Filter("tenant","EQ",List.of("fixture' OR 1=1 --")));
if(args.length>2&&!args[2].equals("-"))filters.add(new AnalyticsQuery.Filter("day","GTE",List.of(args[2])));
var plan=new AnalyticsQuery.Plan(List.of(),List.of("day"),List.of(new AnalyticsQuery.Measure("amount","AVG","average"),new AnalyticsQuery.Measure("person","COUNT_DISTINCT","people")),filters,List.of(new AnalyticsQuery.Sort("day","ASC")),50,false,null,new AnalyticsQuery.TimeBucket("day",unit,fiscalMonth));
var sql=AnalyticsSqlCompiler.compileForSource(plan,List.of("day","amount","person","tenant"),"MYSQL","aixun_datagov_system",null,"bi_date_fixture");
System.out.println(encode(sql.sql()));System.out.println(String.join(",",sql.parameters().stream().map(BiTimeBucketMysqlProbe::encode).toList()));return;
}
if(!mode.equals("validate"))throw new IllegalArgumentException();
var rows=new ArrayList<Map<String,String>>();try(var input=new Scanner(System.in,StandardCharsets.UTF_8)){while(input.hasNextLine()){String[] values=input.nextLine().split("\\t",-1);if(values.length!=3)throw new IllegalArgumentException();var row=new LinkedHashMap<String,String>();row.put("day",decode(values[0]));row.put("average",decode(values[1]));row.put("people",decode(values[2]));rows.add(row);}}
var bucket=new BiQuerySource.TimeBucket("day",unit,fiscalMonth);var plan=new BiQuerySource.Plan(List.of("day","amount","person"),List.of("day"),List.of(new BiQuerySource.Measure("amount","AVG","average"),new BiQuerySource.Measure("person","COUNT_DISTINCT","people")),List.of(),List.of(),50,false,null,bucket);
var returned=new BiQuerySource.Result("SUCCEEDED",List.of("day","average","people"),rows,false,LocalDateTime.now(),null,null,Map.of(),null,null,bucket);
var owner=Class.forName("cn.aixunkeji.datagov.dataproduct.bi.BiTimeBuckets").getDeclaredMethod("result",BiQuerySource.Plan.class,BiQuerySource.Result.class);owner.setAccessible(true);owner.invoke(null,plan,returned);System.out.println("SUCCEEDED\t"+rows.size());
}
}
+34
查看文件
@@ -0,0 +1,34 @@
# DataGov本地运行与局部交付
2026-10-10起使用deploy.sh和deployment/正式配置。旧租约、固定发布窗口、历史任务号和逐制品人工审批已撤销,见ADR-0033。
## 日常修复
先用script/quality/check.sh选择受影响检查/构建,再按deployment/README.md生成实际制品计划,连续完成用户已授权的局部apply。使用deploy.sh --help查看参数,--check-config SERVICE只读核对当前配置。
镜像也只构建目标应用,复用现有Docker构建缓存;下面是Governance示例,tag替换为本次交付名称:
~~~bash
./script/quality/check.sh --backend-build aixun-modules/aixun-governance
docker build --pull=false -f script/datagov/docker/java-service.Dockerfile --build-arg JAR_FILE=aixun-modules/aixun-governance/target/aixun-governance.jar --build-arg SERVICE_NAME=governance --build-arg RELEASE_ID=repair-20261010 -t aixun-datagov/governance:repair-20261010 .
~~~
前端使用check.sh --frontend-build后,单独docker build --pull=false -f script/datagov/docker/frontend.Dockerfile --build-arg RELEASE_ID=repair-20261010 -t aixun-datagov/frontend:repair-20261010 .。普通交付不使用--no-cache或整栈Compose build,不导出镜像tar。
每个镜像流式验证一次,后续复用绑定不可变image ID的验证缓存,不保存大tar副本。Integration保持backend 172.21.0.8及m2-integration 172.29.0.8;Gateway发现地址保持backend 172.21.0.11。九个应用均保留原网络ID/IP、挂载和端口;网络/卷使用external引用,发布只重建目标服务,不build/pull/启动依赖。
前端保留现有持久资源卷和旧hash资源;现行Dockerfile携带实际public文件目录,favicon、品牌图片等公共URL随入口页更新,并在激活失败时恢复。构建生成的不可变资源仍拒绝同名不同内容。使用此标准Dockerfile构建新前端镜像,避免旧临时Dockerfile缺少公共文件映射。源码、容器部署和功能验收分别报告。
## 完整环境初始化
已有环境不要重复初始化。确需新建DataGov专属环境时才使用init-env.sh、preflight.sh和AIXUN_DATAGOV_INFRA_ONLY=1 ./script/datagov/start-local.sh --bootstrap。start-local.sh无参数和--help只显示帮助,初始化使用自动短锁。完整应用启动需已构建产物和明确范围;日常修复不使用start-local覆盖现有服务。stop-local.sh停止整个本项目环境,不用于日常修复,不删除卷。
## 隔离与恢复
仅使用aixun-datagov-local、aixun-datagov-*及专属网络/卷/端口/schema/Redis/Nacos。禁止复用其他项目。preflight检查归属、端口、.env权限和命名,不打印秘密。
.env.datagov、m2/local/secrets和runtime私有文件保留,不复制到证据或构建上下文。检查不应用迁移;迁移显式前向,未知写入先对账。数据恢复/删除遵守用户授权和D-020。
file-store-dr/、managed-credential-dr/保留业务恢复工具及数据一致性契约;按对应README使用,并非每次修复前置。release/仅用于确需完整发布/恢复的范围。
编号历史脚本(ingestion-test/run-123.py、数据库exact-163等)仅适用于原特殊数据操作,不作为新开发或普通部署入口,旧授权不可复用。新开发无人工租约。
@@ -0,0 +1,83 @@
#!/usr/bin/env python3
"""Production DATE compiler + Owner against literal CTEs in this project's MySQL only.
No tables, business records, migrations or stored configuration are read or written.
The fixed fixture FROM identity alone is replaced with the literal CTE name.
"""
import argparse
import base64
import hashlib
import importlib.util
import json
import os
from pathlib import Path
from decimal import Decimal
ROOT = Path(__file__).resolve().parents[2]
module = importlib.util.spec_from_file_location("bi_fixture_helpers", ROOT / "script/datagov/bi-other-mysql-smoke.py")
helpers = importlib.util.module_from_spec(module)
module.loader.exec_module(helpers)
run, literal = helpers.run, helpers.literal
CONTAINER, TENANT = helpers.CONTAINER, helpers.TENANT
PHYSICAL = "`aixun_datagov_system`.`bi_date_fixture`"
CASES = [
("leap_day_and_null", "DAY", [(None, 7, None), ("2024-02-28", 10, "a"), ("2024-02-29", 20, "a"), ("2024-02-29", 30, "b")], [(None, "7", "0"), ("2024-02-28", "10", "1"), ("2024-02-29", "25", "2")], None),
("monday_week_across_year", "WEEK", [("2024-12-29", 8, "a"), ("2024-12-30", 10, "a"), ("2025-01-05", 30, "b"), ("2025-01-06", 50, "c")], [("2024-12-23", "8", "1"), ("2024-12-30", "20", "2"), ("2025-01-06", "50", "1")], None),
("monthly_raw_average_and_distinct", "MONTH", [("2024-02-01", 10, "a"), ("2024-02-28", 20, "a"), ("2024-02-28", 40, "b"), ("2024-02-29", 90, "b"), ("2024-03-01", 7, "c")], [("2024-02-01", "40", "2"), ("2024-03-01", "7", "1")], None),
("gregorian_quarter_boundary", "QUARTER", [("2024-01-31", 10, "a"), ("2024-03-31", 20, "a"), ("2024-04-01", 100, "b")], [("2024-01-01", "15", "1"), ("2024-04-01", "100", "1")], None),
("gregorian_year_and_leap_day", "YEAR", [("2023-12-31", 10, "a"), ("2024-01-01", 20, "a"), ("2024-02-29", 50, "b")], [("2023-01-01", "10", "1"), ("2024-01-01", "35", "2")], None),
("filter_raw_dates_before_bucketing", "MONTH", [("2024-02-01", 100, "excluded"), ("2024-02-20", 20, "a"), ("2024-02-29", 40, "b")], [("2024-02-01", "30", "2")], "2024-02-15"),
("empty_does_not_invent_zero", "MONTH", [], [], None),
("fiscal_april_year_raw_average_distinct_null", "FISCAL_YEAR", [(None, 7, None), ("2023-04-01", 10, "a"), ("2024-02-28", 20, "a"), ("2024-02-29", 40, "b"), ("2024-03-31", 90, "b"), ("2024-04-01", 12, "c")], [(None, "7", "0"), ("2023-04-01", "40", "2"), ("2024-04-01", "12", "1")], None, 4),
("fiscal_february_quarter_crosses_year", "FISCAL_QUARTER", [("2023-11-01", 10, "a"), ("2024-01-31", 30, "b"), ("2024-02-01", 50, "c")], [("2023-11-01", "20", "2"), ("2024-02-01", "50", "1")], None, 2),
("fiscal_december_quarter_includes_leap_day", "FISCAL_QUARTER", [("2023-12-31", 10, "a"), ("2024-02-29", 30, "a"), ("2024-03-01", 50, "c")], [("2023-12-01", "20", "1"), ("2024-03-01", "50", "1")], None, 12),
("fiscal_january_matches_explicit_calendar_year", "FISCAL_YEAR", [("2023-12-31", 10, "a"), ("2024-02-29", 30, "b")], [("2023-01-01", "10", "1"), ("2024-01-01", "30", "1")], None, 1),
("fiscal_december_year_boundary", "FISCAL_YEAR", [("2024-11-30", 10, "a"), ("2024-12-01", 30, "b")], [("2023-12-01", "10", "1"), ("2024-12-01", "30", "1")], None, 12),
("fiscal_raw_date_filter_precedes_period", "FISCAL_YEAR", [("2023-04-01", 999, "excluded"), ("2024-02-29", 10, "a"), ("2024-03-31", 30, "a")], [("2023-04-01", "20", "1")], "2024-02-01", 4),
]
def main():
parser = argparse.ArgumentParser(); parser.add_argument("--execute", action="store_true"); parser.add_argument("--compiled-dir", type=Path); args = parser.parse_args()
if not args.execute:
print(json.dumps({"status": "NOT_RUN", "container": CONTAINER, "cases": [case[0] for case in CASES], "writes": "NONE"})); return
identity = run(["docker", "inspect", "--format", '{{.Name}}|{{index .Config.Labels "com.docker.compose.project"}}|{{index .Config.Labels "com.docker.compose.service"}}|{{.State.Running}}|{{range $n,$v := .NetworkSettings.Networks}}{{$n}} {{end}}', CONTAINER]).strip().split("|")
if identity[:4] != ["/" + CONTAINER, "aixun-datagov-local", "mysql", "true"] or not identity[4].split() or any(not n.startswith("aixun-datagov-local-") for n in identity[4].split()):
raise RuntimeError("DataGov container ownership mismatch")
classes = [ROOT / "aixun-api/aixun-api-integration/target/classes", ROOT / "aixun-modules/aixun-integration/target/classes", ROOT / "aixun-modules/aixun-dataproduct/target/classes"]
source_files = ["aixun-api/aixun-api-integration/src/main/java/cn/aixunkeji/datagov/integration/api/tablefile/AnalyticsQuery.java", "aixun-modules/aixun-integration/src/main/java/cn/aixunkeji/datagov/integration/tablefile/AnalyticsSqlCompiler.java", "aixun-modules/aixun-integration/src/main/java/cn/aixunkeji/datagov/integration/tablefile/DateBucketSql.java", "aixun-modules/aixun-dataproduct/src/main/java/cn/aixunkeji/datagov/dataproduct/bi/BiQuerySource.java", "aixun-modules/aixun-dataproduct/src/main/java/cn/aixunkeji/datagov/dataproduct/bi/BiTimeBuckets.java"]
if args.compiled_dir:
approved = ROOT / ".local-evidence/bi-axes-wave8/date-classes"
if args.compiled_dir.resolve() != approved.resolve(): raise RuntimeError("Only the task's isolated check output is supported")
expected = json.loads((approved / "source-sha256.json").read_text())
if expected != {name: hashlib.sha256((ROOT / name).read_bytes()).hexdigest() for name in source_files}: raise RuntimeError("Compiled production sources changed; rebuild the isolated check output")
classes.insert(0, approved)
spring = Path.home() / ".m2/repository/org/springframework/spring-web/7.0.8/spring-web-7.0.8.jar"
if not spring.is_file() or any(not path.is_dir() for path in classes): raise RuntimeError("Coordinated production classes unavailable")
java = ["java", "--class-path", os.pathsep.join(str(path) for path in classes + [spring]), str(ROOT / "script/datagov/BiTimeBucketMysqlProbe.java")]
shell = 'test "$MYSQL_DATABASE" = aixun_datagov_system && test -n "$MYSQL_ROOT_PASSWORD" || exit 21; MYSQL_PWD="$MYSQL_ROOT_PASSWORD"; export MYSQL_PWD; exec mysql --user=root --database="$MYSQL_DATABASE" --batch --raw --skip-column-names --default-character-set=utf8mb4 --connect-timeout=5'
mysql = ["docker", "exec", "-i", CONTAINER, "sh", "-c", shell]
version = run(mysql, "SELECT VERSION();\n").strip(); outcomes = []
for case in CASES:
name, unit, rows, expected, minimum, *fiscal = case
fiscal_args = [minimum or "-", str(fiscal[0])] if fiscal else ([minimum] if minimum else [])
generated = run(java + ["compile", unit] + fiscal_args).splitlines()
sql = base64.b64decode(generated[0]).decode(); parameters = [base64.b64decode(value).decode() for value in generated[1].split(",")]
if sql.count(PHYSICAL) != 1 or parameters != [TENANT] + ([minimum] if minimum else []): raise AssertionError("Compiler binding changed")
data = [(day, amount, person, TENANT) for day, amount, person in rows] + [("2024-01-01", 999999, "foreign", "outside")]
fixture = "WITH `bi_date_fixture` AS (" + " UNION ALL ".join(f"SELECT CAST({literal(day)} AS DATE) AS day,CAST({literal(amount)} AS DECIMAL(20,6)) AS amount,{literal(person)} AS person,{literal(tenant)} AS tenant" for day, amount, person, tenant in data) + ") "
projection = ",".join(f"IF({column} IS NULL,'-',TO_BASE64(CAST({column} AS CHAR)))" for column in ("day", "average", "people"))
statement = fixture + f"SELECT {projection} FROM (" + sql.replace(PHYSICAL, "`bi_date_fixture`") + ") AS observed"
commands = ["SET SESSION MAX_EXECUTION_TIME=10000", f"SET @fixture_sql={literal(statement)}", "PREPARE fixture_statement FROM @fixture_sql"]
commands += [f"SET @fixture_p{i}={literal(value)}" for i, value in enumerate(parameters)]
commands += ["EXECUTE fixture_statement USING " + ",".join(f"@fixture_p{i}" for i in range(len(parameters))), "DEALLOCATE PREPARE fixture_statement"]
returned = run(mysql, ";\n".join(commands) + ";\n")
actual = [tuple(None if value == "-" else base64.b64decode(value).decode() for value in line.split("\t")) for line in returned.splitlines()]
if len(actual) != len(expected): raise AssertionError(name + " unexpected row count")
for received, wanted in zip(actual, expected):
if received[0] != wanted[0] or Decimal(received[1]) != Decimal(wanted[1]) or received[2] != wanted[2]: raise AssertionError(f"{name}: {received!r} != {wanted!r}")
owner = run(java + ["validate", unit] + (["-", str(fiscal[0])] if fiscal else []), returned).strip()
if owner != f"SUCCEEDED\t{len(expected)}": raise AssertionError("Owner did not validate actual dates")
outcomes.append({"case": name, "status": "PASS", "rows": len(actual), "compilerSha256": hashlib.sha256(sql.encode()).hexdigest(), "executedSha256": hashlib.sha256(statement.encode()).hexdigest()})
print(json.dumps({"status": "PASS", "container": CONTAINER, "mysqlVersion": version, "writes": "NONE", "compiler": "ACTUAL_SOURCE_ISOLATED_CHECK" if args.compiled_dir else "COORDINATED_TARGET_CLASSES", "sourceSha256": {name: hashlib.sha256((ROOT / name).read_bytes()).hexdigest() for name in source_files}, "cases": outcomes, "limits": ["Native authorization end-to-end NOT_RUN", "Browser NOT_RUN", "MariaDB NOT_RUN", "No prior-year comparison"]}, ensure_ascii=False, indent=2))
if __name__ == "__main__": main()
@@ -0,0 +1,83 @@
#!/usr/bin/env python3
"""Exercise actual export-repository SQL in connection-local temporary MySQL tables.
No migration or persisted business data is changed. SQL is taken from production
source, not copied into a second implementation. Credentials stay in the container.
"""
import argparse
import hashlib
import importlib.util
import json
import re
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
helper_spec = importlib.util.spec_from_file_location("fixture_helpers", ROOT / "script/datagov/bi-other-mysql-smoke.py")
helpers = importlib.util.module_from_spec(helper_spec)
helper_spec.loader.exec_module(helpers)
run, CONTAINER = helpers.run, helpers.CONTAINER
SOURCE = ROOT / "aixun-modules/aixun-dataproduct/src/main/java/cn/aixunkeji/datagov/dataproduct/bi/BiExportJobRepository.java"
DDL = ROOT / "db/migration/dataproduct/V20261012.239__create_bi_export_jobs.sql"
def literal(value):
return "''" if value == "" else helpers.literal(value)
def main():
parser = argparse.ArgumentParser(); parser.add_argument("--execute", action="store_true"); args = parser.parse_args()
if not args.execute:
print(json.dumps({"status": "NOT_RUN", "container": CONTAINER, "writes": "SESSION_TEMPORARY_TABLES_ONLY"})); return
identity = run(["docker", "inspect", "--format", '{{.Name}}|{{index .Config.Labels "com.docker.compose.project"}}|{{index .Config.Labels "com.docker.compose.service"}}|{{.State.Running}}|{{range $n,$v := .NetworkSettings.Networks}}{{$n}} {{end}}', CONTAINER]).strip().split("|")
if identity[:4] != ["/" + CONTAINER, "aixun-datagov-local", "mysql", "true"] or not identity[4].split() or any(not name.startswith("aixun-datagov-local-") for name in identity[4].split()):
raise RuntimeError("DataGov container ownership mismatch")
production = re.findall(r'"((?:INSERT|UPDATE|SELECT)[^"\n]+)"', SOURCE.read_text())
def sql(prefix):
matches = [value for value in production if value.startswith(prefix)]
if len(matches) != 1: raise AssertionError("Production SQL selector is no longer unique")
return matches[0]
statements = [statement.replace("CREATE TABLE", "CREATE TEMPORARY TABLE", 1) for statement in re.findall(r"CREATE TABLE .*?;", DDL.read_text(), re.S)]
if len(statements) != 4: raise AssertionError("Unexpected export table set")
statements += ["SET SESSION MAX_EXECUTION_TIME=10000", "START TRANSACTION"]
def execute(query, values=()):
if query.count("?") != len(values): raise AssertionError("Production SQL parameter count changed")
statements.extend(["SET @fixture_sql=" + literal(query), "PREPARE fixture_statement FROM @fixture_sql"])
statements.extend("SET @fixture_p%d=%s" % (index, literal(value)) for index, value in enumerate(values))
statements.append("EXECUTE fixture_statement" + (" USING " + ",".join("@fixture_p%d" % index for index in range(len(values))) if values else ""))
statements.append("DEALLOCATE PREPARE fixture_statement")
def observe(name, condition):
statements.append("SELECT " + literal(name) + ",IF(" + condition + ",'PASS','FAIL')")
execute(sql("INSERT IGNORE INTO svc_bi_export_admission"), [7,10,10,7,7])
execute(sql("INSERT IGNORE INTO svc_bi_export_admission"), [7,10,10,7,7])
observe("admission_is_idempotent_and_audited", "(SELECT COUNT(*)=1 AND MIN(create_by)=7 AND MIN(create_dept)=10 FROM svc_bi_export_admission)")
ids = ["00000000-0000-4000-8000-%012d" % number for number in range(1, 6)]
for index, job in enumerate(ids):
execute(sql("INSERT INTO svc_bi_export_job("), [job,ids[0],2,7,10,"request%d" % index,"a"*64,'{"version":2}',"{}","b"*64,1,0,"CSV","", "2099-01-01 00:00:00",10,7,7])
observe("all_jobs_have_actor_audit", "(SELECT COUNT(*)=5 FROM svc_bi_export_job WHERE create_dept=10 AND create_by=7 AND update_by=7)")
statements.append("UPDATE svc_bi_export_job SET state='RUNNING',attempts=3,lease_nonce='old',lease_fence=3,lease_until=DATE_SUB(NOW(6),INTERVAL 1 MINUTE),file_bytes=0x0102,target_json=JSON_OBJECT('identity','retained'),operation_key=SHA2(job_id,256)")
statements.append("UPDATE svc_bi_export_job SET attempts=2 WHERE job_id=" + literal(ids[1]))
statements.append("UPDATE svc_bi_export_job SET lease_until=DATE_ADD(NOW(6),INTERVAL 1 MINUTE) WHERE job_id=" + literal(ids[2]))
statements.append("UPDATE svc_bi_export_job SET expires_at=DATE_SUB(NOW(6),INTERVAL 1 MINUTE) WHERE job_id=" + literal(ids[3]))
statements.append("UPDATE svc_bi_export_job SET state='READY' WHERE job_id=" + literal(ids[4]))
execute(sql("UPDATE svc_bi_export_job SET state='UNKNOWN',safe_code='RECOVERY_EXHAUSTED'"))
observe("crashed_third_attempt_is_recoverable_without_new_file", "(SELECT state='UNKNOWN' AND safe_code='RECOVERY_EXHAUSTED' AND lease_nonce IS NULL AND lease_fence=3 AND HEX(file_bytes)='0102' AND target_json->>'$.identity'='retained' AND operation_key=SHA2(job_id,256) FROM svc_bi_export_job WHERE job_id=" + literal(ids[0]) + ")")
observe("earlier_attempt_live_lease_expired_and_ready_are_not_exhausted", "(SELECT COUNT(*)=4 FROM svc_bi_export_job WHERE safe_code IS NULL)")
execute(sql("UPDATE svc_bi_export_job SET state='QUEUED'"), [ids[0],1])
execute(sql("UPDATE svc_bi_export_job SET state='RUNNING'"), ["11111111-1111-4111-8111-111111111111",ids[0]])
observe("explicit_retry_reuses_job_and_advances_lease_fence", "(SELECT state='RUNNING' AND attempts=1 AND lease_fence=4 AND version=3 AND HEX(file_bytes)='0102' FROM svc_bi_export_job WHERE job_id=" + literal(ids[0]) + ")")
execute(sql("UPDATE svc_bi_export_job SET state='READY'"), [ids[0],"old",3])
observe("old_worker_cannot_complete_new_lease", "(SELECT state='RUNNING' AND version=3 FROM svc_bi_export_job WHERE job_id=" + literal(ids[0]) + ")")
execute(sql("INSERT IGNORE INTO svc_bi_export_mutation"), [7,10,"retry001","c"*64,10,7,7])
execute(sql("UPDATE svc_bi_export_mutation SET job_id="), [ids[0],7,10,"retry001"])
observe("mutation_receipt_has_actor_and_version", "(SELECT job_id=" + literal(ids[0]) + " AND version=1 AND create_by=7 AND create_dept=10 FROM svc_bi_export_mutation)")
execute(sql("INSERT INTO svc_bi_export_event("), [ids[0],7,10,"RETRY",3,10,7,7])
observe("job_event_has_actor_and_version", "(SELECT event_type='RETRY' AND job_version=3 AND create_by=7 AND create_dept=10 FROM svc_bi_export_event)")
statements.append("ROLLBACK")
shell = 'test "$MYSQL_DATABASE" = aixun_datagov_system && test -n "$MYSQL_ROOT_PASSWORD" || exit 21; MYSQL_PWD="$MYSQL_ROOT_PASSWORD"; export MYSQL_PWD; exec mysql --user=root --database="$MYSQL_DATABASE" --batch --raw --skip-column-names --default-character-set=utf8mb4 --connect-timeout=5'
returned = run(["docker", "exec", "-i", CONTAINER, "sh", "-c", shell], ";\n".join(statements) + ";\n")
outcomes = [dict(zip(["case", "status"], line.split("\t"))) for line in returned.splitlines()]
if len(outcomes) != 8 or any(value.get("status") != "PASS" for value in outcomes): raise AssertionError(json.dumps(outcomes))
print(json.dumps({"status":"PASS", "container":CONTAINER, "writes":"SESSION_TEMPORARY_TABLES_ONLY_ROLLED_BACK", "sourceSha256":hashlib.sha256(SOURCE.read_bytes()).hexdigest(), "schemaSha256":hashlib.sha256(DDL.read_bytes()).hexdigest(), "cases":outcomes, "limits":["Multi-session SKIP LOCKED race NOT_RUN", "HTTP and Resource file roundtrip NOT_RUN"]}, ensure_ascii=False, indent=2))
if __name__ == "__main__": main()
+99
查看文件
@@ -0,0 +1,99 @@
#!/usr/bin/env python3
"""Production compiler/decoder against pure synthetic CTEs in DataGov's own MySQL.
No real table is read, created or modified. The sole target substitution binds the
compiler's fixed physical fixture identifier to a literal CTE. All aggregation,
top ordering, anti-match and four prepared parameters remain compiler-produced.
The local container's existing credential is used only inside that container.
"""
import argparse
import base64
import hashlib
import json
import os
from pathlib import Path
import subprocess
from decimal import Decimal
ROOT = Path(__file__).resolve().parents[2]
CONTAINER = "aixun-datagov-mysql"
PHYSICAL = "`aixun_datagov_system`.`bi_other_fixture`"
TENANT = "fixture' OR 1=1 --"
CASES = [
("unequal_group_average", "AVG", 1, [("a", 100), ("a", 100), ("b", 10), ("c", 0), ("c", 0), ("c", 0)], [("a", "100", "0"), (None, "2.5", "1"), (None, "0", "2")], False),
("cross_category_distinct", "COUNT_DISTINCT", 1, [("a", 1), ("a", 2), ("a", 3), ("b", 1), ("b", 2), ("c", 2), ("c", 4)], [("a", "3", "0"), (None, "3", "1"), (None, "2", "2")], False),
("null_and_actual_other", "SUM", 2, [(None, 100), ("其他", 90), ("b", 20)], [(None, "100", "0"), ("其他", "90", "0"), (None, "20", "1"), (None, "20", "2")], False),
("stable_ties_null_last", "SUM", 2, [("b", 10), (None, 10), ("a", 10)], [("a", "10", "0"), ("b", "10", "0"), (None, "10", "1"), (None, "10", "2")], False),
("hidden_negative_positive_remainder", "SUM", 1, [("a", 100), ("b", -10), ("c", 20)], [("a", "100", "0"), (None, "10", "1"), (None, "-10", "2")], True),
("no_remainder", "AVG", 2, [("a", 4)], [("a", "4", "0"), (None, "4", "2")], False),
("all_null_remaining_values", "AVG", 1, [("a", 10), ("b", None), ("c", None)], [("a", "10", "0"), (None, None, "1"), (None, "10", "2")], False),
("empty_filtered_result", "AVG", 1, [], [(None, None, "2")], False),
]
def run(command, data=None, timeout=45):
result = subprocess.run(command, input=data, text=True, capture_output=True, timeout=timeout, cwd=ROOT)
if result.returncode:
# The invocation has no literal credentials; preserve a bounded error for diagnosis.
raise RuntimeError(result.stderr[-1800:] or "Process failed")
return result.stdout
def b64(value):
return base64.b64encode(value.encode()).decode()
def literal(value):
return "NULL" if value is None else f"CONVERT(0x{str(value).encode().hex()} USING utf8mb4)"
def fixture(rows):
# A foreign synthetic tenant must be excluded on every source occurrence.
values = [(category, amount, TENANT) for category, amount in rows] + [("foreign", 99999, "outside")]
return "WITH `bi_other_fixture` AS (" + " UNION ALL ".join(
f"SELECT CAST({literal(c)} AS CHAR(128)) AS category,CAST({literal(v)} AS DECIMAL(20,6)) AS amount,{literal(t)} AS tenant"
for c, v, t in values) + ") "
def compare(actual, expected):
if len(actual) != len(expected):
raise AssertionError(f"row count {len(actual)} != {len(expected)}")
for received, wanted in zip(actual, expected):
if received[0] != wanted[0] or received[2] != wanted[2]:
raise AssertionError(f"category/level mismatch {received!r} != {wanted!r}")
if (received[1] is None) != (wanted[1] is None) or wanted[1] is not None and Decimal(received[1]) != Decimal(wanted[1]):
raise AssertionError(f"aggregate mismatch {received!r} != {wanted!r}")
def main():
parser = argparse.ArgumentParser(); parser.add_argument("--execute", action="store_true"); args = parser.parse_args()
if not args.execute:
print(json.dumps({"status": "NOT_RUN", "container": CONTAINER, "cases": [c[0] for c in CASES], "writes": "NONE; literal CTE only"}, ensure_ascii=False)); return
identity = run(["docker", "inspect", "--format", '{{.Name}}|{{index .Config.Labels "com.docker.compose.project"}}|{{index .Config.Labels "com.docker.compose.service"}}|{{.State.Running}}|{{range $n,$v := .NetworkSettings.Networks}}{{$n}} {{end}}', CONTAINER]).strip().split("|")
if identity[:4] != ["/" + CONTAINER, "aixun-datagov-local", "mysql", "true"] or not identity[4].split() or any(not n.startswith("aixun-datagov-local-") for n in identity[4].split()):
raise RuntimeError("DataGov container ownership mismatch")
dependencies = [ROOT / "aixun-api/aixun-api-integration/target/classes", ROOT / "aixun-modules/aixun-integration/target/classes", ROOT / "aixun-modules/aixun-dataproduct/target/classes"]
for path in dependencies:
if not path.is_dir(): raise RuntimeError("Production classes are unavailable; run the coordinated affected tests first")
spring = Path.home() / ".m2/repository/org/springframework/spring-web/7.0.8/spring-web-7.0.8.jar"
if not spring.is_file(): raise RuntimeError("Expected managed Spring Web dependency unavailable")
java = ["java", "--class-path", os.pathsep.join(str(p) for p in dependencies + [spring]), str(ROOT / "script/datagov/BiOtherMysqlProbe.java")]
shell = 'test "$MYSQL_DATABASE" = aixun_datagov_system && test -n "$MYSQL_ROOT_PASSWORD" || exit 21; MYSQL_PWD="$MYSQL_ROOT_PASSWORD"; export MYSQL_PWD; exec mysql --user=root --database="$MYSQL_DATABASE" --batch --raw --skip-column-names --default-character-set=utf8mb4 --connect-timeout=5'
mysql = ["docker", "exec", "-i", CONTAINER, "sh", "-c", shell]
version = run(mysql, "SELECT VERSION();\n").strip()
results = []
for name, aggregate, top, rows, expected, rejected in CASES:
generated = run(java + ["compile", aggregate, str(top)]).splitlines()
sql = base64.b64decode(generated[0]).decode(); parameters = [base64.b64decode(p).decode() for p in generated[1].split(",")]
if sql.count(PHYSICAL) != 4 or parameters != [TENANT] * 4: raise AssertionError("Production plan binding changed")
sql = sql.rstrip(";")
projection = ",".join(f"IF({column} IS NULL,'-',TO_BASE64(CAST({column} AS CHAR)))" for column in ("category", "value", "__aixun_category_level"))
statement = fixture(rows) + f"SELECT {projection} FROM (" + sql.replace(PHYSICAL, "`bi_other_fixture`") + ") AS observed"
commands = ["SET SESSION MAX_EXECUTION_TIME=10000", f"SET @fixture_sql={literal(statement)}", "PREPARE fixture_statement FROM @fixture_sql"]
commands += [f"SET @fixture_p{i}={literal(value)}" for i, value in enumerate(parameters)]
commands += ["EXECUTE fixture_statement USING " + ",".join(f"@fixture_p{i}" for i in range(len(parameters))), "DEALLOCATE PREPARE fixture_statement"]
received = run(mysql, ";\n".join(commands) + ";\n")
actual = [tuple(None if value == "-" else base64.b64decode(value).decode() for value in line.split("\t")) for line in received.splitlines()]
compare(actual, expected)
owner = run(java + ["decode", aggregate, str(top)], received).strip()
if rejected and owner != "REJECTED\t149109" or not rejected and not owner.startswith("SUCCEEDED\t"):
raise AssertionError(f"Owner outcome mismatch: {owner}")
results.append({"case": name, "status": "PASS", "rawRowCount": len(actual), "owner": owner.split("\t"), "compilerSha256": hashlib.sha256(sql.encode()).hexdigest(), "executedSha256": hashlib.sha256(statement.encode()).hexdigest()})
print(json.dumps({"status": "PASS", "container": CONTAINER, "mysqlVersion": version, "writes": "NONE", "binding": "fixed physical fixture identifier to literal CTE only", "cases": results, "limits": ["Not a Browser test", "Does not prove Native source registration or live reader RBAC", "Other database engines NOT_RUN"]}, ensure_ascii=False, indent=2))
if __name__ == "__main__":
main()
@@ -0,0 +1,66 @@
#!/usr/bin/env python3
"""Actual production comparison Plan/compiler over literal CTEs; no business rows or writes."""
import argparse
import base64
from decimal import Decimal
import hashlib
import importlib.util
import json
import os
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
module = importlib.util.spec_from_file_location("bi_fixture_helpers", ROOT / "script/datagov/bi-other-mysql-smoke.py")
helpers = importlib.util.module_from_spec(module); module.loader.exec_module(helpers)
run, literal, CONTAINER, TENANT = helpers.run, helpers.literal, helpers.CONTAINER, helpers.TENANT
SOURCES = ["aixun-api/aixun-api-integration/src/main/java/cn/aixunkeji/datagov/integration/api/tablefile/AnalyticsQuery.java", "aixun-modules/aixun-integration/src/main/java/cn/aixunkeji/datagov/integration/tablefile/AnalyticsSqlCompiler.java", "aixun-modules/aixun-integration/src/main/java/cn/aixunkeji/datagov/integration/tablefile/DateBucketSql.java", "aixun-modules/aixun-integration/src/main/java/cn/aixunkeji/datagov/integration/tablefile/PeriodComparisonSql.java", "aixun-modules/aixun-integration/src/main/java/cn/aixunkeji/datagov/integration/tablefile/CategoryRemainderSql.java"]
CASES = [
("raw_average_and_cross_day_distinct", "MONTH", "2024-02-01", "2024-03-01", None, [("2023-02-01", "A", 10, "a"), ("2023-02-28", "A", 30, "b"), ("2024-02-01", "A", 10, "a"), ("2024-02-28", "A", 20, "a"), ("2024-02-29", "A", 40, "b"), ("2024-02-29", "A", 90, "b")], [("2024-02-01", "A", "40", "2", "20", "20", "1", "2", "0", "0")]),
("null_key_and_missing_sides_zero_baseline", "MONTH", "2024-02-01", "2024-03-01", None, [("2023-02-10", None, 0, "a"), ("2024-02-10", None, 10, "a"), ("2024-02-10", "A", 15, "a"), ("2023-02-10", "B", 5, "b")], [("2024-02-01", None, "10", "1", "0", "10", None, "1", "0", "0"), ("2024-02-01", "A", "15", "1", None, None, None, None, None, None), ("2024-02-01", "B", None, None, "5", None, None, "1", None, None)]),
("negative_baseline_does_not_flip_rate_meaning", "MONTH", "2024-02-01", "2024-03-01", None, [("2023-02-10", "A", -5, "a"), ("2024-02-10", "A", 10, "a")], [("2024-02-01", "A", "10", "1", "-5", "15", None, "1", "0", "0")]),
("fiscal_quarter_aligns_real_bucket_start", "FISCAL_QUARTER", "2023-12-01", "2024-03-01", 12, [("2023-01-31", "A", 10, "a"), ("2024-01-31", "A", 30, "b")], [("2023-12-01", "A", "30", "1", "10", "20", "2", "1", "0", "0")]),
("empty_does_not_create_comparison_zeroes", "MONTH", "2024-02-01", "2024-03-01", None, [], []),
("fractional_decimal_difference_and_ratio", "MONTH", "2024-02-01", "2024-03-01", None, [("2023-02-10", "A", "0.1", "a"), ("2024-02-10", "A", "0.3", "a")], [("2024-02-01", "A", "0.3", "1", "0.1", "0.2", "2", "1", "0", "0")]),
("large_decimal_preserves_above_javascript_integer_limit", "MONTH", "2024-02-01", "2024-03-01", None, [("2023-02-10", "A", "9007199254740993", "a"), ("2024-02-10", "A", "18014398509481986", "a")], [("2024-02-01", "A", "18014398509481986", "1", "9007199254740993", "9007199254740993", "1", "1", "0", "0")]),
]
def main():
parser = argparse.ArgumentParser(); parser.add_argument("--execute", action="store_true"); args = parser.parse_args()
if not args.execute:
print(json.dumps({"status": "NOT_RUN", "cases": [c[0] for c in CASES], "writes": "NONE"})); return
identity = run(["docker", "inspect", "--format", '{{.Name}}|{{index .Config.Labels "com.docker.compose.project"}}|{{index .Config.Labels "com.docker.compose.service"}}|{{.State.Running}}|{{range $n,$v := .NetworkSettings.Networks}}{{$n}} {{end}}', CONTAINER]).strip().split("|")
if identity[:4] != ["/" + CONTAINER, "aixun-datagov-local", "mysql", "true"] or not identity[4].split() or any(not n.startswith("aixun-datagov-local-") for n in identity[4].split()): raise RuntimeError("DataGov ownership mismatch")
compiled = ROOT / ".local-evidence/bi-axes-wave8/date-classes"
hashes = {p: hashlib.sha256((ROOT / p).read_bytes()).hexdigest() for p in SOURCES}
if json.loads((compiled / "comparison-source-sha256.json").read_text()) != hashes: raise RuntimeError("Recompile actual production comparison sources")
classes = [compiled, ROOT / "aixun-api/aixun-api-integration/target/classes", ROOT / "aixun-modules/aixun-integration/target/classes"]
classpath = os.pathsep.join(str(p) for p in classes)
# Package-private production compiler and its fixture must share the same application classloader.
run(["javac", "--release", "21", "-cp", classpath, "-d", str(compiled), str(ROOT / "script/datagov/BiPeriodComparisonMysqlProbe.java")])
java = ["java", "--class-path", classpath, "cn.aixunkeji.datagov.integration.tablefile.BiPeriodComparisonMysqlProbe"]
shell = 'test "$MYSQL_DATABASE" = aixun_datagov_system && test -n "$MYSQL_ROOT_PASSWORD" || exit 21; MYSQL_PWD="$MYSQL_ROOT_PASSWORD"; export MYSQL_PWD; exec mysql --user=root --database="$MYSQL_DATABASE" --batch --raw --skip-column-names --default-character-set=utf8mb4 --connect-timeout=5'
mysql = ["docker", "exec", "-i", CONTAINER, "sh", "-c", shell]
version = run(mysql, "SELECT VERSION();\n").strip(); outcomes = []
for name, unit, start, end, fiscal, rows, expected in CASES:
generated = run(java + [unit, start, end] + ([str(fiscal)] if fiscal else [])).splitlines()
sql = base64.b64decode(generated[0]).decode(); parameters = [base64.b64decode(p).decode() for p in generated[1].split(",")]; columns = generated[2].split(",")
physical = "`aixun_datagov_system`.`bi_yoy_fixture`"
if sql.count(physical) != 2 or parameters[0] != TENANT or parameters[3] != TENANT: raise AssertionError("Compiler bindings changed")
data = [(day, area, amount, person, TENANT) for day, area, amount, person in rows] + [("2024-02-01", "foreign", 999999, "foreign", "outside")]
fixture = "WITH `bi_yoy_fixture` AS (" + " UNION ALL ".join(f"SELECT CAST({literal(day)} AS DATE) AS day,{literal(area)} AS area,CAST({literal(amount)} AS DECIMAL(38,10)) AS amount,{literal(person)} AS person,{literal(tenant)} AS tenant" for day, area, amount, person, tenant in data) + ") "
projection = ",".join(f"IF(`{c}` IS NULL,'-',TO_BASE64(CAST(`{c}` AS CHAR)))" for c in columns)
statement = fixture + f"SELECT {projection} FROM (" + sql.replace(physical, "`bi_yoy_fixture`") + ") AS observed"
commands = ["SET SESSION MAX_EXECUTION_TIME=10000", f"SET @fixture_sql={literal(statement)}", "PREPARE fixture_statement FROM @fixture_sql"]
commands += [f"SET @fixture_p{i}={literal(p)}" for i, p in enumerate(parameters)]
commands += ["EXECUTE fixture_statement USING " + ",".join(f"@fixture_p{i}" for i in range(len(parameters))), "DEALLOCATE PREPARE fixture_statement"]
returned = run(mysql, ";\n".join(commands) + ";\n")
actual = [tuple(None if p == "-" else base64.b64decode(p).decode() for p in line.split("\t")) for line in returned.splitlines()]
if len(actual) != len(expected): raise AssertionError(name + " row count changed")
for received, wanted in zip(actual, expected):
if len(received) != len(wanted): raise AssertionError(name + " column count changed")
for i, (a, b) in enumerate(zip(received, wanted)):
if (a != b if i < 2 or a is None or b is None else Decimal(a) != Decimal(b)): raise AssertionError(f"{name}: {received!r} != {wanted!r}")
outcomes.append({"case": name, "status": "PASS", "rows": len(actual), "compilerSha256": hashlib.sha256(sql.encode()).hexdigest(), "executedSha256": hashlib.sha256(statement.encode()).hexdigest()})
print(json.dumps({"status": "PASS", "container": CONTAINER, "mysqlVersion": version, "writes": "NONE", "sourceSha256": hashes, "cases": outcomes, "limits": ["Actual Plan/compiler SQL and result metadata; Native policy and Browser NOT_RUN", "MariaDB NOT_RUN"]}, ensure_ascii=False, indent=2))
if __name__ == "__main__": main()
@@ -0,0 +1,62 @@
#!/usr/bin/env python3
"""Production relative DATE arithmetic + compiler against literal CTEs. No business data/DDL/writes."""
import argparse
import base64
from datetime import date, timedelta
from decimal import Decimal
import hashlib
import importlib.util
import json
import os
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
spec = importlib.util.spec_from_file_location("bi_fixture_helpers", ROOT / "script/datagov/bi-other-mysql-smoke.py")
helpers = importlib.util.module_from_spec(spec); spec.loader.exec_module(helpers)
run, literal, CONTAINER, TENANT = helpers.run, helpers.literal, helpers.CONTAINER, helpers.TENANT
API = "aixun-api/aixun-api-integration/src/main/java/cn/aixunkeji/datagov/integration/api/tablefile/"
SQL = "aixun-modules/aixun-integration/src/main/java/cn/aixunkeji/datagov/integration/tablefile/"
SOURCES = [API + n + ".java" for n in ["AnalyticsQuery", "AnalyticsRelativeWindow"]] + [SQL + n + ".java" for n in ["AnalyticsSqlCompiler", "RelativeWindowSql", "DateBucketSql", "PeriodComparisonSql", "CategoryRemainderSql"]]
CASES = [
("east_leap_day", "DAY", 1, "Asia/Shanghai", "2024-03-01T00:30:00Z", "2024-03-01", "2024-02-29", "2024-03-01", False),
("same_instant_west", "DAY", 1, "America/Los_Angeles", "2024-03-01T00:30:00Z", "2024-02-29", "2024-02-28", "2024-02-29", False),
("dst_date_not_duration", "DAY", 2, "America/New_York", "2024-03-11T04:30:00Z", "2024-03-11", "2024-03-09", "2024-03-11", False),
("monday_week_cross_year", "WEEK", 1, "UTC", "2025-01-01T12:00:00Z", "2025-01-01", "2024-12-23", "2024-12-30", False),
("complete_months", "MONTH", 2, "UTC", "2025-01-31T12:00:00Z", "2025-01-31", "2024-11-01", "2025-01-01", False),
("gregorian_quarter", "QUARTER", 2, "UTC", "2025-02-12T12:00:00Z", "2025-02-12", "2024-07-01", "2025-01-01", False),
("complete_year", "YEAR", 1, "UTC", "2025-12-31T12:00:00Z", "2025-12-31", "2024-01-01", "2025-01-01", False),
("source_date_policy_intersection", "MONTH", 1, "UTC", "2024-03-15T12:00:00Z", "2024-03-15", "2024-02-01", "2024-03-01", True),
]
def main():
parser = argparse.ArgumentParser(); parser.add_argument("--execute", action="store_true"); args = parser.parse_args()
if not args.execute:
print(json.dumps({"status": "NOT_RUN", "cases": [c[0] for c in CASES], "writes": "NONE"})); return
identity = run(["docker", "inspect", "--format", '{{.Name}}|{{index .Config.Labels "com.docker.compose.project"}}|{{index .Config.Labels "com.docker.compose.service"}}|{{.State.Running}}|{{range $n,$v := .NetworkSettings.Networks}}{{$n}} {{end}}', CONTAINER]).strip().split("|")
if identity[:4] != ["/" + CONTAINER, "aixun-datagov-local", "mysql", "true"] or not identity[4].split() or any(not n.startswith("aixun-datagov-local-") for n in identity[4].split()): raise RuntimeError("DataGov ownership mismatch")
compiled = ROOT / ".local-evidence/bi-axes-wave8/date-classes"
hashes = {p: hashlib.sha256((ROOT / p).read_bytes()).hexdigest() for p in SOURCES}
if json.loads((compiled / "relative-source-sha256.json").read_text()) != hashes: raise RuntimeError("Recompile production relative sources")
classpath = os.pathsep.join(str(p) for p in [compiled, ROOT / "aixun-api/aixun-api-integration/target/classes", ROOT / "aixun-modules/aixun-integration/target/classes"])
run(["javac", "--release", "21", "-cp", classpath, "-d", str(compiled), str(ROOT / "script/datagov/BiRelativeWindowMysqlProbe.java")])
java = ["java", "--class-path", classpath, "cn.aixunkeji.datagov.integration.tablefile.BiRelativeWindowMysqlProbe"]
shell = 'test "$MYSQL_DATABASE" = aixun_datagov_system && test -n "$MYSQL_ROOT_PASSWORD" || exit 21; MYSQL_PWD="$MYSQL_ROOT_PASSWORD"; export MYSQL_PWD; exec mysql --user=root --database="$MYSQL_DATABASE" --batch --raw --skip-column-names --default-character-set=utf8mb4 --connect-timeout=5'
mysql = ["docker", "exec", "-i", CONTAINER, "sh", "-c", shell]
version = run(mysql, "SELECT VERSION();\n").strip(); outcomes = []
for name, unit, count, zone, instant, reference, start, end, policy in CASES:
last = (date.fromisoformat(end) - timedelta(days=1)).isoformat()
generated = run(java + [unit, str(count), zone, instant] + ([last] if policy else [])).splitlines()
sql = base64.b64decode(generated[0]).decode(); parameters = [base64.b64decode(p).decode() for p in generated[1].split(",")]
if generated[3] != ",".join([reference, start, end]) or generated[2] != "average,people": raise AssertionError(name + " frozen metadata changed")
physical = "`aixun_datagov_system`.`bi_relative_fixture`"
if sql.count(physical) != 1 or parameters != [TENANT] + ([last] if policy else []) + [start, end]: raise AssertionError("Production bindings changed")
rows = [(start, 10, "a", TENANT), (last, 20, "a", TENANT), (last, 30, "b", TENANT), ((date.fromisoformat(start)-timedelta(days=1)).isoformat(), 999, "before", TENANT), (end, 999, "after", TENANT), (None, 999, "null", TENANT), (last, 999, "foreign", "outside")]
fixture = "WITH `bi_relative_fixture` AS (" + " UNION ALL ".join(f"SELECT CAST({literal(day)} AS DATE) AS day,CAST({literal(amount)} AS DECIMAL(38,10)) AS amount,{literal(person)} AS person,{literal(tenant)} AS tenant" for day, amount, person, tenant in rows) + ") "
statement = fixture + sql.replace(physical, "`bi_relative_fixture`")
commands = ["SET SESSION MAX_EXECUTION_TIME=10000", f"SET @fixture_sql={literal(statement)}", "PREPARE fixture_statement FROM @fixture_sql"] + [f"SET @fixture_p{i}={literal(p)}" for i, p in enumerate(parameters)] + ["EXECUTE fixture_statement USING " + ",".join(f"@fixture_p{i}" for i in range(len(parameters))), "DEALLOCATE PREPARE fixture_statement"]
returned = run(mysql, ";\n".join(commands) + ";\n").strip().split("\t")
if len(returned) != 2 or Decimal(returned[0]) != Decimal(25 if policy else 20) or returned[1] != "2": raise AssertionError(name + " aggregate mismatch")
outcomes.append({"case": name, "status": "PASS", "window": generated[3], "compilerSha256": hashlib.sha256(sql.encode()).hexdigest(), "executedSha256": hashlib.sha256(statement.encode()).hexdigest()})
print(json.dumps({"status": "PASS", "container": CONTAINER, "mysqlVersion": version, "writes": "NONE", "sourceSha256": hashes, "cases": outcomes, "limits": ["Native policies, Browser, MariaDB NOT_RUN", "Only literal synthetic CTEs, no business reads"]}, ensure_ascii=False, indent=2))
if __name__ == "__main__": main()
+30
查看文件
@@ -0,0 +1,30 @@
-- 合成测试数据,只能在已登记的 DataGov 本项目测试 MySQL/MariaDB 数据库中人工确认后执行。
-- 本文件不是迁移;不创建数据库、不改账户、不删除现有表。重复执行因表已存在而停止。
-- 必须随后运行本项目 Native 完整扫描,不能手写 Native UUID、扫描证据或唯一键声明。
CREATE TABLE dg_bi_semantic_departments (
id BIGINT NOT NULL PRIMARY KEY,
region_id BIGINT NOT NULL,
department_name VARCHAR(64) NOT NULL
);
CREATE TABLE dg_bi_semantic_orders (
id BIGINT NOT NULL PRIMARY KEY,
department_id BIGINT NOT NULL,
amount DECIMAL(18,2) NULL,
contact_label VARCHAR(64) NULL
);
INSERT INTO dg_bi_semantic_departments(id, region_id, department_name) VALUES
(10, 50, '合成甲部门'), (20, 50, '合成乙部门'), (30, 60, '合成丙部门');
INSERT INTO dg_bi_semantic_orders(id, department_id, amount, contact_label) VALUES
(1,10,100.10,'合成联系人A'), (2,10,NULL,'合成联系人B'),
(3,20,200.20,'合成联系人C'), (4,20,-20.20,'合成联系人D'),
(5,30,0.00,NULL), (6,999,5.00,'合成未匹配联系人');
-- 正向 LEFT JOIN departments.id,按 department_name + SUM(amount):
-- 合成甲部门 100.10;合成乙部门 180.00;合成丙部门 0.00;NULL 5.00。
-- 全部事实金额 285.10,非空金额COUNT=5,行数=6;NULL金额不可当成另一笔0元收入。
-- 反例改关联到 departments.region_id:该列非唯一,必须拒绝,不能执行后再补SUM去重。
-- 行策略仅允许 orders.department_id=10:必须只返回甲部门100.10。
-- 将关联键设为受保护列:必须拒绝;仅输出contact_label时按真实脱敏策略处理。
-- 透视验证使用 department_name(行)+ orders.id(列),不使用联系人字段:
-- AVG(amount)行汇总:甲100.10、乙90.00、丙0.00、NULL部门5.00;源重算总计57.02。
-- 总计不能是四个行平均值的平均48.775;金额为NULL的订单2仍为单元格NULL。
-- COUNT_DISTINCT(department_id)总计必须为4,不能将六个订单单元格的计数相加为6。
@@ -0,0 +1,38 @@
{
"sourceId": "REPLACE_WITH_REGISTERED_DATAGOV_TEST_SOURCE_ID",
"databaseName": "REPLACE_WITH_SELECTED_TEST_DATABASE",
"nativeTables": {
"REPLACE_WITH_SCANNED_ORDERS_UUID": "dg_bi_semantic_orders",
"REPLACE_WITH_SCANNED_DEPARTMENTS_UUID": "dg_bi_semantic_departments"
},
"cases": [
{
"name": "same-source-left-join-exact-decimal",
"objectId": "REPLACE_WITH_SAVED_ANALYSIS_UUID",
"version": 0,
"expect": "SUCCEEDED",
"columns": ["department", "revenue"],
"rows": [
{"department": "合成甲部门", "revenue": "100.10"},
{"department": "合成乙部门", "revenue": "180.00"},
{"department": "合成丙部门", "revenue": "0.00"},
{"department": null, "revenue": "5.00"}
]
},
{
"name": "non-unique-dimension-key-denied",
"objectId": "REPLACE_WITH_NON_UNIQUE_KEY_ANALYSIS_UUID",
"version": 0,
"expect": "DENIED",
"messageContains": ["唯一索引核验"]
},
{
"name": "current-reader-without-source-permission-denied",
"objectId": "REPLACE_WITH_SAVED_ANALYSIS_UUID",
"version": 0,
"expect": "DENIED",
"tokenEnv": "AIXUN_BI_READER_TOKEN",
"messageContains": ["SEMANTIC_QUERY_NOT_AUTHORIZED_OR_UNAVAILABLE"]
}
]
}
+130
查看文件
@@ -0,0 +1,130 @@
#!/usr/bin/env python3
"""Read/query only BI acceptance. No SQL, source scan, migrations, permissions or fixtures are mutated."""
import argparse
import json
import os
import re
import sys
import urllib.error
import urllib.parse
import urllib.request
def request(base, token, path, payload=None):
headers = {'Authorization': 'Bearer ' + token, 'Content-Type': 'application/json'}
if os.environ.get('AIXUN_BI_CLIENT_ID'):
headers['clientid'] = os.environ['AIXUN_BI_CLIENT_ID']
req = urllib.request.Request(base + path, headers=headers,
data=None if payload is None else json.dumps(payload).encode('utf-8'))
try:
with urllib.request.urlopen(req, timeout=50) as response:
return response.status, json.load(response)
except urllib.error.HTTPError as error:
try:
return error.code, json.load(error)
except (ValueError, TypeError):
return error.code, {}
def assert_query(status, body, case):
"""No transport error, unknown result or authentication expiry counts as the expected policy rejection."""
code = body.get('code')
result = body.get('data') or {}
if case['expect'] == 'DENIED':
denied = status == 403 or code in (403, 149103)
denied = denied or (status == 200 and code == 200 and result.get('state') == 'UNAVAILABLE'
and not result.get('rows') and any(term in result.get('message', '')
for term in case.get('messageContains', [])))
if not denied:
raise ValueError('expected explicit permission or policy denial')
return {'state': 'PASS', 'case': case['name'], 'returnedRows': 0}
if status != 200 or code != 200 or result.get('state') != 'SUCCEEDED' or result.get('truncated'):
raise ValueError('query did not return a complete successful result')
if not result.get('observedAt') or result.get('columns') != case['columns']:
raise ValueError('result evidence or columns mismatch')
rows = sorted((json.dumps(row, ensure_ascii=False, sort_keys=True) for row in result.get('rows', [])))
expected = sorted((json.dumps(row, ensure_ascii=False, sort_keys=True) for row in case['rows']))
if rows != expected:
raise ValueError('fixture result mismatch')
if 'pivotTotals' in case:
totals = result.get('pivotTotals')
expected_totals = case['pivotTotals']
if not isinstance(totals, dict) or totals.get('scope') != 'ALL_FILTERED':
raise ValueError('source pivot totals missing')
for key in ('rowField', 'columnField', 'measure', 'scope', 'grandTotal'):
if key not in totals or totals[key] != expected_totals[key]:
raise ValueError('source pivot total value mismatch')
for key in ('rowTotals', 'columnTotals'):
if not isinstance(totals.get(key), list) or sorted(json.dumps(row, sort_keys=True) for row in totals[key]) \
!= sorted(json.dumps(row, sort_keys=True) for row in expected_totals[key]):
raise ValueError('source pivot total groups mismatch')
return {'state': 'PASS', 'case': case['name'], 'returnedRows': len(rows)}
def run(base, manifest):
source_id = manifest['sourceId']
if not isinstance(source_id, str) or not re.fullmatch(r'[1-9][0-9]{0,18}', source_id):
raise ValueError('sourceId must be an exact string')
if not manifest.get('databaseName') or len(manifest['cases']) > 20:
raise ValueError('fixture scope or cases invalid')
token = os.environ['AIXUN_BI_TOKEN']
status, body = request(base, token, '/api/integration/v1/data-sources/' + source_id)
source = body.get('data') or {}
if status != 200 or body.get('code') != 200 or str(source.get('id')) != source_id \
or source.get('type') not in ('MYSQL', 'MARIADB') or source.get('databaseName') != manifest['databaseName']:
raise ValueError('selected registered test source could not be verified')
expected_tables = manifest['nativeTables']
if set(expected_tables.values()) != {'dg_bi_semantic_orders', 'dg_bi_semantic_departments'}:
raise ValueError('exact two fixture tables required')
for table_id, table_name in expected_tables.items():
if not re.fullmatch(r'[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}', table_id):
raise ValueError('table must be an observed Native UUID')
status, body = request(base, token, '/api/governance/v1/metadata-catalog/TABLE/' + table_id + '?sourceId=' + source_id)
observed = (body.get('data') or {}).get('item') or {}
if status != 200 or body.get('code') != 200 or observed.get('externalId') != table_id or observed.get('name') != table_name:
raise ValueError('fixture Native table does not belong to selected source')
reports = []
for case in manifest['cases']:
if not re.fullmatch(r'[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}', case['objectId']) \
or not isinstance(case['version'], int) or case['version'] < 0 \
or case.get('tokenEnv', 'AIXUN_BI_TOKEN') not in ('AIXUN_BI_TOKEN', 'AIXUN_BI_READER_TOKEN'):
raise ValueError('case identity invalid')
selected_token = os.environ[case.get('tokenEnv', 'AIXUN_BI_TOKEN')]
status, body = request(base, token, '/api/dataproduct/v1/bi/objects/' + case['objectId'])
observed = body.get('data') or {}
spec = observed.get('spec') or {}
if status != 200 or body.get('code') != 200 or observed.get('version') != case['version'] or observed.get('kind') != 'DATASET' or not spec.get('semantic'):
raise ValueError('saved semantic analysis version not verified')
dataset_ids = [spec['sourceDatasetId']] + [d['sourceDatasetId'] for d in spec['semantic']['dimensions']]
for dataset_id in dataset_ids:
if not isinstance(dataset_id, str) or not re.fullmatch(r'[1-9][0-9]{0,18}', dataset_id):
raise ValueError('dataset identity invalid')
status, body = request(base, token, '/api/dataproduct/v1/dataset-publications/' + dataset_id)
dataset = (body.get('data') or {}).get('dataset') or {}
if status != 200 or body.get('code') != 200 or dataset.get('sourceRef') not in {'table:' + table_id for table_id in expected_tables}:
raise ValueError('analysis references a non-fixture source')
status, body = request(base, selected_token, '/api/dataproduct/v1/bi/objects/' + case['objectId'] + '/query', {'version': case['version']})
reports.append(assert_query(status, body, case))
return reports
if __name__ == '__main__':
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--base', default='http://127.0.0.1:28000/prod-api')
parser.add_argument('--manifest', required=True)
parser.add_argument('--execute', action='store_true')
args = parser.parse_args()
parsed = urllib.parse.urlparse(args.base)
if parsed.scheme not in ('http', 'https') or parsed.hostname not in ('127.0.0.1', 'localhost') \
or parsed.username or parsed.password or parsed.query or parsed.fragment or parsed.path != '/prod-api':
raise SystemExit('Only the project local /prod-api gateway is allowed')
try:
with open(args.manifest, encoding='utf-8') as stream:
manifest = json.load(stream)
if not args.execute:
print(json.dumps({'state': 'NOT_RUN', 'cases': len(manifest.get('cases', [])), 'reason': 'requires deployed source identities and explicit --execute'}))
else:
print(json.dumps({'state': 'PASS', 'cases': run(args.base.rstrip('/'), manifest)}, ensure_ascii=False))
except Exception as error:
print(json.dumps({'state': 'FAILED', 'errorType': type(error).__name__, 'reason': 'query evidence mismatch or dependency unavailable; credentials and response withheld'}))
sys.exit(1)
@@ -0,0 +1,15 @@
{
"schemaVersion": 1,
"project": "aixun-datagov-local",
"owner": "aixun-datagov",
"service": "dataops",
"container": "aixun-datagov-dataops",
"network": {
"composeKey": "backend",
"name": "aixun-datagov-local-backend",
"id": "b87d572ee1c15bd96a30fdb46dd0a1b6849980ddd36c50548bcbfa35de9502ac",
"targetIp": "172.21.0.6",
"aliases": ["aixun-datagov-dataops", "dataops"]
},
"portBindings": {"9320/tcp": [{"HostIp": "127.0.0.1", "HostPort": "29320"}]}
}
+13
查看文件
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Compatibility name for the current interface; legacy lease modes are retired.
set -euo pipefail
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
service=integration
if [[ "${1:-}" == --service ]]; then service="${2:?service required}"; shift 2; fi
mode="${1:---help}"
if [[ "$mode" == --help ]]; then exec "$DIR/deploy.sh" --help; fi
shift
case "$mode" in
--plan|--apply|--check-config) exec "$DIR/deploy.sh" "$mode" "$service" "$@" ;;
*) echo 'Legacy upgrade/config modes retired. Use script/datagov/deploy.sh --help.' >&2; exit 2 ;;
esac
+3
查看文件
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
set -euo pipefail
exec python3 "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/remote/release.py" "$@"
+336
查看文件
@@ -0,0 +1,336 @@
#!/usr/bin/env python3
"""Targeted local delivery: no task leases, whole builds or manual SHA approval."""
import argparse
from contextlib import contextmanager
import fcntl
import hashlib
import json
import os
from pathlib import Path
import re
import subprocess
import sys
import time
from deployment_artifacts import artifact_digest, verify_image
ROOT = Path(__file__).resolve().parents[2]
BASE = ROOT / 'script/datagov'
CONFIG = BASE / 'deployment'
STATE = ROOT / '.cache/datagov'
PROJECT = 'aixun-datagov-local'
OWNER = 'aixun-datagov'
SERVICES = ('auth', 'gateway', 'system', 'resource', 'integration', 'dataops', 'governance', 'dataproduct', 'frontend')
CONFIGURABLE_FIELDS = {'image','environment','command','entrypoint','working_dir','restart'}
class Rejected(Exception):
pass
def need(condition, code):
if not condition:
raise Rejected(code)
def digest(value):
return hashlib.sha256(json.dumps(value, sort_keys=True, separators=(',', ':')).encode()).hexdigest()
def stable_model_sha(item):
return digest({k:v for k,v in item.items() if k not in CONFIGURABLE_FIELDS})
def compose_input(value):
# Compose interpolates input again. Preserve literal dollars in resolved
# values without persisting the secret-bearing model to a temporary file.
if isinstance(value,str):
return value.replace('$','$$')
if isinstance(value,list):
return [compose_input(v) for v in value]
if isinstance(value,dict):
return {k:compose_input(v) for k,v in value.items()}
return value
def run(args, env=None, input_text=None):
try:
p = subprocess.run(args, cwd=ROOT, env={**os.environ, **(env or {})}, input=input_text, capture_output=True, text=True, timeout=120)
except subprocess.TimeoutExpired:
raise Rejected('command timed out: ' + Path(args[0]).name + '; reconcile any apply attempt before retrying') from None
need(p.returncode == 0, 'command failed: ' + Path(args[0]).name + '; raw output withheld')
return p.stdout
def docker(*args):
return json.loads(run(['docker', *args]))
def env_values(values):
return dict(item.split('=', 1) for item in values or [] if '=' in item)
def own(labels, service=None):
need(labels.get('com.aixun.project') == OWNER and labels.get('com.docker.compose.project') == PROJECT, 'foreign runtime object')
if service:
need(labels.get('com.docker.compose.service') == service, 'wrong service')
def mount_source(mount):
source = mount['Source']
if mount['Type'] == 'bind' and source.startswith('/host_mnt/'):
return source[len('/host_mnt'):]
return source
def mounts(container):
return sorted([{'type':m['Type'], 'source':mount_source(m), 'destination':m['Destination'], 'rw':m['RW']} for m in container['Mounts']], key=lambda m:m['destination'])
def identity(service):
return json.loads((CONFIG/'identities.json').read_text())[service]
def network_ip(value):
return value['IPAddress'] or (value.get('IPAMConfig') or {}).get('IPv4Address', '')
def current(service, allow_stopped=False):
b = identity(service)
c = docker('inspect', b['container'])[0]
own(c['Config'].get('Labels') or {}, service)
need(c['Name'] == '/' + b['container'] and (c['State']['Running'] or (allow_stopped and c['State']['Status'] == 'exited')), 'target is not the expected running or stopped container')
observed = {k:{'id':v['NetworkID'], 'ip':network_ip(v)} for k,v in c['NetworkSettings']['Networks'].items()}
need(observed == b['networks'], 'network identity or IP drift')
for name, expected in b['networks'].items():
network = docker('network', 'inspect', name)[0]
own(network.get('Labels') or {})
need(network['Id'] == expected['id'], 'network replacement detected')
need(mounts(c) == sorted(b['mounts'], key=lambda m:m['destination']), 'mount identity drift')
for mount in b['mounts']:
if mount['type'] == 'volume':
own(docker('volume', 'inspect', Path(mount['source']).parts[-2])[0].get('Labels') or {})
return c
def snapshot(c):
config = dict(c['Config'])
config.pop('Hostname', None)
config.pop('Image', None)
config['Labels'] = {k:v for k,v in (config.get('Labels') or {}).items() if not k.startswith('com.docker.compose.') and k != 'org.opencontainers.image.version'}
return digest({'config':config, 'host':c['HostConfig'], 'mounts':mounts(c), 'networks':{k:{'id':v['NetworkID'],'ip':v['IPAddress']} for k,v in c['NetworkSettings']['Networks'].items()}})
def compose(service, image, config_change=False):
env = {'AIXUN_DATAGOV_DEPLOY_IMAGE':image}
cmd = ['docker', 'compose', '--project-directory', str(BASE), '--env-file', str(BASE/'.env.datagov'), '-p', PROJECT, '-f', str(CONFIG/(service+'.json'))]
model = json.loads(run(cmd + ['config', '--format', 'json'], env))
need(model.get('name') == PROJECT and set(model['services']) == {service}, 'unexpected deployment scope')
item = model['services'][service]
need(item['container_name'] == 'aixun-datagov-' + service and item['labels']['com.aixun.project'] == OWNER and item['image'] == image, 'invalid service model')
need(all(n.get('external') for n in model['networks'].values()), 'deployment cannot manage network lifecycle')
need(all(v.get('external') for v in model.get('volumes', {}).values()), 'deployment cannot manage volume lifecycle')
if config_change:
need(stable_model_sha(item)==identity(service).get('stableModelSha256'),'configuration note covers only environment, launch and restart; runtime identity or privilege fields changed')
else:
need(digest({k:v for k,v in item.items() if k != 'image'}) == identity(service)['runtimeModelSha256'], 'configuration changed; record the intended change with --config-change-note in this plan')
return cmd, env, model
def validate_runtime_model(service, model, c, config_change=False):
s = model['services'][service]
for key,value in s.get('environment',{}).items():
name=key.upper().replace('.','_').replace('-','_')
if 'NACOS' in name and name.endswith('NAMESPACE'):
need(value==PROJECT,'Nacos namespace must remain DataGov-only')
if 'NACOS' in name and name.endswith('GROUP'):
need(value=='AIXUN_DATAGOV_GROUP','Nacos group must remain DataGov-only')
if not config_change:
need(all(env_values(c['Config']['Env']).get(k) == str(v) for k,v in s.get('environment',{}).items()), 'declared environment drift')
expected_ports = {}
for port in s.get('ports', []):
key = str(port['target']) + '/' + port.get('protocol','tcp')
expected_ports.setdefault(key, []).append({'HostIp':port.get('host_ip',''), 'HostPort':str(port['published'])})
# Docker represents explicit 0.0.0.0 as either 0.0.0.0 or empty.
normalize = lambda values: {k:sorted((p['HostIp'] or '0.0.0.0',p['HostPort']) for p in v) for k,v in values.items()}
need(normalize(expected_ports) == normalize(c['HostConfig'].get('PortBindings') or {}), 'declared port drift')
expected_mounts = []
for m in s.get('volumes', []):
source = model['volumes'][m['source']]['name'] if m['type'] == 'volume' else m['source']
expected_mounts.append((m['type'], source, m['target'], not m.get('read_only',False)))
actual_mounts = [(m['Type'], m.get('Name') if m['Type']=='volume' else mount_source(m), m['Destination'], m['RW']) for m in c['Mounts']]
need(sorted(expected_mounts) == sorted(actual_mounts), 'declared mount drift')
declared = {model['networks'][k]['name']:v.get('ipv4_address') for k,v in s['networks'].items()}
need(declared == {k:network_ip(v) for k,v in c['NetworkSettings']['Networks'].items()}, 'declared network drift')
if not config_change:
need(s.get('restart','no') == c['HostConfig']['RestartPolicy']['Name'], 'restart policy drift')
def effective_launch(service, model, image):
s=model['services'][service];config=image['Config']
result={k:config.get(k) for k in ('Entrypoint','Cmd','WorkingDir','User')}
for field,key in [('entrypoint','Entrypoint'),('command','Cmd'),('working_dir','WorkingDir'),('user','User')]:
if field in s and s[field] is not None:
result[key]=s[field]
# An explicit Compose entrypoint suppresses the image's default command.
if s.get('entrypoint') is not None and s.get('command') is None:
result['Cmd']=None
return result
def validate_launch(service, model, image, c, config_change=False):
launch=effective_launch(service,model,image)
changed=[k for k,v in launch.items() if (v or None)!=(c['Config'].get(k) or None)]
need('User' not in changed,'container user change needs an explicit runtime identity change')
need(config_change or not changed,'launch configuration changed; record it with --config-change-note')
return changed
def inspect_image(service, ref):
need(bool(re.fullmatch(r'aixun-datagov/'+service+r':[a-z0-9][a-z0-9_.-]*',ref)) and not ref.endswith(':latest'), 'use an exact DataGov image tag')
image = docker('image', 'inspect', ref)[0]
need((image['Config'].get('Labels') or {}).get('com.aixun.project') == OWNER, 'foreign image')
return image
def artifact_source(service, image):
if service != 'frontend':
return None
values = env_values(image['Config'].get('Env'))
source = values.get('AIXUN_DATAGOV_FRONTEND_SOURCE', '/opt/aixun-datagov/frontend-current')
need(bool(re.fullmatch(r'/opt/aixun-datagov/frontend-[A-Za-z0-9_.-]+', source)),
'unexpected frontend artifact source')
return source
@contextmanager
def deployment_lock():
STATE.mkdir(parents=True, exist_ok=True)
with (STATE/'deployment.lock').open('a') as lock:
try:
fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
except BlockingIOError:
raise Rejected('another deployment is applying; coding remains available')
try:
yield
finally:
fcntl.flock(lock, fcntl.LOCK_UN)
def plan_path(service, release):
need(bool(re.fullmatch(r'[A-Za-z0-9][A-Za-z0-9._-]{0,95}',release)), 'invalid release name')
return CONFIG/'releases'/(release+'-'+service+'.json')
def write_json(path, value, exclusive=False):
path.parent.mkdir(parents=True, exist_ok=True)
with path.open('x' if exclusive else 'w') as f:
json.dump(value, f, indent=2); f.write('\n')
path.chmod(0o600)
def plan(args):
need(args.image is not None, 'plan needs IMAGE_TAG')
path = plan_path(args.service,args.release)
c = current(args.service, allow_stopped=True)
image = inspect_image(args.service,args.image)
source = artifact_source(args.service,image)
note=(getattr(args,'config_change_note',None) or '').strip()
cmd, env, model = compose(args.service,image['Id'],config_change=bool(note))
validate_runtime_model(args.service,model,c,config_change=bool(note))
launch_changes=validate_launch(args.service,model,image,c,config_change=bool(note))
expected = artifact_digest(args.artifact) if args.artifact else args.artifact_sha
need(bool(expected and re.fullmatch('[0-9a-f]{64}',expected)), 'supply --artifact PATH or --artifact-sha SHA256')
verification = verify_image(image['Id'],expected,STATE/'artifacts',args.service=='frontend',
source or '/opt/aixun-datagov/frontend-current')
result = {'version':1,'service':args.service,'release':args.release,'imageTag':args.image,'imageId':image['Id'],'artifactSha256':expected,'sourceContainerId':c['Id'],'sourceImageId':c['Image'],'sourceImageTag':c['Config']['Image'],'sourceStateSha256':snapshot(c),'modelSha256':digest(model),'identitySha256':digest(identity(args.service))}
if source:
result['artifactPath'] = source
if note:
declared=model['services'][args.service]
result['configurationChange']={'note':note,'environmentKeys':[k for k,v in declared.get('environment',{}).items() if env_values(c['Config']['Env']).get(k)!=str(v)],'launchFields':launch_changes,'restartPolicyChanged':declared.get('restart','no')!=c['HostConfig']['RestartPolicy']['Name'],'previousModelSha256':identity(args.service)['runtimeModelSha256'],'desiredModelSha256':digest({k:v for k,v in declared.items() if k!='image'})}
if path.exists():
need(json.loads(path.read_text()) == result, 'plan changed; use a new release name')
else:
write_json(path,result,exclusive=True)
print(json.dumps({'plan':str(path.relative_to(ROOT)),'service':args.service,'imageId':image['Id'],'artifactVerification':verification,'runtimeMutation':False}))
def verify_deployed_artifact(service, container_id, expected,
frontend_source='/opt/aixun-datagov/frontend-current'):
if service != 'frontend':
actual = run(['docker','exec',container_id,'sha256sum','/aixun-datagov/app/app.jar']).split()
need(bool(actual) and actual[0] == expected, 'deployed JAR hash mismatch')
return
# The existing entrypoint activates index.html after copying immutable assets.
# Wait only for that technical activation, not for functional UAT.
# The measured wave15 asset activation took 67s while backend images started.
# This remains a bounded, read-only activation check; it never retries apply.
deadline = time.monotonic() + 120
while True:
output = run(['docker','exec',container_id,'sha256sum',frontend_source + '/index.html',
'/usr/share/nginx/html/index.html'])
hashes = [line.split()[0] for line in output.splitlines() if line.split()]
if len(hashes) == 2 and hashes[0] == hashes[1]:
return
need(time.monotonic() < deadline, 'frontend entrypoint did not activate the image index')
time.sleep(0.5)
def apply(args):
need(bool(args.authorized_by and args.authorized_by.strip()), 'record the existing user deployment request with --authorized-by')
path = plan_path(args.service,args.release)
p = json.loads(path.read_text())
need(p.get('version')==1 and p['service']==args.service and p['release']==args.release, 'plan scope mismatch')
attempt = path.with_name(path.stem+'-attempt.json')
with deployment_lock():
need(not attempt.exists(), 'prior apply outcome must be reconciled; no automatic retry')
# Target preflight is performed below: owned live container/network/volume,
# exact immutable image and declared config. Bootstrap seeds and unrelated
# services are not prerequisites for updating an existing application.
c = current(args.service, allow_stopped=True)
need(c['Id']==p['sourceContainerId'] and c['Image']==p['sourceImageId'] and snapshot(c)==p['sourceStateSha256'], 'live source drift; replan')
need(digest(identity(args.service))==p['identitySha256'], 'identity baseline drift')
image = inspect_image(args.service,p['imageTag'])
need(image['Id']==p['imageId'], 'image tag moved; replan')
source = artifact_source(args.service,image)
if source:
need(p.get('artifactPath') == source, 'frontend artifact source is not bound by this plan')
verify_image(image['Id'],p['artifactSha256'],STATE/'artifacts',args.service=='frontend',
source or '/opt/aixun-datagov/frontend-current')
config_change=bool(p.get('configurationChange',{}).get('note'))
cmd, env, model = compose(args.service,image['Id'],config_change=config_change)
need(digest(model)==p['modelSha256'], 'configuration changed; replan')
validate_runtime_model(args.service,model,c,config_change=config_change)
validate_launch(args.service,model,image,c,config_change=config_change)
# Bind the immutable image ID, avoiding mutable-tag races.
operation = ['up','-d','--no-deps','--no-build','--pull','never','--force-recreate',args.service]
write_json(attempt,{'sourceContainerId':c['Id'],'imageId':image['Id'],'authorizedBy':args.authorized_by,'startedAt':time.time()},exclusive=True)
# Apply exactly the model just checked. A concurrent edit of the source
# Compose/env files cannot silently change this deployment's inputs.
frozen_cmd=['docker','compose','--project-directory',str(BASE),'-p',PROJECT,'-f','-']
run(frozen_cmd+operation,env,input_text=json.dumps(compose_input(model)))
after = current(args.service)
need(after['Id']!=c['Id'] and after['Image']==image['Id'], 'post-apply image identity mismatch')
validate_runtime_model(args.service,model,after)
validate_launch(args.service,model,image,after)
if source:
verify_deployed_artifact(args.service,after['Id'],p['artifactSha256'],source)
else:
verify_deployed_artifact(args.service,after['Id'],p['artifactSha256'])
after = current(args.service)
need(not after['State'].get('OOMKilled') and after['RestartCount']==0,'post-apply startup failure')
result = {'service':args.service,'containerId':after['Id'],'imageId':image['Id'],'status':'DEPLOYED_FUNCTIONAL_UAT_NOT_RUN','artifactReadback':'PASS','applicationReadiness':'NOT_RUN','recoveryImageId':p['sourceImageId']}
if config_change:
baselines=json.loads((CONFIG/'identities.json').read_text())
baselines[args.service]['runtimeModelSha256']=digest({k:v for k,v in model['services'][args.service].items() if k!='image'})
temporary=CONFIG/'identities.json.tmp'
write_json(temporary,baselines)
os.replace(temporary,CONFIG/'identities.json')
result['configurationChangeVerified']=True
write_json(path.with_name(path.stem+'-result.json'),result)
print(json.dumps(result))
def main(argv=None):
parser = argparse.ArgumentParser(description=__doc__)
modes = parser.add_mutually_exclusive_group(required=True)
modes.add_argument('--plan',action='store_true')
modes.add_argument('--apply',action='store_true')
modes.add_argument('--check-config',action='store_true',help='inspect live identity/config without creating a release')
parser.add_argument('service',choices=SERVICES)
parser.add_argument('release',nargs='?')
parser.add_argument('image',nargs='?')
parser.add_argument('--artifact',help='local JAR or frontend dist directory')
parser.add_argument('--artifact-sha',help='known JAR/tree SHA when no local artifact copy is needed')
parser.add_argument('--authorized-by',help='existing user request authorizing this local deployment; not a new approval')
parser.add_argument('--config-change-note',help='describe an intended environment/launch/restart change in this authorized task; no new approval')
args = parser.parse_args(argv)
if args.check_config:
c = current(args.service)
_,_,model = compose(args.service,c['Image'])
validate_runtime_model(args.service,model,c)
print(json.dumps({'service':args.service,'configuration':'PASS','runtimeMutation':False}))
else:
need(args.release is not None,'release name required')
plan(args) if args.plan else apply(args)
if __name__ == '__main__':
try:
main()
except (Rejected,ValueError,KeyError,OSError) as exc:
# Avoid printing configuration/secret values from parser or command errors.
print('BLOCKED: '+(str(exc) if isinstance(exc,Rejected) else type(exc).__name__),file=sys.stderr)
sys.exit(2)
+4
查看文件
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
exec python3 "$DIR/deploy.py" "$@"
+26
查看文件
@@ -0,0 +1,26 @@
# 当前局部部署配置
2026-10-10从九个现有应用服务各自的实际Compose文件链整理;通过逐服务有效配置对比。仅移除构建/依赖启动/配置profile,网络固定为当时真实IP,所有网络和卷使用external以保护现有生命周期。无服务重启。
每个服务一份JSON,不再依赖历史evidence中的Compose叠加链。相对路径以script/datagov为基准,秘密仍来自原.env/secretRef,不写入这些文件。
~~~bash
# 当前运行身份和配置检查,不创建候选或变更运行对象
./script/datagov/deploy.sh --check-config governance
# 镜像已经按需构建后,绑定实际JAR和不可变image ID
./script/datagov/deploy.sh --plan governance repair-20261010 aixun-datagov/governance:repair-20261010 --artifact aixun-modules/aixun-governance/target/aixun-governance.jar
# 用户原请求已包含部署时连续执行,记录原请求,无二次SHA审批
./script/datagov/deploy.sh --apply governance repair-20261010 --authorized-by '用户在当前任务要求修复并部署本地governance'
~~~
前端同样使用frontend服务,--artifact指向aixun-ui/dist;已有准确SHA可用--artifact-sha避免复制制品。计划仅写本地小JSON和验证缓存,Docker侧只读。apply使用不可变image ID、短进程锁及即时前态检查,只重建指定服务,不build/pull/启动依赖;不自动回滚或重试未知结果。
镜像内容通过流式读取核对,仅缓存image ID+制品SHA+验证器版本,不保存tar。运行状态或配置检查不使用缓存。保留当前镜像及必要恢复制品;releases记录前后身份,成功部署不代表功能UAT通过。
环境变量、启动命令/工作目录和restart策略需要修改时,在同一计划加--config-change-note说明原因,不重复申请用户已授予的部署权限。计划记录变更字段及前后摘要,不保存秘密值;apply绑定已检查的完整配置,经标准输入传给Compose,不因其他任务随后编辑源配置而改变本次部署。成功读回后自动更新目标配置基线。容器用户/特权、网络/IP、端口和挂载变化不在此参数范围,需要按实际运行变更范围处理。
例如:deploy.sh --plan governance repair-config-20261010 aixun-datagov/governance:repair-20261010 --artifact aixun-modules/aixun-governance/target/aixun-governance.jar --config-change-note '按本次需求调整应用启动参数'。随后用相同release执行apply。
局部apply已内置目标预检,不调用bootstrap整栈preflight,不依赖管理员初始化SQL或无关应用的构建/配置。只读检查可使用check.sh --runtime SERVICE。Docker命令最多等待120秒;超时保留已开始的apply记录,核实结果后处理,禁止自动循环重试。
原运行容器标签仍保留其创建时的历史文件名;本次保留这些少量文件以兼容追溯。新交付使用本目录。bootstrap用的docker-compose.local.yml继续保留,不能用它覆盖现有应用局部发布配置。
+54
查看文件
@@ -0,0 +1,54 @@
{
"name": "aixun-datagov-local",
"services": {
"auth": {
"container_name": "aixun-datagov-auth",
"environment": {
"AIXUN_DATAGOV_JWT_SECRET": "${AIXUN_DATAGOV_JWT_SECRET:?required}",
"JAVA_OPTS": "-Xms128m -Xmx448m -XX:MaxMetaspaceSize=224m -XX:MaxDirectMemorySize=96m -XX:ReservedCodeCacheSize=64m -Xss512k",
"DM_HOST": "${DM_HOST:?required}",
"DM_PASSWORD": "${DM_PASSWORD:?required}",
"DM_PORT": "${DM_PORT:-5236}",
"DM_USERNAME": "${DM_USERNAME:?required}",
"DM_SCHEMA": "${DM_SCHEMA:?required}",
"SECURITY_CAPTCHA_ENABLED": "false",
"SERVER_PORT": "9210",
"SPRING_APPLICATION_NAME": "aixun-datagov-auth",
"SPRING_CLOUD_BUS_ENABLED": "false",
"SPRING_CLOUD_NACOS_CONFIG_GROUP": "AIXUN_DATAGOV_GROUP",
"SPRING_CLOUD_NACOS_CONFIG_NAMESPACE": "aixun-datagov-local",
"SPRING_CLOUD_NACOS_DISCOVERY_GROUP": "AIXUN_DATAGOV_GROUP",
"SPRING_CLOUD_NACOS_DISCOVERY_NAMESPACE": "aixun-datagov-local",
"SPRING_CLOUD_NACOS_PASSWORD": "${AIXUN_DATAGOV_NACOS_PASSWORD:?required}",
"SPRING_CLOUD_NACOS_SERVER_ADDR": "nacos:8848",
"SPRING_CLOUD_NACOS_USERNAME": "${AIXUN_DATAGOV_NACOS_USERNAME:?required}",
"SPRING_DATA_REDIS_DATABASE": "11",
"SPRING_DATA_REDIS_HOST": "redis",
"SPRING_DATA_REDIS_PASSWORD": "${AIXUN_DATAGOV_REDIS_PASSWORD:?required}",
"SPRING_DATA_REDIS_PORT": "6379",
"SPRING_PROFILES_ACTIVE": "prod",
"TZ": "Asia/Shanghai"
},
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
"labels": {
"com.aixun.environment": "local",
"com.aixun.project": "aixun-datagov"
},
"networks": {
"backend": {
"ipv4_address": "172.21.0.2"
}
},
"ports": [
"127.0.0.1:${AIXUN_DATAGOV_AUTH_PORT:-29210}:9210"
],
"restart": "unless-stopped"
}
},
"networks": {
"backend": {
"name": "aixun-datagov-local-backend",
"external": true
}
}
}
+55
查看文件
@@ -0,0 +1,55 @@
{
"name": "aixun-datagov-local",
"services": {
"dataops": {
"container_name": "aixun-datagov-dataops",
"environment": {
"AIXUN_DATAGOV_INGESTION_PILOT_SOURCE_ID": "${AIXUN_DATAGOV_INGESTION_PILOT_SOURCE_ID:-0}",
"AIXUN_DATAGOV_JWT_SECRET": "${AIXUN_DATAGOV_JWT_SECRET:?required}",
"DATAGOV_BATCH_INGESTION_HIVE_METASTORE_URI": "thrift://m2-hive-metastore:9083",
"JAVA_OPTS": "-Xms96m -Xmx384m -XX:MaxMetaspaceSize=224m -XX:MaxDirectMemorySize=96m -XX:ReservedCodeCacheSize=64m -Xss512k",
"DM_HOST": "${DM_HOST:?required}",
"DM_PASSWORD": "${DM_PASSWORD:?required}",
"DM_PORT": "${DM_PORT:-5236}",
"DM_USERNAME": "${DM_USERNAME:?required}",
"DM_SCHEMA": "${DM_SCHEMA:?required}",
"SERVER_PORT": "9320",
"SPRING_APPLICATION_NAME": "aixun-dataops",
"SPRING_CLOUD_BUS_ENABLED": "false",
"SPRING_CLOUD_NACOS_CONFIG_GROUP": "AIXUN_DATAGOV_GROUP",
"SPRING_CLOUD_NACOS_CONFIG_NAMESPACE": "aixun-datagov-local",
"SPRING_CLOUD_NACOS_DISCOVERY_GROUP": "AIXUN_DATAGOV_GROUP",
"SPRING_CLOUD_NACOS_DISCOVERY_NAMESPACE": "aixun-datagov-local",
"SPRING_CLOUD_NACOS_PASSWORD": "${AIXUN_DATAGOV_NACOS_PASSWORD:?required}",
"SPRING_CLOUD_NACOS_SERVER_ADDR": "nacos:8848",
"SPRING_CLOUD_NACOS_USERNAME": "${AIXUN_DATAGOV_NACOS_USERNAME:?required}",
"SPRING_DATA_REDIS_DATABASE": "11",
"SPRING_DATA_REDIS_HOST": "redis",
"SPRING_DATA_REDIS_PASSWORD": "${AIXUN_DATAGOV_REDIS_PASSWORD:?required}",
"SPRING_DATA_REDIS_PORT": "6379",
"SPRING_PROFILES_ACTIVE": "prod",
"TZ": "Asia/Shanghai"
},
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
"labels": {
"com.aixun.environment": "local",
"com.aixun.project": "aixun-datagov"
},
"networks": {
"backend": {
"ipv4_address": "172.21.0.12"
}
},
"ports": [
"127.0.0.1:${AIXUN_DATAGOV_DATAOPS_PORT:-29320}:9320"
],
"restart": "unless-stopped"
}
},
"networks": {
"backend": {
"name": "aixun-datagov-local-backend",
"external": true
}
}
}
@@ -0,0 +1,54 @@
{
"name": "aixun-datagov-local",
"services": {
"dataproduct": {
"container_name": "aixun-datagov-dataproduct",
"environment": {
"AIXUN_DATAGOV_JWT_SECRET": "${AIXUN_DATAGOV_JWT_SECRET:?required}",
"JAVA_OPTS": "-Xms96m -Xmx384m -XX:MaxMetaspaceSize=224m -XX:MaxDirectMemorySize=96m -XX:ReservedCodeCacheSize=64m -Xss512k",
"DM_HOST": "${DM_HOST:?required}",
"DM_PASSWORD": "${DM_PASSWORD:?required}",
"DM_PORT": "${DM_PORT:-5236}",
"DM_USERNAME": "${DM_USERNAME:?required}",
"DM_SCHEMA": "${DM_SCHEMA:?required}",
"SERVER_PORT": "9340",
"SPRING_APPLICATION_NAME": "aixun-dataproduct",
"SPRING_CLOUD_BUS_ENABLED": "false",
"SPRING_CLOUD_NACOS_CONFIG_GROUP": "AIXUN_DATAGOV_GROUP",
"SPRING_CLOUD_NACOS_CONFIG_NAMESPACE": "aixun-datagov-local",
"SPRING_CLOUD_NACOS_DISCOVERY_GROUP": "AIXUN_DATAGOV_GROUP",
"SPRING_CLOUD_NACOS_DISCOVERY_NAMESPACE": "aixun-datagov-local",
"SPRING_CLOUD_NACOS_PASSWORD": "${AIXUN_DATAGOV_NACOS_PASSWORD:?required}",
"SPRING_CLOUD_NACOS_SERVER_ADDR": "nacos:8848",
"SPRING_CLOUD_NACOS_USERNAME": "${AIXUN_DATAGOV_NACOS_USERNAME:?required}",
"SPRING_DATA_REDIS_DATABASE": "11",
"SPRING_DATA_REDIS_HOST": "redis",
"SPRING_DATA_REDIS_PASSWORD": "${AIXUN_DATAGOV_REDIS_PASSWORD:?required}",
"SPRING_DATA_REDIS_PORT": "6379",
"SPRING_PROFILES_ACTIVE": "prod",
"TZ": "Asia/Shanghai"
},
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
"labels": {
"com.aixun.environment": "local",
"com.aixun.project": "aixun-datagov"
},
"networks": {
"backend": {
"ipv4_address": "172.21.0.5"
}
},
"ports": [
"127.0.0.1:${AIXUN_DATAGOV_DATAPRODUCT_PORT:-29340}:9340"
],
"pull_policy": "never",
"restart": "unless-stopped"
}
},
"networks": {
"backend": {
"name": "aixun-datagov-local-backend",
"external": true
}
}
}
+42
查看文件
@@ -0,0 +1,42 @@
{
"name": "aixun-datagov-local",
"services": {
"frontend": {
"container_name": "aixun-datagov-frontend",
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
"labels": {
"com.aixun.environment": "local",
"com.aixun.project": "aixun-datagov"
},
"networks": {
"frontend": {
"ipv4_address": "172.22.0.3"
}
},
"ports": [
"0.0.0.0:${AIXUN_DATAGOV_FRONTEND_PORT:-28000}:80"
],
"restart": "unless-stopped",
"volumes": [
{
"source": "frontend-assets",
"target": "/usr/share/nginx/html",
"type": "volume",
"volume": {}
}
]
}
},
"networks": {
"frontend": {
"name": "aixun-datagov-local-frontend",
"external": true
}
},
"volumes": {
"frontend-assets": {
"name": "aixun-datagov-local-frontend-assets",
"external": true
}
}
}
+70
查看文件
@@ -0,0 +1,70 @@
{
"name": "aixun-datagov-local",
"services": {
"gateway": {
"container_name": "aixun-datagov-gateway",
"environment": [
"AIXUN_DATAGOV_JWT_SECRET=${AIXUN_DATAGOV_JWT_SECRET:?required}",
"JAVA_OPTS=-Xms128m -Xmx384m -XX:MaxMetaspaceSize=192m -XX:MaxDirectMemorySize=96m -XX:ReservedCodeCacheSize=64m -Xss512k",
"DM_HOST=${DM_HOST:?required}",
"DM_PASSWORD=${DM_PASSWORD:?required}",
"DM_PORT=${DM_PORT:-5236}",
"DM_USERNAME=${DM_USERNAME:?required}",
"DM_SCHEMA=${DM_SCHEMA:?required}",
"SERVER_PORT=8080",
"SPRING_APPLICATION_NAME=aixun-datagov-gateway",
"SPRING_CLOUD_BUS_ENABLED=false",
"SPRING_CLOUD_NACOS_CONFIG_GROUP=AIXUN_DATAGOV_GROUP",
"SPRING_CLOUD_NACOS_CONFIG_NAMESPACE=aixun-datagov-local",
"SPRING_CLOUD_NACOS_DISCOVERY_GROUP=AIXUN_DATAGOV_GROUP",
"SPRING_CLOUD_NACOS_DISCOVERY_NAMESPACE=aixun-datagov-local",
"SPRING_CLOUD_NACOS_PASSWORD=${AIXUN_DATAGOV_NACOS_PASSWORD:?required}",
"SPRING_CLOUD_NACOS_SERVER_ADDR=nacos:8848",
"SPRING_CLOUD_NACOS_USERNAME=${AIXUN_DATAGOV_NACOS_USERNAME:?required}",
"SPRING_DATA_REDIS_DATABASE=11",
"SPRING_DATA_REDIS_HOST=redis",
"SPRING_DATA_REDIS_PASSWORD=${AIXUN_DATAGOV_REDIS_PASSWORD:?required}",
"SPRING_DATA_REDIS_PORT=6379",
"SPRING_PROFILES_ACTIVE=prod",
"TZ=Asia/Shanghai",
"SPRING_CLOUD_NACOS_DISCOVERY_IP=172.21.0.11"
],
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
"labels": [
"com.aixun.environment=local",
"com.aixun.project=aixun-datagov",
"org.opencontainers.image.version=m7-ingestion-draft-timeout-20260920-001"
],
"networks": {
"backend": {
"ipv4_address": "172.21.0.11"
},
"frontend": {
"ipv4_address": "172.22.0.2"
},
"m2-integration": {
"ipv4_address": "172.29.0.2"
}
},
"ports": [
"127.0.0.1:${AIXUN_DATAGOV_GATEWAY_PORT:-28080}:8080"
],
"pull_policy": "never",
"restart": "unless-stopped"
}
},
"networks": {
"backend": {
"name": "aixun-datagov-local-backend",
"external": true
},
"frontend": {
"name": "aixun-datagov-local-frontend",
"external": true
},
"m2-integration": {
"name": "aixun-datagov-local-m2-integration",
"external": true
}
}
}
+53
查看文件
@@ -0,0 +1,53 @@
{
"name": "aixun-datagov-local",
"services": {
"governance": {
"container_name": "aixun-datagov-governance",
"environment": {
"AIXUN_DATAGOV_JWT_SECRET": "${AIXUN_DATAGOV_JWT_SECRET:?required}",
"JAVA_OPTS": "-Xms96m -Xmx384m -XX:MaxMetaspaceSize=224m -XX:MaxDirectMemorySize=96m -XX:ReservedCodeCacheSize=64m -Xss512k",
"DM_HOST": "${DM_HOST:?required}",
"DM_PASSWORD": "${DM_PASSWORD:?required}",
"DM_PORT": "${DM_PORT:-5236}",
"DM_USERNAME": "${DM_USERNAME:?required}",
"DM_SCHEMA": "${DM_SCHEMA:?required}",
"SERVER_PORT": "9330",
"SPRING_APPLICATION_NAME": "aixun-governance",
"SPRING_CLOUD_BUS_ENABLED": "false",
"SPRING_CLOUD_NACOS_CONFIG_GROUP": "AIXUN_DATAGOV_GROUP",
"SPRING_CLOUD_NACOS_CONFIG_NAMESPACE": "aixun-datagov-local",
"SPRING_CLOUD_NACOS_DISCOVERY_GROUP": "AIXUN_DATAGOV_GROUP",
"SPRING_CLOUD_NACOS_DISCOVERY_NAMESPACE": "aixun-datagov-local",
"SPRING_CLOUD_NACOS_PASSWORD": "${AIXUN_DATAGOV_NACOS_PASSWORD:?required}",
"SPRING_CLOUD_NACOS_SERVER_ADDR": "nacos:8848",
"SPRING_CLOUD_NACOS_USERNAME": "${AIXUN_DATAGOV_NACOS_USERNAME:?required}",
"SPRING_DATA_REDIS_DATABASE": "11",
"SPRING_DATA_REDIS_HOST": "redis",
"SPRING_DATA_REDIS_PASSWORD": "${AIXUN_DATAGOV_REDIS_PASSWORD:?required}",
"SPRING_DATA_REDIS_PORT": "6379",
"SPRING_PROFILES_ACTIVE": "prod",
"TZ": "Asia/Shanghai"
},
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
"labels": {
"com.aixun.environment": "local",
"com.aixun.project": "aixun-datagov"
},
"networks": {
"backend": {
"ipv4_address": "172.21.0.10"
}
},
"ports": [
"127.0.0.1:${AIXUN_DATAGOV_GOVERNANCE_PORT:-29330}:9330"
],
"restart": "unless-stopped"
}
},
"networks": {
"backend": {
"name": "aixun-datagov-local-backend",
"external": true
}
}
}
+164
查看文件
@@ -0,0 +1,164 @@
{
"auth": {
"networks": {
"aixun-datagov-local-backend": {
"id": "b87d572ee1c15bd96a30fdb46dd0a1b6849980ddd36c50548bcbfa35de9502ac",
"ip": "172.21.0.2"
}
},
"mounts": [],
"container": "aixun-datagov-auth",
"initialImageId": "sha256:068d5c30fbf457ff1b66cabf8da2b3ab5947d63453705ae0341b23c8ca9c34d0",
"runtimeModelSha256": "249c3a81742da317d79ddd2f3a11a5b8c19e8fb4db6d49379354b30e788000c9",
"stableModelSha256": "0e66d5244a9c9dcc4044e339227a4d71b0767b2d9c462224c7d1230d2da460bf"
},
"gateway": {
"networks": {
"aixun-datagov-local-backend": {
"id": "b87d572ee1c15bd96a30fdb46dd0a1b6849980ddd36c50548bcbfa35de9502ac",
"ip": "172.21.0.11"
},
"aixun-datagov-local-frontend": {
"id": "fd5a9c9f35d06101a75e5d8edaf3dd73b5ef7bfe5bbb112224048f4a968d025d",
"ip": "172.22.0.2"
},
"aixun-datagov-local-m2-integration": {
"id": "64f4cce15ac06ce7c8f1ad1f04895e1232c10ae7a6f6076c8b6025ff553b58ba",
"ip": "172.29.0.2"
}
},
"mounts": [],
"container": "aixun-datagov-gateway",
"initialImageId": "sha256:101533e52cefdc5e78a9419d3e9ed63af738c5a9803d193bcd2b557d68818d61",
"runtimeModelSha256": "841e8575de2d62c9fd9d9a979751f9d4b57d6d64c0200a6399683d98866d6391",
"stableModelSha256": "2056c519155e28bbee81d51c82494f9116d2c20160aa8143d8cef147a3a4101d"
},
"system": {
"networks": {
"aixun-datagov-local-backend": {
"id": "b87d572ee1c15bd96a30fdb46dd0a1b6849980ddd36c50548bcbfa35de9502ac",
"ip": "172.21.0.6"
}
},
"mounts": [],
"container": "aixun-datagov-system",
"initialImageId": "sha256:51cc508e90d343ec33ca43bbf3027041995df9f53c99f9247daca7ce3038b2bd",
"runtimeModelSha256": "5860d7c86820452c05d3d221ba1efccc47640371b00d5df9e82dce22a1a42503",
"stableModelSha256": "c0c23e755e96389cca09497a839e7b23878807c734af04ec269e6cd978ab7c21"
},
"resource": {
"networks": {
"aixun-datagov-local-backend": {
"id": "b87d572ee1c15bd96a30fdb46dd0a1b6849980ddd36c50548bcbfa35de9502ac",
"ip": "172.21.0.4"
}
},
"mounts": [
{
"type": "volume",
"source": "/var/lib/docker/volumes/aixun-datagov-local-file-data/_data",
"destination": "/var/lib/aixun-datagov/files",
"rw": true
}
],
"container": "aixun-datagov-resource",
"initialImageId": "sha256:bcc8a5d1551d0c0f96502eed4dff8cb6fd7867480d587d940003522429a12729",
"runtimeModelSha256": "e605935ef21613dd2bce1e380aec853fe2e41dc7c8bacc96c1f41ca2816f72f5",
"stableModelSha256": "8c0b6035dbcb2a4093a387491855d578f1575d5df88852ea538604d86b761bd3"
},
"integration": {
"networks": {
"aixun-datagov-local-backend": {
"id": "b87d572ee1c15bd96a30fdb46dd0a1b6849980ddd36c50548bcbfa35de9502ac",
"ip": "172.21.0.8"
},
"aixun-datagov-local-m2-integration": {
"id": "64f4cce15ac06ce7c8f1ad1f04895e1232c10ae7a6f6076c8b6025ff553b58ba",
"ip": "172.29.0.8"
}
},
"mounts": [
{
"type": "bind",
"source": "/Users/apple/Documents/AiXun-DataGov/script/datagov/m2/local/secrets",
"destination": "/run/secrets/aixun-datagov/m2",
"rw": false
},
{
"type": "volume",
"source": "/var/lib/docker/volumes/aixun-datagov-local-managed-credential-data/_data",
"destination": "/run/secrets/aixun-datagov/managed",
"rw": true
},
{
"type": "volume",
"source": "/var/lib/docker/volumes/aixun-datagov-local-file-ingestion-data/_data",
"destination": "/var/lib/aixun-datagov/ingestion",
"rw": true
}
],
"container": "aixun-datagov-integration",
"initialImageId": "sha256:553d05e2da41ef9b90029c771bf3f44fcc99dfa52dd1705c5f90ed5213b70db7",
"runtimeModelSha256": "9a224f8a0c167d0e8d04dc751b4b908a5410dc3540695741a20ac990fc19b031",
"stableModelSha256": "af4efb84a9dda8b0c16974347a77b7841dca2d7b0a7760350b443e67c979195a"
},
"dataops": {
"networks": {
"aixun-datagov-local-backend": {
"id": "b87d572ee1c15bd96a30fdb46dd0a1b6849980ddd36c50548bcbfa35de9502ac",
"ip": "172.21.0.12"
}
},
"mounts": [],
"container": "aixun-datagov-dataops",
"initialImageId": "sha256:7359df0d2ef67feeca94263696565de0edef8f18dae2ae49e10bcfcc9e098afb",
"runtimeModelSha256": "5de1a10daca27657f2099fcc6b0bd4de8ce27e45dbc701c1d51328fa5497931f",
"stableModelSha256": "facbc2f5201c0c58982200640160917254d183f79d46770c98d7d633213c8a43"
},
"governance": {
"networks": {
"aixun-datagov-local-backend": {
"id": "b87d572ee1c15bd96a30fdb46dd0a1b6849980ddd36c50548bcbfa35de9502ac",
"ip": "172.21.0.10"
}
},
"mounts": [],
"container": "aixun-datagov-governance",
"initialImageId": "sha256:03b84a618107d9246569e9c733f04903bb7787a156ddd3246c20526d51a105ab",
"runtimeModelSha256": "b9384ca577d90f850cf644e6f878cfce4b69a3fe9aff304387232cb830508f69",
"stableModelSha256": "5f6e16dd3194b4ad718c952eda64d8f844e7bf255da00bb29d27fe7b12932357"
},
"dataproduct": {
"networks": {
"aixun-datagov-local-backend": {
"id": "b87d572ee1c15bd96a30fdb46dd0a1b6849980ddd36c50548bcbfa35de9502ac",
"ip": "172.21.0.5"
}
},
"mounts": [],
"container": "aixun-datagov-dataproduct",
"initialImageId": "sha256:67e459cef0cb972da8442eb5d9e433fb8e4f989882677db0b16fb422f4443dcf",
"runtimeModelSha256": "03856f1a393605ec5ef4aa3c5286e32b71889d86188d1211366cdf1a853fa9d9",
"stableModelSha256": "424127c705f8735eb227946f0015502ce526071f8526d0354b6cfdccf299d82f"
},
"frontend": {
"networks": {
"aixun-datagov-local-frontend": {
"id": "fd5a9c9f35d06101a75e5d8edaf3dd73b5ef7bfe5bbb112224048f4a968d025d",
"ip": "172.22.0.3"
}
},
"mounts": [
{
"type": "volume",
"source": "/var/lib/docker/volumes/aixun-datagov-local-frontend-assets/_data",
"destination": "/usr/share/nginx/html",
"rw": true
}
],
"container": "aixun-datagov-frontend",
"initialImageId": "sha256:9c501b9d535742d6ff26a8d91327bd31daf2a609891bab2df5ffb712fbfcfacf",
"runtimeModelSha256": "f4a76c2841f63bea5964fc7bf4faeedbe1a5c47c17747f4bc3ba88b8646eb180",
"stableModelSha256": "6300c283a2bbd47047f4d595ee8c9601e462325a3199e44caaa0e0ff5fc354ab"
}
}
+119
查看文件
@@ -0,0 +1,119 @@
{
"name": "aixun-datagov-local",
"services": {
"integration": {
"container_name": "aixun-datagov-integration",
"environment": [
"AIXUN_DATAGOV_INGESTION_PILOT_SOURCE_ID=${AIXUN_DATAGOV_INGESTION_PILOT_SOURCE_ID:-0}",
"AIXUN_DATAGOV_ALLOW_INSECURE_CREDENTIAL_HTTP=true",
"AIXUN_DATAGOV_JWT_SECRET=${AIXUN_DATAGOV_JWT_SECRET:?required}",
"AIXUN_DATAGOV_LOCAL_NON_PRODUCTION=true",
"AIXUN_DATAGOV_M2_CALLBACK_TOKEN_REF=file:///m2/callback-token?version=v1",
"AIXUN_DATAGOV_M2_DORIS_JDBC_URL=jdbc:mysql://m2-doris-fe:9030",
"AIXUN_DATAGOV_M2_DORIS_PASSWORD_REF=file:///m2/doris-loader-password?version=v1",
"AIXUN_DATAGOV_M2_DORIS_QUERY_PASSWORD_REF=file:///m2/doris-query-password?version=v1",
"AIXUN_DATAGOV_M2_DORIS_QUERY_USER=aixun_m2_doris_query",
"AIXUN_DATAGOV_M2_DORIS_USER=aixun_m2_doris_loader",
"AIXUN_DATAGOV_M2_DS_API_URL=http://m2-dolphinscheduler:12345/dolphinscheduler",
"AIXUN_DATAGOV_M2_DS_PROJECT_NAME=aixun_m2_golden_project",
"AIXUN_DATAGOV_M2_DS_TOKEN_REF=file:///m2/dolphinscheduler-token?version=v1",
"AIXUN_DATAGOV_M2_ENABLED=${AIXUN_DATAGOV_M2_ENABLED:-false}",
"AIXUN_DATAGOV_M2_HIVE_JDBC_URL=jdbc:hive2://m2-hive:10000/default",
"AIXUN_DATAGOV_M2_HIVE_PASSWORD_REF=file:///m2/hive-loader-password?version=v1",
"AIXUN_DATAGOV_M2_HIVE_USER=aixun_m2_hive_loader",
"AIXUN_DATAGOV_M2_SEATUNNEL_API_URL=http://m2-seatunnel:8080",
"AIXUN_DATAGOV_M2_SEATUNNEL_PASSWORD_REF=file:///m2/seatunnel-password?version=v1",
"AIXUN_DATAGOV_M2_SEATUNNEL_USER=aixun_m2_seatunnel",
"AIXUN_DATAGOV_M2_SOURCE_JDBC_URL=jdbc:mysql://m2-source-mysql:3306/aixun_m2_source?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai",
"AIXUN_DATAGOV_M2_SOURCE_PASSWORD_REF=file:///m2/source-password?version=v1",
"AIXUN_DATAGOV_M2_SOURCE_USER=aixun_m2_ingestion",
"AIXUN_DATAGOV_MANAGED_CREDENTIAL_ROOT=/run/secrets/aixun-datagov",
"AIXUN_DATAGOV_SECRET_ROOT=/run/secrets/aixun-datagov",
"DATAGOV_FILE_INGESTION_ROOT=/var/lib/aixun-datagov/ingestion",
"JAVA_OPTS=-Xms96m -Xmx384m -XX:MaxMetaspaceSize=224m -XX:MaxDirectMemorySize=96m -XX:ReservedCodeCacheSize=64m -Xss512k -DDUBBO_IP_TO_REGISTRY=integration",
"DM_HOST=${DM_HOST:?required}",
"DM_PASSWORD=${DM_PASSWORD:?required}",
"DM_PORT=${DM_PORT:-5236}",
"DM_USERNAME=${DM_USERNAME:?required}",
"DM_SCHEMA=${DM_SCHEMA:?required}",
"SERVER_PORT=9310",
"SPRING_APPLICATION_NAME=aixun-integration",
"SPRING_CLOUD_BUS_ENABLED=false",
"SPRING_CLOUD_NACOS_CONFIG_GROUP=AIXUN_DATAGOV_GROUP",
"SPRING_CLOUD_NACOS_CONFIG_NAMESPACE=aixun-datagov-local",
"SPRING_CLOUD_NACOS_DISCOVERY_GROUP=AIXUN_DATAGOV_GROUP",
"SPRING_CLOUD_NACOS_DISCOVERY_NAMESPACE=aixun-datagov-local",
"SPRING_CLOUD_NACOS_PASSWORD=${AIXUN_DATAGOV_NACOS_PASSWORD:?required}",
"SPRING_CLOUD_NACOS_SERVER_ADDR=nacos:8848",
"SPRING_CLOUD_NACOS_USERNAME=${AIXUN_DATAGOV_NACOS_USERNAME:?required}",
"SPRING_DATA_REDIS_DATABASE=11",
"SPRING_DATA_REDIS_HOST=redis",
"SPRING_DATA_REDIS_PASSWORD=${AIXUN_DATAGOV_REDIS_PASSWORD:?required}",
"SPRING_DATA_REDIS_PORT=6379",
"SPRING_PROFILES_ACTIVE=prod",
"TZ=Asia/Shanghai",
"SPRING_CLOUD_NACOS_DISCOVERY_IP=172.21.0.8"
],
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
"labels": {
"com.aixun.environment": "local",
"com.aixun.project": "aixun-datagov"
},
"networks": {
"backend": {
"ipv4_address": "172.21.0.8"
},
"m2-integration": {
"ipv4_address": "172.29.0.8"
}
},
"ports": [
"127.0.0.1:${AIXUN_DATAGOV_INTEGRATION_PORT:-29310}:9310"
],
"restart": "unless-stopped",
"volumes": [
{
"bind": {
"create_host_path": true
},
"read_only": true,
"source": "./m2/local/secrets",
"target": "/run/secrets/aixun-datagov/m2",
"type": "bind"
},
{
"source": "managed-credential-data",
"target": "/run/secrets/aixun-datagov/managed",
"type": "volume",
"volume": {}
},
{
"source": "file-ingestion-data",
"target": "/var/lib/aixun-datagov/ingestion",
"type": "volume",
"volume": {}
}
]
}
},
"networks": {
"backend": {
"name": "aixun-datagov-local-backend",
"external": true
},
"m2-integration": {
"name": "aixun-datagov-local-m2-integration",
"external": true
}
},
"volumes": {
"managed-credential-data": {
"name": "aixun-datagov-local-managed-credential-data",
"external": true
},
"file-ingestion-data": {
"name": "aixun-datagov-local-file-ingestion-data",
"external": true
}
}
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "ec8b446d3c592a2b05f46cbc26ea81ce23798dde72ff3326f790cab29c9fff07",
"imageId": "sha256:ce6f02ff448fb397ecdc17cd151a39e4132d73973ef02e3145405bbb2dcf9d41",
"authorizedBy": "\u7528\u62372026-10-25\u63a5\u624bA01\u8981\u6c42\u4fee\u590d\u3001\u68c0\u67e5\u3001\u6784\u5efa\u548c\u5df2\u6709\u6388\u6743\u8303\u56f4\u5185\u672c\u5730\u4ea4\u4ed8",
"startedAt": 1792890753.434746
}
@@ -0,0 +1,9 @@
{
"service": "dataops",
"containerId": "40f8c2425a6b437f193006e53a93ca0b6584b4ae4dd7bbbfbec2c0cc24600141",
"imageId": "sha256:ce6f02ff448fb397ecdc17cd151a39e4132d73973ef02e3145405bbb2dcf9d41",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:e2b37c364f596a74cf50e6fd3afee401986a28ec1ff45c7d91d73f034205d24d"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "dataops",
"release": "a01-scheduling-20261025",
"imageTag": "aixun-datagov/dataops:a01-scheduling-20261025",
"imageId": "sha256:ce6f02ff448fb397ecdc17cd151a39e4132d73973ef02e3145405bbb2dcf9d41",
"artifactSha256": "48bf6d7ad8aed006e870befa1c3df5f6970bc18ca3d62bb31762b777fc44df74",
"sourceContainerId": "ec8b446d3c592a2b05f46cbc26ea81ce23798dde72ff3326f790cab29c9fff07",
"sourceImageId": "sha256:e2b37c364f596a74cf50e6fd3afee401986a28ec1ff45c7d91d73f034205d24d",
"sourceImageTag": "sha256:e2b37c364f596a74cf50e6fd3afee401986a28ec1ff45c7d91d73f034205d24d",
"sourceStateSha256": "3f4606a0eb01fafb00ba11a076f2bb69e7407302885d7f892f3dc439f639ee1c",
"modelSha256": "9b6e92c6e6198faf2c1c33c592c66fb8574c182007035153ebf6d95312da6a52",
"identitySha256": "ea6543ab531296436dd5850fa7a9d19c9ecba54092ef48cb8918ad53ad494fed"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "392cd72a8697da7e0920665199d8e2e02bdbe4a9bf0a2c0ab1665076a0dd1a41",
"imageId": "sha256:9123575212f4168b393a7630b979e0c12f942517067ed4f850b7f764de4f3fad",
"authorizedBy": "\u7528\u62372026-10-25\u63a5\u624bA01\u8981\u6c42\u4fee\u590d\u3001\u68c0\u67e5\u3001\u6784\u5efa\u548c\u5df2\u6709\u6388\u6743\u8303\u56f4\u5185\u672c\u5730\u4ea4\u4ed8",
"startedAt": 1792890160.296781
}
@@ -0,0 +1,9 @@
{
"service": "frontend",
"containerId": "16f912c5538d125742a8da241d3c4801ad59281025b008d40bcc06c3116b895e",
"imageId": "sha256:9123575212f4168b393a7630b979e0c12f942517067ed4f850b7f764de4f3fad",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:2843fb1e51a5d2ef461b377570c9bfb5bc59253cb637907671fcbeea745eded1"
}
@@ -0,0 +1,15 @@
{
"version": 1,
"service": "frontend",
"release": "a01-scheduling-20261025",
"imageTag": "aixun-datagov/frontend:a01-scheduling-20261025",
"imageId": "sha256:9123575212f4168b393a7630b979e0c12f942517067ed4f850b7f764de4f3fad",
"artifactSha256": "c2e2de8aaae4b0b3efa5c5f4923b79ce0576b92dbef9b16b999e448537615035",
"sourceContainerId": "392cd72a8697da7e0920665199d8e2e02bdbe4a9bf0a2c0ab1665076a0dd1a41",
"sourceImageId": "sha256:2843fb1e51a5d2ef461b377570c9bfb5bc59253cb637907671fcbeea745eded1",
"sourceImageTag": "sha256:2843fb1e51a5d2ef461b377570c9bfb5bc59253cb637907671fcbeea745eded1",
"sourceStateSha256": "161217bfb96c622f88b6ee6681b9ddd0a7d9e77dcd15e42b672b3620dfec78e4",
"modelSha256": "6ce793021044be776b9778a09142f21e3f74bff0ecda5de5a9e7b5d28291b31a",
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
"artifactPath": "/opt/aixun-datagov/frontend-current"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "1278d5d258d286efbb55a0a1504d95e9eb0dd0484b86b9d741a686690de6d3a1",
"imageId": "sha256:c7dc01ebed0fe7c9fd12b3e98e5425a9a48813e415139a5029a1307f35fa9552",
"authorizedBy": "\u7528\u6237\u63a5\u624bA01\u5e76\u8fde\u7eed\u5b8c\u6210\u7f3a\u9677\u4fee\u590d\u3001\u5fc5\u8981\u68c0\u67e5\u3001\u6784\u5efa\u53ca\u5df2\u6709\u8303\u56f4\u672c\u5730\u4ea4\u4ed8\uff1b\u8865\u9f50\u771f\u5b9e\u5143\u6570\u636e\u539f\u56de\u6267GET",
"startedAt": 1792894977.7252638
}
@@ -0,0 +1,9 @@
{
"service": "governance",
"containerId": "55c7d8dad6c958bb9d7f6cb1c1ffd4c1156da8015a4772758bf0932f9079f8a0",
"imageId": "sha256:c7dc01ebed0fe7c9fd12b3e98e5425a9a48813e415139a5029a1307f35fa9552",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:70298555c8bd68386f519492ef50643349a01379e06faa6b8ca4ff69004ff3d6"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "governance",
"release": "a01-scheduling-20261025",
"imageTag": "aixun-datagov/governance:a01-scheduling-20261025",
"imageId": "sha256:c7dc01ebed0fe7c9fd12b3e98e5425a9a48813e415139a5029a1307f35fa9552",
"artifactSha256": "8f685b2456cf280e3753d86ba6080e451fad0fd3e8a5a9678b7bbe79b6689cf3",
"sourceContainerId": "1278d5d258d286efbb55a0a1504d95e9eb0dd0484b86b9d741a686690de6d3a1",
"sourceImageId": "sha256:70298555c8bd68386f519492ef50643349a01379e06faa6b8ca4ff69004ff3d6",
"sourceImageTag": "sha256:70298555c8bd68386f519492ef50643349a01379e06faa6b8ca4ff69004ff3d6",
"sourceStateSha256": "fe38602c6ebf85cba1fef27c235c24f73928fbb67c0232f4325ab618db763e53",
"modelSha256": "c6caf67b15a127da931199a2d78b09e2094baaf116f11983794ed3fda9d11610",
"identitySha256": "bcb26c58b37350900feb90dcf1eea31ba93c9e1a471eb0139587ce3c45487e3e"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "b925a022af46ebe35db62da66088d9b7eda676dacb8ab16e0bf7dd5c24745075",
"imageId": "sha256:d3b68142b0a5787b045b9c718f75fa9822e6c2a12efc2a0a835070b057302393",
"authorizedBy": "\u7528\u62372026-10-25\u63a5\u624bA01\u8981\u6c42\u4fee\u590d\u3001\u68c0\u67e5\u3001\u6784\u5efa\u548c\u5df2\u6709\u6388\u6743\u8303\u56f4\u5185\u672c\u5730\u4ea4\u4ed8",
"startedAt": 1792890473.025255
}
@@ -0,0 +1,9 @@
{
"service": "integration",
"containerId": "759d7bc729c0bcaf1ccdd8eed5bced57f495772c387e8a764d23978253faa9e6",
"imageId": "sha256:d3b68142b0a5787b045b9c718f75fa9822e6c2a12efc2a0a835070b057302393",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:3b0e4114e7ad859911de8ced0be5a827d7e94b0e59fed1725e34ae5b6dd8b0ed"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "integration",
"release": "a01-scheduling-20261025",
"imageTag": "aixun-datagov/integration:a01-scheduling-20261025",
"imageId": "sha256:d3b68142b0a5787b045b9c718f75fa9822e6c2a12efc2a0a835070b057302393",
"artifactSha256": "200604aaed809b742c25c19ed9def5f8babcb683657158e3a26921bc5f80cd1e",
"sourceContainerId": "b925a022af46ebe35db62da66088d9b7eda676dacb8ab16e0bf7dd5c24745075",
"sourceImageId": "sha256:3b0e4114e7ad859911de8ced0be5a827d7e94b0e59fed1725e34ae5b6dd8b0ed",
"sourceImageTag": "sha256:3b0e4114e7ad859911de8ced0be5a827d7e94b0e59fed1725e34ae5b6dd8b0ed",
"sourceStateSha256": "95c22ecc644c6cccb4bb318aa290f0a5dbb1e707f6709f0a3733713b13e82588",
"modelSha256": "25855b2a930ec36693b369b680f490c8f477761a59113b411ce2c13f1c56dfd8",
"identitySha256": "a816797f89c94de08c94837c25798b89fe092975a876fd0a8de5320ef5f70391"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "16f912c5538d125742a8da241d3c4801ad59281025b008d40bcc06c3116b895e",
"imageId": "sha256:2d57a2d22642ad579a279538bb89c71f9779178bd34b0afa5eb4a66d0f7d662f",
"authorizedBy": "\u7528\u6237\u63a5\u624bA01\u5e76\u8fde\u7eed\u5b8c\u6210\u7f3a\u9677\u4fee\u590d\u3001\u5fc5\u8981\u68c0\u67e5\u3001\u6784\u5efa\u53ca\u5df2\u6709\u8303\u56f4\u672c\u5730\u4ea4\u4ed8\uff1b\u672c\u6279\u8865\u9f50\u771f\u5b9e\u6cbb\u7406\u539f\u56de\u6267\u8bfb\u53d6",
"startedAt": 1792894876.610795
}
@@ -0,0 +1,9 @@
{
"service": "frontend",
"containerId": "e8c47eaac3aa551303569273abce398dd1e0dc469f69d0ebff1df14db338bc4a",
"imageId": "sha256:2d57a2d22642ad579a279538bb89c71f9779178bd34b0afa5eb4a66d0f7d662f",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:9123575212f4168b393a7630b979e0c12f942517067ed4f850b7f764de4f3fad"
}
@@ -0,0 +1,15 @@
{
"version": 1,
"service": "frontend",
"release": "a01-scheduling-20261025-r2",
"imageTag": "aixun-datagov/frontend:a01-scheduling-20261025-r2",
"imageId": "sha256:2d57a2d22642ad579a279538bb89c71f9779178bd34b0afa5eb4a66d0f7d662f",
"artifactSha256": "1106390c8b2aaad8c31fc7a9baa4c3470abda8bf159d64b64badc0e0370a2464",
"sourceContainerId": "16f912c5538d125742a8da241d3c4801ad59281025b008d40bcc06c3116b895e",
"sourceImageId": "sha256:9123575212f4168b393a7630b979e0c12f942517067ed4f850b7f764de4f3fad",
"sourceImageTag": "sha256:9123575212f4168b393a7630b979e0c12f942517067ed4f850b7f764de4f3fad",
"sourceStateSha256": "ba866d22fa30f060b3f13c840a04ee5c1dc885719fb8ec9b80f6a603b1b52218",
"modelSha256": "a13af52e780b2f636fbb5ed34057fa18f154ea6a3d698068ba39298152b77f71",
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
"artifactPath": "/opt/aixun-datagov/frontend-current"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "55c7d8dad6c958bb9d7f6cb1c1ffd4c1156da8015a4772758bf0932f9079f8a0",
"imageId": "sha256:790baa9af48d9d10e9ccbd87d8462a48ec0b08ffe546a1a6a45ea0cf49512bd0",
"authorizedBy": "\u7528\u6237\u7ee7\u7eed\u591a\u667a\u80fd\u4f53\u5b8c\u6210A01\uff1b\u4fee\u590d\u6807\u51c6\u6821\u9a8c\u53ef\u4fe1\u540e\u53f0\u8bfb\u53d6\u4e0e\u539f\u6743\u9650\u6838\u5bf9\uff0c\u6cbf\u5df2\u6709\u672c\u5730\u4ea4\u4ed8\u6388\u6743",
"startedAt": 1792938042.0674372
}
@@ -0,0 +1,9 @@
{
"service": "governance",
"containerId": "577bc9bee6b14a839dcf0299eb0a7fcf71ef904b51ca5ae94ccdf44816ce2cd7",
"imageId": "sha256:790baa9af48d9d10e9ccbd87d8462a48ec0b08ffe546a1a6a45ea0cf49512bd0",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:c7dc01ebed0fe7c9fd12b3e98e5425a9a48813e415139a5029a1307f35fa9552"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "governance",
"release": "a01-scheduling-20261025-r2",
"imageTag": "aixun-datagov/governance:a01-scheduling-20261025-r2",
"imageId": "sha256:790baa9af48d9d10e9ccbd87d8462a48ec0b08ffe546a1a6a45ea0cf49512bd0",
"artifactSha256": "e9b34ff3331fd5840c5f48f045a091688a33c171027f043909f2d13b7dcb7f9d",
"sourceContainerId": "55c7d8dad6c958bb9d7f6cb1c1ffd4c1156da8015a4772758bf0932f9079f8a0",
"sourceImageId": "sha256:c7dc01ebed0fe7c9fd12b3e98e5425a9a48813e415139a5029a1307f35fa9552",
"sourceImageTag": "sha256:c7dc01ebed0fe7c9fd12b3e98e5425a9a48813e415139a5029a1307f35fa9552",
"sourceStateSha256": "83fa07490b415aabcf1a9f89b8c097b6aa5232ae1ba4e62a771ff83e129496c7",
"modelSha256": "1559029b0598a9492c84554fb9e4c499eaaaa7fe29de6f0a0d8dfde72838500d",
"identitySha256": "bcb26c58b37350900feb90dcf1eea31ba93c9e1a471eb0139587ce3c45487e3e"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "759d7bc729c0bcaf1ccdd8eed5bced57f495772c387e8a764d23978253faa9e6",
"imageId": "sha256:4f669ee6069490a45ce1d07d74358639ad84a4e13d18559563d6104e2bb29d45",
"authorizedBy": "\u7528\u62372026-10-25\u63a5\u624bA01\u8fde\u7eed\u4fee\u590d\u53ca\u672c\u5730\u4ea4\u4ed8\uff1b\u771f\u5b9eDS\u5931\u8d25\u540e\u4fee\u590d\u56fa\u5b9a\u56de\u8c03\u8fd0\u884c\u914d\u7f6e\u8def\u5f84",
"startedAt": 1792891616.9659572
}
@@ -0,0 +1,9 @@
{
"service": "integration",
"containerId": "9d5f2c97a1e75bfcfafcf3b712b553a98ff761dc894b1dbce00d26167ed35bc4",
"imageId": "sha256:4f669ee6069490a45ce1d07d74358639ad84a4e13d18559563d6104e2bb29d45",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:d3b68142b0a5787b045b9c718f75fa9822e6c2a12efc2a0a835070b057302393"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "integration",
"release": "a01-scheduling-20261025-r2",
"imageTag": "aixun-datagov/integration:a01-scheduling-20261025-r2",
"imageId": "sha256:4f669ee6069490a45ce1d07d74358639ad84a4e13d18559563d6104e2bb29d45",
"artifactSha256": "a30dc8829abc4c064b0d49ab4d7ba3321db017c05026ba2d2fe32ba60cd62dee",
"sourceContainerId": "759d7bc729c0bcaf1ccdd8eed5bced57f495772c387e8a764d23978253faa9e6",
"sourceImageId": "sha256:d3b68142b0a5787b045b9c718f75fa9822e6c2a12efc2a0a835070b057302393",
"sourceImageTag": "sha256:d3b68142b0a5787b045b9c718f75fa9822e6c2a12efc2a0a835070b057302393",
"sourceStateSha256": "dacfd51b32582d9470d4175ce3218a36e116cdbd2e85a4c06f7fec2ba579f834",
"modelSha256": "36bab2220f0f7a3fbb72a765870edfaf4a6d49aa6859b625089ebece0e5ab36d",
"identitySha256": "a816797f89c94de08c94837c25798b89fe092975a876fd0a8de5320ef5f70391"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "e8c47eaac3aa551303569273abce398dd1e0dc469f69d0ebff1df14db338bc4a",
"imageId": "sha256:02f74a0eaca3d5f955f45369759ec4233a89e3195e684cda296a9d60f634e075",
"authorizedBy": "\u7528\u6237\u8981\u6c42\u7ee7\u7eed\u8c03\u7528\u591a\u667a\u80fd\u4f53\u5feb\u901f\u5b8c\u6210A01\uff1b\u6cbf\u5df2\u6709\u672c\u5730\u4ea4\u4ed8\u6388\u6743\u8865\u9f50\u6807\u51c6\u6821\u9a8c\u53ca\u5206\u7c7b\u8bc6\u522b\u56de\u6267",
"startedAt": 1792937104.845228
}
@@ -0,0 +1,9 @@
{
"service": "frontend",
"containerId": "a303a08b20d83284ef994f7da6ccbdef2daa99be2f3715cdbae8638762a06bf2",
"imageId": "sha256:02f74a0eaca3d5f955f45369759ec4233a89e3195e684cda296a9d60f634e075",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:2d57a2d22642ad579a279538bb89c71f9779178bd34b0afa5eb4a66d0f7d662f"
}
@@ -0,0 +1,15 @@
{
"version": 1,
"service": "frontend",
"release": "a01-scheduling-20261025-r3",
"imageTag": "aixun-datagov/frontend:a01-scheduling-20261025-r3",
"imageId": "sha256:02f74a0eaca3d5f955f45369759ec4233a89e3195e684cda296a9d60f634e075",
"artifactSha256": "187459b8a08030839b2d4741c4b722d8e31533153ad0aa600ed284686ac77f4c",
"sourceContainerId": "e8c47eaac3aa551303569273abce398dd1e0dc469f69d0ebff1df14db338bc4a",
"sourceImageId": "sha256:2d57a2d22642ad579a279538bb89c71f9779178bd34b0afa5eb4a66d0f7d662f",
"sourceImageTag": "sha256:2d57a2d22642ad579a279538bb89c71f9779178bd34b0afa5eb4a66d0f7d662f",
"sourceStateSha256": "e417ea29d5cbbffbfeee6413ad1e904dd2a01345c06ba8de9c00150a43c558fb",
"modelSha256": "46ea6fe086df1b8fde3c51d0a9f6be05dfbee0168a7abb02be251e0e4622e5b2",
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
"artifactPath": "/opt/aixun-datagov/frontend-current"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "577bc9bee6b14a839dcf0299eb0a7fcf71ef904b51ca5ae94ccdf44816ce2cd7",
"imageId": "sha256:647a85d9a135bd39f7af5dd17daead9aedf0dc2e4e1758d633c72eae516e2ee3",
"authorizedBy": "\u7528\u6237\u7ee7\u7eed\u591a\u667a\u80fd\u4f53\u5b8c\u6210A01\uff1b\u8865\u6807\u51c6\u539f\u952e\u89c2\u5bdf\u5c01\u5b58\u548c\u9636\u6bb5\u7248\u672c\u8854\u63a5\uff0c\u6cbf\u5df2\u6709\u672c\u5730\u4ea4\u4ed8\u6388\u6743",
"startedAt": 1792939145.58046
}
@@ -0,0 +1,9 @@
{
"service": "governance",
"containerId": "a51aa518fe5132f0a86052a6c915ecbed135ae2561ea07969f476f9cf31f6daf",
"imageId": "sha256:647a85d9a135bd39f7af5dd17daead9aedf0dc2e4e1758d633c72eae516e2ee3",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:790baa9af48d9d10e9ccbd87d8462a48ec0b08ffe546a1a6a45ea0cf49512bd0"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "governance",
"release": "a01-scheduling-20261025-r3",
"imageTag": "aixun-datagov/governance:a01-scheduling-20261025-r3",
"imageId": "sha256:647a85d9a135bd39f7af5dd17daead9aedf0dc2e4e1758d633c72eae516e2ee3",
"artifactSha256": "38781b4dee83056c7cdd7ea34f19bc1b1214bc2f9fc74af24888e1a325afce91",
"sourceContainerId": "577bc9bee6b14a839dcf0299eb0a7fcf71ef904b51ca5ae94ccdf44816ce2cd7",
"sourceImageId": "sha256:790baa9af48d9d10e9ccbd87d8462a48ec0b08ffe546a1a6a45ea0cf49512bd0",
"sourceImageTag": "sha256:790baa9af48d9d10e9ccbd87d8462a48ec0b08ffe546a1a6a45ea0cf49512bd0",
"sourceStateSha256": "9851a04c9e072dcc831b8e7cafc0e3c0a17e6b8f22fac6b5027e390df0131258",
"modelSha256": "463aa6c2c61a9c68580b76e4a46096a0742a44183cf5ed5b4341fb9e9876bf20",
"identitySha256": "bcb26c58b37350900feb90dcf1eea31ba93c9e1a471eb0139587ce3c45487e3e"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "a51aa518fe5132f0a86052a6c915ecbed135ae2561ea07969f476f9cf31f6daf",
"imageId": "sha256:0390611a4de6c65fbf8d53fa1ac3d657d5a5a786be464ed0463e357e6de2d188",
"authorizedBy": "\u7528\u6237\u7ee7\u7eed\u591a\u667a\u80fd\u4f53\u5b8c\u6210A01\uff1b\u6807\u51c6\u8bc1\u636e\u7248\u672c\u6570\u503c\u6bd4\u8f83\u6700\u5c0f\u4fee\u590d\uff0c\u6cbf\u5df2\u6709\u672c\u5730\u4ea4\u4ed8\u6388\u6743",
"startedAt": 1792939523.6881878
}
@@ -0,0 +1,9 @@
{
"service": "governance",
"containerId": "4799f1230e24a26e9ccd593591ca6df593dcf96b07d0eecf50f270d474bfacad",
"imageId": "sha256:0390611a4de6c65fbf8d53fa1ac3d657d5a5a786be464ed0463e357e6de2d188",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:647a85d9a135bd39f7af5dd17daead9aedf0dc2e4e1758d633c72eae516e2ee3"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "governance",
"release": "a01-scheduling-20261025-r4",
"imageTag": "aixun-datagov/governance:a01-scheduling-20261025-r4",
"imageId": "sha256:0390611a4de6c65fbf8d53fa1ac3d657d5a5a786be464ed0463e357e6de2d188",
"artifactSha256": "3213c8f064094655f80375e409b50640daf73fb10921a587b81c919f849e37b9",
"sourceContainerId": "a51aa518fe5132f0a86052a6c915ecbed135ae2561ea07969f476f9cf31f6daf",
"sourceImageId": "sha256:647a85d9a135bd39f7af5dd17daead9aedf0dc2e4e1758d633c72eae516e2ee3",
"sourceImageTag": "sha256:647a85d9a135bd39f7af5dd17daead9aedf0dc2e4e1758d633c72eae516e2ee3",
"sourceStateSha256": "d174f4fa60777f1efc9d803a71d30c584dcca2bb6b08fbe12611cf89e8f95cbb",
"modelSha256": "21348f4899d404d94f83091519897328c15dfcf4e144729a665469086509fdf3",
"identitySha256": "bcb26c58b37350900feb90dcf1eea31ba93c9e1a471eb0139587ce3c45487e3e"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "7d80605d415a96ee37f08fe8ebaf27baa7c07008fcf286c79eae72269fd17f91",
"imageId": "sha256:73184ff9632fa3b9e70324dbf76d1b2d582c8b5d367022ff745d6d7a80c97f97",
"authorizedBy": "\u7528\u6237\u7ee7\u7eed\u591a\u667a\u80fd\u4f53\u5b8c\u6210A01\uff1b\u4fee\u590d\u6807\u51c6\u6821\u9a8c\u53ef\u4fe1\u540e\u53f0\u8bfb\u53d6\u4e0e\u539f\u6743\u9650\u6838\u5bf9\uff0c\u6cbf\u5df2\u6709\u672c\u5730\u4ea4\u4ed8\u6388\u6743",
"startedAt": 1792937947.1065228
}
@@ -0,0 +1,9 @@
{
"service": "system",
"containerId": "a2547c97eec361f173dfd2c9c6034c1bef85113f2fad9d57d9fce5becd30254a",
"imageId": "sha256:73184ff9632fa3b9e70324dbf76d1b2d582c8b5d367022ff745d6d7a80c97f97",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:0fdd36552cd0f45424bc51f8741891c7b006f9cfb8ba11ab3ba4f9393a476ef0"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "system",
"release": "a01-scheduling-20261025",
"imageTag": "aixun-datagov/system:a01-scheduling-20261025",
"imageId": "sha256:73184ff9632fa3b9e70324dbf76d1b2d582c8b5d367022ff745d6d7a80c97f97",
"artifactSha256": "1b70067bfed60a4b2c3ac53b300d091e1088d29e2c7a9cc4537573aea0342d5f",
"sourceContainerId": "7d80605d415a96ee37f08fe8ebaf27baa7c07008fcf286c79eae72269fd17f91",
"sourceImageId": "sha256:0fdd36552cd0f45424bc51f8741891c7b006f9cfb8ba11ab3ba4f9393a476ef0",
"sourceImageTag": "sha256:0fdd36552cd0f45424bc51f8741891c7b006f9cfb8ba11ab3ba4f9393a476ef0",
"sourceStateSha256": "d993b5e2d7d26b60b20b47751f8663bdac5351bbe9e7d2c71261c34bcc75859b",
"modelSha256": "af31d3962a803e9d08f8415d69f41ea7f92fc026f1d17b09069a918ab8847a62",
"identitySha256": "b734d06af35a80134e72af107581823e5925717bd0f06afac0f0fba138618a48"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "5885c21eebece23cc67f5fba5b22fbfae9913d6e025e8750e123055c9c33d1e2",
"imageId": "sha256:269a708a1849ad483bd770f18b00159d0d8dc96b2c39a2cc11b237cf02705cbf",
"authorizedBy": "\u7528\u6237\u8981\u6c42\u4fdd\u5b58\u8bbf\u95ee\u914d\u7f6e\u79fb\u5230\u53f3\u4e0b\u89d2\uff0c\u6cbf\u7528\u672c\u5bf9\u8bdd\u672c\u5730Docker\u90e8\u7f72\u6388\u6743",
"startedAt": 1794450619.666434
}
@@ -0,0 +1,9 @@
{
"service": "frontend",
"containerId": "c0d4c7ecbb157324ac860b059442acf889f482439f437b6836397e27f3a21d71",
"imageId": "sha256:269a708a1849ad483bd770f18b00159d0d8dc96b2c39a2cc11b237cf02705cbf",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:fb9400fd6442800160e54f147c4ec16ac6ed6b810cc1665ea1ed748f09a6d1f9"
}
@@ -0,0 +1,15 @@
{
"version": 1,
"service": "frontend",
"release": "access-footer-20261112",
"imageTag": "aixun-datagov/frontend:access-footer-20261112",
"imageId": "sha256:269a708a1849ad483bd770f18b00159d0d8dc96b2c39a2cc11b237cf02705cbf",
"artifactSha256": "983ff421b4bb40cef91c47ff9adf747006aadd0ab2560993666906a5ecc71dbe",
"sourceContainerId": "5885c21eebece23cc67f5fba5b22fbfae9913d6e025e8750e123055c9c33d1e2",
"sourceImageId": "sha256:fb9400fd6442800160e54f147c4ec16ac6ed6b810cc1665ea1ed748f09a6d1f9",
"sourceImageTag": "sha256:fb9400fd6442800160e54f147c4ec16ac6ed6b810cc1665ea1ed748f09a6d1f9",
"sourceStateSha256": "d07bb4f30c6aba1ef6482000c0a83ada523bf052e1db2103f598b6f8a5a8604c",
"modelSha256": "89d8fc80b1ff33b52b8b732d8367554c71b7368bf906f2a81c97ccb9ff5f07fe",
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
"artifactPath": "/opt/aixun-datagov/frontend-current"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "0bf64dfbd4a47ed753711aace2b3230bd1424a7e807505133eb8778d10daba08",
"imageId": "sha256:f6f6464c2063f00f7298f3d09825e2b9fb9f0c472d426086cc0f0b1487f6aa06",
"authorizedBy": "\u7528\u6237\u4e09\u5f20\u622a\u56fe\u8981\u6c42\u6536\u7a84\u64cd\u4f5c\u5217\u548c\u6e56\u4ed3\u4e09\u9879\u64cd\u4f5c\uff0c\u6cbf\u7528\u672c\u5bf9\u8bdd\u672c\u5730Docker\u90e8\u7f72\u6388\u6743",
"startedAt": 1794451646.5782888
}
@@ -0,0 +1,9 @@
{
"service": "frontend",
"containerId": "f5e64bb4f39d2005aeca27a7a85e092642008daf7f6691497df8e09e1876c24e",
"imageId": "sha256:f6f6464c2063f00f7298f3d09825e2b9fb9f0c472d426086cc0f0b1487f6aa06",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:1a9a124961a55b913a711a93f14d6e42ff54cfee121bf95f7d1f2e1d1edf1ca4"
}
@@ -0,0 +1,15 @@
{
"version": 1,
"service": "frontend",
"release": "action-columns-20261112",
"imageTag": "aixun-datagov/frontend:action-columns-20261112",
"imageId": "sha256:f6f6464c2063f00f7298f3d09825e2b9fb9f0c472d426086cc0f0b1487f6aa06",
"artifactSha256": "f20149f6486781594a20dbac3c81db44cabe2f4dbe82554e9a2026a108faecdb",
"sourceContainerId": "0bf64dfbd4a47ed753711aace2b3230bd1424a7e807505133eb8778d10daba08",
"sourceImageId": "sha256:1a9a124961a55b913a711a93f14d6e42ff54cfee121bf95f7d1f2e1d1edf1ca4",
"sourceImageTag": "sha256:1a9a124961a55b913a711a93f14d6e42ff54cfee121bf95f7d1f2e1d1edf1ca4",
"sourceStateSha256": "d07bb4f30c6aba1ef6482000c0a83ada523bf052e1db2103f598b6f8a5a8604c",
"modelSha256": "f2c99694c981938d36feb6aeb0620429eb2dff556d24469149b7719db360edbe",
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
"artifactPath": "/opt/aixun-datagov/frontend-current"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "3ccdadcaa359aa3df965c9b2319034e6c24791336fc30cc859c28620b8a516be",
"imageId": "sha256:c7b4757751536e2371bc0d98af65dd30a4dc3c9e5c246ff15c1926cf8fb8e92e",
"authorizedBy": "\u7528\u6237\u8981\u6c42\u5173\u95edAI\u914d\u7f6e\u540e\u5168\u5c40\u9690\u85cfAI\u529f\u80fd\uff0c\u6cbf\u7528\u672c\u5bf9\u8bdd\u672c\u5730Docker\u90e8\u7f72\u6388\u6743",
"startedAt": 1794453432.498932
}
@@ -0,0 +1,9 @@
{
"service": "frontend",
"containerId": "87e69332f28ee80b6e58190be76906c434545bb43c987ce9cb28b6ec16e15689",
"imageId": "sha256:c7b4757751536e2371bc0d98af65dd30a4dc3c9e5c246ff15c1926cf8fb8e92e",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:e687c4bb38b908c769584b09dd9152f89ddef94935301c5b8e2e9545f978c1cd"
}
@@ -0,0 +1,15 @@
{
"version": 1,
"service": "frontend",
"release": "ai-visibility-20261112",
"imageTag": "aixun-datagov/frontend:ai-visibility-20261112",
"imageId": "sha256:c7b4757751536e2371bc0d98af65dd30a4dc3c9e5c246ff15c1926cf8fb8e92e",
"artifactSha256": "aeda34b3684342216d53406729a5ac2b361df82f3e5efbbef21bdadbccd3022e",
"sourceContainerId": "3ccdadcaa359aa3df965c9b2319034e6c24791336fc30cc859c28620b8a516be",
"sourceImageId": "sha256:e687c4bb38b908c769584b09dd9152f89ddef94935301c5b8e2e9545f978c1cd",
"sourceImageTag": "sha256:e687c4bb38b908c769584b09dd9152f89ddef94935301c5b8e2e9545f978c1cd",
"sourceStateSha256": "d07bb4f30c6aba1ef6482000c0a83ada523bf052e1db2103f598b6f8a5a8604c",
"modelSha256": "1f2c39b781d88b1e42fa82c0303422f66741684158237f44f1f05c4f9de10844",
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
"artifactPath": "/opt/aixun-datagov/frontend-current"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "eef43d74b3af033be1a4784f7c211c2bec6bffc9ac86bd9b9be08a1404c8f4aa",
"imageId": "sha256:af6109dfae52f2f28f587b0279f27c04e48d02bebdbdf1a8ba7b9e0881cc1064",
"authorizedBy": "\u5ef6\u7eed\u7528\u6237\u672c\u5730Docker\u90e8\u7f72\u6388\u6743\uff0c\u6309\u6700\u65b0\u6f84\u6e05\u5c06\u8d85\u8fc74\u4e2a\u64cd\u4f5c\u6536\u8d77\u5230\u66f4\u591a\u63a8\u5e7f\u81f3\u6240\u6709\u9875\u9762",
"startedAt": 1794052177.0012128
}
@@ -0,0 +1,9 @@
{
"service": "frontend",
"containerId": "c1fb06fad9c93e2c58a3290cab3c7fb18abdf7b6b5b89eb5df528687e695a267",
"imageId": "sha256:af6109dfae52f2f28f587b0279f27c04e48d02bebdbdf1a8ba7b9e0881cc1064",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:c0f9de7a9510d738ed632e98e076228d9c3a99f371ce3cf0440327d6da001de1"
}
@@ -0,0 +1,15 @@
{
"version": 1,
"service": "frontend",
"release": "all-row-more-20261107",
"imageTag": "aixun-datagov/frontend:all-row-more-20261107",
"imageId": "sha256:af6109dfae52f2f28f587b0279f27c04e48d02bebdbdf1a8ba7b9e0881cc1064",
"artifactSha256": "5ce38cf18039d7918ac5980bb0f4d5badf39d50f5fde213254d4cf45ba000ff4",
"sourceContainerId": "eef43d74b3af033be1a4784f7c211c2bec6bffc9ac86bd9b9be08a1404c8f4aa",
"sourceImageId": "sha256:c0f9de7a9510d738ed632e98e076228d9c3a99f371ce3cf0440327d6da001de1",
"sourceImageTag": "sha256:c0f9de7a9510d738ed632e98e076228d9c3a99f371ce3cf0440327d6da001de1",
"sourceStateSha256": "d07bb4f30c6aba1ef6482000c0a83ada523bf052e1db2103f598b6f8a5a8604c",
"modelSha256": "6bc60ade6ccde3fbeea33c15e8a475e050001ff59ff1d41be8d7cff00361fe3c",
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
"artifactPath": "/opt/aixun-datagov/frontend-current"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "b6d37de40e24d904d24a1f0ae27c4d83065b3b06b2c0694815e74273b32f1c20",
"imageId": "sha256:248aee28ce3166f1d36894dcdc13983121d8d1f180659e2952ba42d4b5473c93",
"authorizedBy": "\u7528\u6237\u622a\u56fe\u8981\u6c42\u8c03\u6574\u63a5\u53e3\u5f00\u53d1\u5217\u5bbd\uff0c\u6cbf\u7528\u672c\u5bf9\u8bdd\u672c\u5730Docker\u90e8\u7f72\u6388\u6743",
"startedAt": 1794455910.20974
}
@@ -0,0 +1,9 @@
{
"service": "frontend",
"containerId": "d68f505202f6363a4e629cc381886173eb24a1976752d3933dc90c164aa76b49",
"imageId": "sha256:248aee28ce3166f1d36894dcdc13983121d8d1f180659e2952ba42d4b5473c93",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:50f00d68d78dc6d78163fb792a005c6d4e1b4b99a94565ae1e242c8c05fccb20"
}
@@ -0,0 +1,15 @@
{
"version": 1,
"service": "frontend",
"release": "api-columns-20261112",
"imageTag": "aixun-datagov/frontend:api-columns-20261112",
"imageId": "sha256:248aee28ce3166f1d36894dcdc13983121d8d1f180659e2952ba42d4b5473c93",
"artifactSha256": "ef3eb1c1383e7320e022c5b7f46bb75896f70f8130bb6adff2880ad570871ca0",
"sourceContainerId": "b6d37de40e24d904d24a1f0ae27c4d83065b3b06b2c0694815e74273b32f1c20",
"sourceImageId": "sha256:50f00d68d78dc6d78163fb792a005c6d4e1b4b99a94565ae1e242c8c05fccb20",
"sourceImageTag": "sha256:50f00d68d78dc6d78163fb792a005c6d4e1b4b99a94565ae1e242c8c05fccb20",
"sourceStateSha256": "d07bb4f30c6aba1ef6482000c0a83ada523bf052e1db2103f598b6f8a5a8604c",
"modelSha256": "669db0dc67f8209b7d48d6890672d425e4db0eeae6d8a1e624f61e9acce8f246",
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
"artifactPath": "/opt/aixun-datagov/frontend-current"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "b2b7ec41915fefe8485eb3e526677d652144e218647cd8b26ac6d14e47f4f4bc",
"imageId": "sha256:8b04895ca54aed3c9a93b77a61dff470952331e57526a99a59a2b392d8634512",
"authorizedBy": "\u7528\u6237\u8981\u6c42\u751f\u6210ceshi API\u63a5\u53e3\u5e76\u5ef6\u7eed\u4fee\u590d\u672c\u5730\u6d41\u7a0b\u6388\u6743",
"startedAt": 1793786268.183079
}
@@ -0,0 +1,9 @@
{
"service": "dataproduct",
"containerId": "61c866ce3f4f756076f2e4979c58ca8667fb298de966e2cb9c48a1dec4774029",
"imageId": "sha256:8b04895ca54aed3c9a93b77a61dff470952331e57526a99a59a2b392d8634512",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:86025103d18640e1ad9c6054d1716d5e58f406c4317cf7d3682a09019d0d16c4"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "dataproduct",
"release": "ceshi-api-20261104",
"imageTag": "aixun-datagov/dataproduct:ceshi-api-20261104",
"imageId": "sha256:8b04895ca54aed3c9a93b77a61dff470952331e57526a99a59a2b392d8634512",
"artifactSha256": "238d7e79fb3ca00093ad2cac085b5a1aa0a7cc8d37d583317e9bb40e2d98b36d",
"sourceContainerId": "b2b7ec41915fefe8485eb3e526677d652144e218647cd8b26ac6d14e47f4f4bc",
"sourceImageId": "sha256:86025103d18640e1ad9c6054d1716d5e58f406c4317cf7d3682a09019d0d16c4",
"sourceImageTag": "sha256:86025103d18640e1ad9c6054d1716d5e58f406c4317cf7d3682a09019d0d16c4",
"sourceStateSha256": "55b4e2e04b5f2e5219f15c708789e815c164a94b9e175e9c81ffe351384f8f9f",
"modelSha256": "377032f168ccdf7e2f70848ba5df95807fcc502d278c1a230f5b56787f1a2e09",
"identitySha256": "e80a68c3fc5a69cac86e4a84d227372ca04724e2de73e6b1adf82c3b894c7fc2"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "7ba890697bc8571d43aa6cd3d2a8be413a3e28ff6ad87b7eeef3d50b5a359c55",
"imageId": "sha256:6e5117456cc64cb4828682c6800a36e89b6d462869db5b361aefa763140e0fdc",
"authorizedBy": "\u7528\u6237\u8981\u6c42\u5b8c\u6210ceshi API\u67e5\u8be2\u5e76\u4fee\u590d\u5b9e\u9645\u6d4b\u8bd5\u95ee\u9898\uff0c\u7edf\u4e00Doris\u539f\u751f\u5b57\u6bb5\u7ed3\u6784\u6821\u9a8c\u53e3\u5f84",
"startedAt": 1793788188.640943
}
@@ -0,0 +1,9 @@
{
"service": "integration",
"containerId": "805a35ff2e2a1b9034a866d0c05de66ad8946111ee0b092a263df694356e5fb3",
"imageId": "sha256:6e5117456cc64cb4828682c6800a36e89b6d462869db5b361aefa763140e0fdc",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:b2770af5e782748c4b1d436862f352709196cf8197e20a12e0025b151db7d1bf"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "integration",
"release": "ceshi-api-doris-20261104",
"imageTag": "aixun-datagov/integration:ceshi-api-doris-20261104",
"imageId": "sha256:6e5117456cc64cb4828682c6800a36e89b6d462869db5b361aefa763140e0fdc",
"artifactSha256": "9f9cbfc1c0a62f8aed705202deff5b9e34032511c71d2ef7fd5a6eab6437fc2a",
"sourceContainerId": "7ba890697bc8571d43aa6cd3d2a8be413a3e28ff6ad87b7eeef3d50b5a359c55",
"sourceImageId": "sha256:b2770af5e782748c4b1d436862f352709196cf8197e20a12e0025b151db7d1bf",
"sourceImageTag": "sha256:b2770af5e782748c4b1d436862f352709196cf8197e20a12e0025b151db7d1bf",
"sourceStateSha256": "16723cbb621cc561200c8a1d83d47563c3b5d6ae840507707cf94c90a34773dd",
"modelSha256": "f00438552e7446e364ef552a5c8926a985d2cc36783ef4198b92a5a8333daec3",
"identitySha256": "c36f4d7ac19a1923647539213ebc0bc419e1a2a50101b921cdcbd7a3469d8fb4"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "20bdac358b486a876220985f62567266d60d158d685e0e955b263c6052153f4b",
"imageId": "sha256:38f9887f4994796dbe1cee5796ff12016eb1673a306b6cc66849ef872cdf498c",
"authorizedBy": "\u7528\u6237\u8981\u6c42\u751f\u6210ceshi API\u5e76\u6388\u6743\u4ec5admin\u8c03\u7528\uff0c\u4fee\u590d\u672c\u5730\u6743\u9650\u914d\u7f6e",
"startedAt": 1793787274.673686
}
@@ -0,0 +1,9 @@
{
"service": "frontend",
"containerId": "63be3b74bd3ffba9617b3b718e7a33c442f9523957f8df16b70ffe6a716a71dd",
"imageId": "sha256:38f9887f4994796dbe1cee5796ff12016eb1673a306b6cc66849ef872cdf498c",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:b699ecbf13bf30d3480fc52656575591b3c8be2c2cfd98597f92a6cbe074cc65"
}
@@ -0,0 +1,15 @@
{
"version": 1,
"service": "frontend",
"release": "ceshi-api-owner-20261104",
"imageTag": "aixun-datagov/frontend:ceshi-api-owner-20261104",
"imageId": "sha256:38f9887f4994796dbe1cee5796ff12016eb1673a306b6cc66849ef872cdf498c",
"artifactSha256": "0b83959169ef3cb3173f3c490210cb638c75a6d4fb4b343c6dbfaf128aee1075",
"sourceContainerId": "20bdac358b486a876220985f62567266d60d158d685e0e955b263c6052153f4b",
"sourceImageId": "sha256:b699ecbf13bf30d3480fc52656575591b3c8be2c2cfd98597f92a6cbe074cc65",
"sourceImageTag": "sha256:b699ecbf13bf30d3480fc52656575591b3c8be2c2cfd98597f92a6cbe074cc65",
"sourceStateSha256": "8d43e217629ebae93c2996dd8ff8de91a47718a8d6ea55b472fcaed39f79e59b",
"modelSha256": "0470a8a5206d13f19e90654e445eab3ea2287f9a27cb1abd1e79eef92743a656",
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
"artifactPath": "/opt/aixun-datagov/frontend-current"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "18d84e5be80045589e477ab803f797cdf9cbab1cc4b94e7cdbc11cf2b9114a14",
"imageId": "sha256:d65d4400e7faea09464eddd8fe8b13a2b3bd8a16046448ae626ad551811d53eb",
"authorizedBy": "\u7528\u6237\u660e\u786e\u6279\u51c6ceshi\u79c1\u6709\u8868\u4ec5admin\u4f1a\u8bddAPI\u67e5\u8be2\uff0c\u4fee\u590d\u5e76\u9a8c\u8bc1\u672c\u5730\u6d41\u7a0b",
"startedAt": 1793787360.514973
}
@@ -0,0 +1,9 @@
{
"service": "governance",
"containerId": "8ccf83f73c0e23a2fa41f769aed413204e7999b14464b55c593b38b326881e3f",
"imageId": "sha256:d65d4400e7faea09464eddd8fe8b13a2b3bd8a16046448ae626ad551811d53eb",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:abc72a02be4937900ba6dc6da5252abda75c727078837c5d5fa886394677b0a5"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "governance",
"release": "ceshi-api-owner-20261104",
"imageTag": "aixun-datagov/governance:ceshi-api-owner-20261104",
"imageId": "sha256:d65d4400e7faea09464eddd8fe8b13a2b3bd8a16046448ae626ad551811d53eb",
"artifactSha256": "061bb4a6c1e4228bb759b90bbdb1ae036487e4891e2078f3a5433c18a9942327",
"sourceContainerId": "18d84e5be80045589e477ab803f797cdf9cbab1cc4b94e7cdbc11cf2b9114a14",
"sourceImageId": "sha256:abc72a02be4937900ba6dc6da5252abda75c727078837c5d5fa886394677b0a5",
"sourceImageTag": "sha256:abc72a02be4937900ba6dc6da5252abda75c727078837c5d5fa886394677b0a5",
"sourceStateSha256": "b9e05c4640c8de66ff3a36105f87922d75afe98567c4c7d1b7e875dc749b53d8",
"modelSha256": "5006f0f5f2031eb2d8be623ba2b5e0ad70fca62b9c8bb3bb6ea15e0a0c6da039",
"identitySha256": "bcb26c58b37350900feb90dcf1eea31ba93c9e1a471eb0139587ce3c45487e3e"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "6ce87edcf1e9215c20299abfcc1aec12faaa5d49f2b8664fe6f4f0d56ea49b09",
"imageId": "sha256:b2770af5e782748c4b1d436862f352709196cf8197e20a12e0025b151db7d1bf",
"authorizedBy": "\u7528\u6237\u8981\u6c42\u4fee\u590dceshi API\u67e5\u8be2\uff0c\u4fdd\u7559\u5f53\u524d\u8fd0\u884c\u914d\u7f6e\u5e76\u8865\u5145\u65e0\u654f\u611f\u5185\u5bb9\u7684\u67e5\u8be2\u6545\u969c\u5b9a\u4f4d",
"startedAt": 1793787770.9085429
}
@@ -0,0 +1,9 @@
{
"service": "integration",
"containerId": "7ba890697bc8571d43aa6cd3d2a8be413a3e28ff6ad87b7eeef3d50b5a359c55",
"imageId": "sha256:b2770af5e782748c4b1d436862f352709196cf8197e20a12e0025b151db7d1bf",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:ee57ee5d8441f73c987db6b70a7d21b60f80ddb3c418c1c8d12674079bdbcb9a"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "integration",
"release": "ceshi-api-query-20261104",
"imageTag": "aixun-datagov/integration:ceshi-api-query-20261104",
"imageId": "sha256:b2770af5e782748c4b1d436862f352709196cf8197e20a12e0025b151db7d1bf",
"artifactSha256": "21737757ee4cd1f92622a78cbed35e0ecac1a073ca96436ad3c72d1ec409fe78",
"sourceContainerId": "6ce87edcf1e9215c20299abfcc1aec12faaa5d49f2b8664fe6f4f0d56ea49b09",
"sourceImageId": "sha256:ee57ee5d8441f73c987db6b70a7d21b60f80ddb3c418c1c8d12674079bdbcb9a",
"sourceImageTag": "sha256:ee57ee5d8441f73c987db6b70a7d21b60f80ddb3c418c1c8d12674079bdbcb9a",
"sourceStateSha256": "8d83f9ee981bdf9e230479359fa41123f055f52d522631989691502743a39f9e",
"modelSha256": "3d9b110daf06f6177e827761780ad6cf66e0e07cc176f5ebf8482e60a50253cb",
"identitySha256": "c36f4d7ac19a1923647539213ebc0bc419e1a2a50101b921cdcbd7a3469d8fb4"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "9555fe911cb77498b34161c3b8c6fc1dc7de2f744663de9bdbfa77d22fc662b6",
"imageId": "sha256:86025103d18640e1ad9c6054d1716d5e58f406c4317cf7d3682a09019d0d16c4",
"authorizedBy": "\u7528\u6237\u8981\u6c42\u628a\u5f53\u524d\u95ee\u9898\u4fee\u6539\u597d\uff0c\u4fee\u590d\u672c\u5730\u6307\u6807\u53ca\u6570\u636e\u96c6\u5e76\u7ee7\u7eed\u6302\u8f7d",
"startedAt": 1793781282.2743628
}
@@ -0,0 +1,9 @@
{
"service": "dataproduct",
"containerId": "b2b7ec41915fefe8485eb3e526677d652144e218647cd8b26ac6d14e47f4f4bc",
"imageId": "sha256:86025103d18640e1ad9c6054d1716d5e58f406c4317cf7d3682a09019d0d16c4",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:ec505f5b981c6186c75b9d08c3eaadb96b59bda1d2e9ec90473a674bb77fcec3"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "dataproduct",
"release": "ceshi-metric-20261104",
"imageTag": "aixun-datagov/dataproduct:ceshi-metric-20261104",
"imageId": "sha256:86025103d18640e1ad9c6054d1716d5e58f406c4317cf7d3682a09019d0d16c4",
"artifactSha256": "36a41c0d1299db830c2dc302536ebfa49e786a5a8bd93fa70086477f5486fc14",
"sourceContainerId": "9555fe911cb77498b34161c3b8c6fc1dc7de2f744663de9bdbfa77d22fc662b6",
"sourceImageId": "sha256:ec505f5b981c6186c75b9d08c3eaadb96b59bda1d2e9ec90473a674bb77fcec3",
"sourceImageTag": "sha256:ec505f5b981c6186c75b9d08c3eaadb96b59bda1d2e9ec90473a674bb77fcec3",
"sourceStateSha256": "4361699134c2253dcd11ab6deb2444bb6f16e9577af103b9f68c04bc42e88e0d",
"modelSha256": "7e6c8277b95208e6ca0b929740a1472d9457c2823c04940a017f4e6188df3327",
"identitySha256": "e80a68c3fc5a69cac86e4a84d227372ca04724e2de73e6b1adf82c3b894c7fc2"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "4799f1230e24a26e9ccd593591ca6df593dcf96b07d0eecf50f270d474bfacad",
"imageId": "sha256:c1951149262843ee16969d0c3a7b9d83d4e1263127825dd6a7cbf2e88e5675a7",
"authorizedBy": "\u7528\u6237\u8981\u6c42\u4fee\u590d\u7ed3\u679c\u8868\u8d28\u91cf\u5173\u8054\u5e76\u7ee7\u7eed\u539f\u53d1\u5e03\u6d41\u7a0b",
"startedAt": 1793783331.019336
}
@@ -0,0 +1,9 @@
{
"service": "governance",
"containerId": "b8353b889220b3d0ea7a90f72141328a5aa7be4481f8ee993c7d9903361fb629",
"imageId": "sha256:c1951149262843ee16969d0c3a7b9d83d4e1263127825dd6a7cbf2e88e5675a7",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:0390611a4de6c65fbf8d53fa1ac3d657d5a5a786be464ed0463e357e6de2d188"
}
@@ -0,0 +1,14 @@
{
"version": 1,
"service": "governance",
"release": "ceshi-quality-20261104",
"imageTag": "aixun-datagov/governance:ceshi-quality-20261104",
"imageId": "sha256:c1951149262843ee16969d0c3a7b9d83d4e1263127825dd6a7cbf2e88e5675a7",
"artifactSha256": "5faf812a5173324d01498e8a8fd20ff829ea8807dc06420ca33c1c79273b3268",
"sourceContainerId": "4799f1230e24a26e9ccd593591ca6df593dcf96b07d0eecf50f270d474bfacad",
"sourceImageId": "sha256:0390611a4de6c65fbf8d53fa1ac3d657d5a5a786be464ed0463e357e6de2d188",
"sourceImageTag": "sha256:0390611a4de6c65fbf8d53fa1ac3d657d5a5a786be464ed0463e357e6de2d188",
"sourceStateSha256": "310fb83fc652bfbf12c8cd7f9f704fc185a3d706c98b79be29ecefb1a45faff4",
"modelSha256": "398dd407727e9bceac31f33aaa04df929db741a08d59efdd239b5c19b8754d38",
"identitySha256": "bcb26c58b37350900feb90dcf1eea31ba93c9e1a471eb0139587ce3c45487e3e"
}
@@ -0,0 +1,6 @@
{
"sourceContainerId": "a459768a64c46c36adb0dd270c93c91a6c89f5ae105db6c9ac6c5fe875f66098",
"imageId": "sha256:b699ecbf13bf30d3480fc52656575591b3c8be2c2cfd98597f92a6cbe074cc65",
"authorizedBy": "\u7528\u6237\u8981\u6c42\u7ee7\u7eed\u4fee\u590d\u843d\u6807\u53ca\u53d1\u5e03\u6d41\u7a0b",
"startedAt": 1793785335.575784
}
@@ -0,0 +1,9 @@
{
"service": "frontend",
"containerId": "20bdac358b486a876220985f62567266d60d158d685e0e955b263c6052153f4b",
"imageId": "sha256:b699ecbf13bf30d3480fc52656575591b3c8be2c2cfd98597f92a6cbe074cc65",
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
"artifactReadback": "PASS",
"applicationReadiness": "NOT_RUN",
"recoveryImageId": "sha256:3c2a929cd6bd0f0a3e264b0efa9fae648d005e177e40022aa0544e9504ca07b2"
}
@@ -0,0 +1,15 @@
{
"version": 1,
"service": "frontend",
"release": "ceshi-standard-20261104",
"imageTag": "aixun-datagov/frontend:ceshi-standard-20261104",
"imageId": "sha256:b699ecbf13bf30d3480fc52656575591b3c8be2c2cfd98597f92a6cbe074cc65",
"artifactSha256": "99d061ca4afadce55ffb174929975c85917ecdde4552e8b27c21f83bf88dc997",
"sourceContainerId": "a459768a64c46c36adb0dd270c93c91a6c89f5ae105db6c9ac6c5fe875f66098",
"sourceImageId": "sha256:3c2a929cd6bd0f0a3e264b0efa9fae648d005e177e40022aa0544e9504ca07b2",
"sourceImageTag": "sha256:3c2a929cd6bd0f0a3e264b0efa9fae648d005e177e40022aa0544e9504ca07b2",
"sourceStateSha256": "f125c6e19cbb0664e8bdd53e6e24a663eb11946788509e4edc3dd09f22204a92",
"modelSha256": "f9756701bb3fd381b3cc1193c25afb76a9d04dcfef571be8e817415bb3c87e86",
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
"artifactPath": "/opt/aixun-datagov/frontend-current"
}

某些文件未显示,因为此 diff 中更改的文件太多 显示更多