修改问题
这个提交包含在:
@@ -5,7 +5,7 @@ spring:
|
||||
datasource:
|
||||
master:
|
||||
type: ${spring.datasource.type}
|
||||
driver-class-name: dm.jdbc.driver.DmDriver
|
||||
driver-class-name: ${PLATFORM_DB_DRIVER:}
|
||||
url: ${datasource.system-master.url}
|
||||
username: ${datasource.system-master.username}
|
||||
password: ${datasource.system-master.password}
|
||||
|
||||
@@ -5,7 +5,7 @@ spring:
|
||||
datasource:
|
||||
master:
|
||||
type: ${spring.datasource.type}
|
||||
driver-class-name: dm.jdbc.driver.DmDriver
|
||||
driver-class-name: ${PLATFORM_DB_DRIVER:}
|
||||
url: ${datasource.system-master.url}
|
||||
username: ${datasource.system-master.username}
|
||||
password: ${datasource.system-master.password}
|
||||
|
||||
@@ -12,7 +12,7 @@ spring:
|
||||
strict: true
|
||||
seata: false
|
||||
hikari:
|
||||
schema: ${DM_SCHEMA}
|
||||
schema: ${PLATFORM_DB_SCHEMA:${DM_SCHEMA:}}
|
||||
maxPoolSize: 20
|
||||
minIdle: 10
|
||||
connectionTimeout: 3000
|
||||
@@ -22,7 +22,7 @@ spring:
|
||||
datasource:
|
||||
master:
|
||||
type: ${spring.datasource.type}
|
||||
driver-class-name: dm.jdbc.driver.DmDriver
|
||||
driver-class-name: ${PLATFORM_DB_DRIVER:}
|
||||
url: ${datasource.system-master.url}
|
||||
username: ${datasource.system-master.username}
|
||||
password: ${datasource.system-master.password}
|
||||
@@ -30,9 +30,9 @@ spring:
|
||||
datasource:
|
||||
system-master:
|
||||
# Dedicated DataGov user owns the platform schema; no system-user fallback.
|
||||
url: jdbc:dm://${DM_HOST}:${DM_PORT:5236}
|
||||
username: ${DM_USERNAME}
|
||||
password: ${DM_PASSWORD}
|
||||
url: ${PLATFORM_DB_URL:jdbc:dm://${DM_HOST:localhost}:${DM_PORT:5236}}
|
||||
username: ${PLATFORM_DB_USERNAME:${DM_USERNAME:}}
|
||||
password: ${PLATFORM_DB_PASSWORD:${DM_PASSWORD:}}
|
||||
|
||||
datagov:
|
||||
unit: dataops
|
||||
|
||||
@@ -12,7 +12,7 @@ spring:
|
||||
strict: true
|
||||
seata: false
|
||||
hikari:
|
||||
schema: ${DM_SCHEMA}
|
||||
schema: ${PLATFORM_DB_SCHEMA:${DM_SCHEMA:}}
|
||||
maxPoolSize: 20
|
||||
minIdle: 10
|
||||
connectionTimeout: 3000
|
||||
@@ -23,7 +23,7 @@ spring:
|
||||
datasource:
|
||||
master:
|
||||
type: ${spring.datasource.type}
|
||||
driver-class-name: dm.jdbc.driver.DmDriver
|
||||
driver-class-name: ${PLATFORM_DB_DRIVER:}
|
||||
url: ${datasource.system-master.url}
|
||||
username: ${datasource.system-master.username}
|
||||
password: ${datasource.system-master.password}
|
||||
@@ -31,9 +31,9 @@ spring:
|
||||
datasource:
|
||||
system-master:
|
||||
# Dedicated DataGov user owns the platform schema; no system-user fallback.
|
||||
url: jdbc:dm://${DM_HOST}:${DM_PORT:5236}
|
||||
username: ${DM_USERNAME}
|
||||
password: ${DM_PASSWORD}
|
||||
url: ${PLATFORM_DB_URL:jdbc:dm://${DM_HOST:localhost}:${DM_PORT:5236}}
|
||||
username: ${PLATFORM_DB_USERNAME:${DM_USERNAME:}}
|
||||
password: ${PLATFORM_DB_PASSWORD:${DM_PASSWORD:}}
|
||||
|
||||
datagov:
|
||||
unit: dataproduct
|
||||
|
||||
@@ -12,7 +12,7 @@ spring:
|
||||
strict: true
|
||||
seata: false
|
||||
hikari:
|
||||
schema: ${DM_SCHEMA}
|
||||
schema: ${PLATFORM_DB_SCHEMA:${DM_SCHEMA:}}
|
||||
maxPoolSize: 20
|
||||
minIdle: 10
|
||||
connectionTimeout: 3000
|
||||
@@ -22,7 +22,7 @@ spring:
|
||||
datasource:
|
||||
master:
|
||||
type: ${spring.datasource.type}
|
||||
driver-class-name: dm.jdbc.driver.DmDriver
|
||||
driver-class-name: ${PLATFORM_DB_DRIVER:}
|
||||
url: ${datasource.system-master.url}
|
||||
username: ${datasource.system-master.username}
|
||||
password: ${datasource.system-master.password}
|
||||
@@ -30,9 +30,9 @@ spring:
|
||||
datasource:
|
||||
system-master:
|
||||
# Dedicated DataGov user owns the platform schema; no system-user fallback.
|
||||
url: jdbc:dm://${DM_HOST}:${DM_PORT:5236}
|
||||
username: ${DM_USERNAME}
|
||||
password: ${DM_PASSWORD}
|
||||
url: ${PLATFORM_DB_URL:jdbc:dm://${DM_HOST:localhost}:${DM_PORT:5236}}
|
||||
username: ${PLATFORM_DB_USERNAME:${DM_USERNAME:}}
|
||||
password: ${PLATFORM_DB_PASSWORD:${DM_PASSWORD:}}
|
||||
|
||||
datagov:
|
||||
unit: governance
|
||||
|
||||
@@ -12,7 +12,7 @@ spring:
|
||||
strict: true
|
||||
seata: false
|
||||
hikari:
|
||||
schema: ${DM_SCHEMA}
|
||||
schema: ${PLATFORM_DB_SCHEMA:${DM_SCHEMA:}}
|
||||
maxPoolSize: 20
|
||||
minIdle: 10
|
||||
connectionTimeout: 3000
|
||||
@@ -22,7 +22,7 @@ spring:
|
||||
datasource:
|
||||
master:
|
||||
type: ${spring.datasource.type}
|
||||
driver-class-name: dm.jdbc.driver.DmDriver
|
||||
driver-class-name: ${PLATFORM_DB_DRIVER:}
|
||||
url: ${datasource.system-master.url}
|
||||
username: ${datasource.system-master.username}
|
||||
password: ${datasource.system-master.password}
|
||||
@@ -30,9 +30,9 @@ spring:
|
||||
datasource:
|
||||
system-master:
|
||||
# Dedicated DataGov user owns the platform schema; no system-user fallback.
|
||||
url: jdbc:dm://${DM_HOST}:${DM_PORT:5236}
|
||||
username: ${DM_USERNAME}
|
||||
password: ${DM_PASSWORD}
|
||||
url: ${PLATFORM_DB_URL:jdbc:dm://${DM_HOST:localhost}:${DM_PORT:5236}}
|
||||
username: ${PLATFORM_DB_USERNAME:${DM_USERNAME:}}
|
||||
password: ${PLATFORM_DB_PASSWORD:${DM_PASSWORD:}}
|
||||
|
||||
datagov:
|
||||
unit: integration
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
datasource:
|
||||
system-master:
|
||||
# Dedicated DataGov user owns the platform schema; no system-user fallback.
|
||||
url: jdbc:dm://${DM_HOST}:${DM_PORT:5236}
|
||||
username: ${DM_USERNAME}
|
||||
password: ${DM_PASSWORD}
|
||||
url: ${PLATFORM_DB_URL:jdbc:dm://${DM_HOST:localhost}:${DM_PORT:5236}}
|
||||
username: ${PLATFORM_DB_USERNAME:${DM_USERNAME:}}
|
||||
password: ${PLATFORM_DB_PASSWORD:${DM_PASSWORD:}}
|
||||
|
||||
mybatis-plus:
|
||||
sql-log:
|
||||
@@ -16,7 +16,7 @@ spring:
|
||||
seata: false
|
||||
strict: true
|
||||
hikari:
|
||||
schema: ${DM_SCHEMA}
|
||||
schema: ${PLATFORM_DB_SCHEMA:${DM_SCHEMA:}}
|
||||
maxPoolSize: 20
|
||||
minIdle: 2
|
||||
connectionTimeout: 30000
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
import java.sql.*;
|
||||
import java.util.*;
|
||||
import java.io.*;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
/** Validate supplied SELECT/INSERT/UPDATE templates without executing them. Secrets only via env. */
|
||||
class PlatformDatabaseProbe {
|
||||
public static void main(String[] args) throws Exception {
|
||||
boolean mysql=args[0].equals("mysql");
|
||||
Properties p=new Properties();
|
||||
p.setProperty("user",System.getenv(mysql?"PROBE_MYSQL_USER":"DM_USERNAME"));
|
||||
p.setProperty("password",System.getenv(mysql?"PROBE_MYSQL_PASSWORD":"DM_PASSWORD"));
|
||||
p.setProperty("useServerPrepStmts","true");p.setProperty("emulateUnsupportedPstmts","false");
|
||||
String url=mysql?System.getenv("PROBE_MYSQL_URL"):"jdbc:dm://"+System.getenv("DM_HOST")+":"+System.getenv("DM_PORT");
|
||||
try(Connection c=DriverManager.getConnection(url,p)) {
|
||||
if(!mysql)c.setSchema(System.getenv("DM_SCHEMA"));
|
||||
// MySQL rejects even COM_STMT_PREPARE for DML in a read-only session.
|
||||
// No statement below is executed; transactions are rolled back on close.
|
||||
c.setAutoCommit(false);
|
||||
boolean rejected=false;
|
||||
try(var s=c.prepareStatement("SELECT * FROM DG_DUALCHECK_NO_SUCH_TABLE")){s.getParameterMetaData();}
|
||||
catch(SQLException e){rejected=true;}
|
||||
if(!rejected)throw new IllegalStateException("Server preparation was not validated");
|
||||
int ok=0,failed=0;
|
||||
var input=new BufferedReader(new InputStreamReader(System.in,StandardCharsets.UTF_8));String line;
|
||||
while((line=input.readLine())!=null){
|
||||
String[] parts=line.split("\t",2);String sql=new String(Base64.getDecoder().decode(parts[1]),StandardCharsets.UTF_8);
|
||||
try(var s=c.prepareStatement(sql)){s.getParameterMetaData();ok++;}
|
||||
catch(SQLException e){failed++;System.out.println("FAILED "+parts[0]+" CODE="+e.getErrorCode()+" STATE="+e.getSQLState());}
|
||||
}
|
||||
System.out.println("ENGINE="+args[0]+" PREPARED="+ok+" FAILED="+failed+" DML_EXECUTED=0");
|
||||
if(failed!=0)System.exit(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Fresh MySQL 8.4 schema from the same reviewed migration catalog as Dameng; never connects."""
|
||||
import hashlib
|
||||
import importlib.util
|
||||
import json
|
||||
from pathlib import Path
|
||||
import re
|
||||
from dameng_sql import mask_literals, restore_literals
|
||||
|
||||
spec = importlib.util.spec_from_file_location('baseline', Path(__file__).with_name('build-dameng-baseline.py'))
|
||||
baseline = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(baseline)
|
||||
|
||||
def render():
|
||||
tables, digests = baseline.collect()
|
||||
result = ['-- MySQL 8.4 fresh install only; select an EMPTY dedicated database first.',
|
||||
'-- Catalog SHA256: '+hashlib.sha256('\n'.join(digests).encode()).hexdigest(),
|
||||
'SET NAMES utf8mb4;', "SET SESSION sql_mode='STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION,NO_BACKSLASH_ESCAPES';"]
|
||||
for table, nodes in tables.items():
|
||||
values=[]
|
||||
for key, raw in nodes.items():
|
||||
text, literals=mask_literals(raw)
|
||||
text=re.sub(r'\b(rows|model|rank|groups|condition|system)\b',r'`\1`',text,flags=re.I)
|
||||
if key.startswith('column:') and not text.startswith('`') and not re.match(r'(UNIQUE|CHECK|FOREIGN)\b',text,re.I):
|
||||
text=re.sub(r'^(\w+)',r'`\1`',text)
|
||||
values.append(restore_literals(text,literals))
|
||||
result.append('CREATE TABLE `'+table+'` (\n'+',\n'.join(values)+'\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;')
|
||||
return '\n\n'.join(result)+'\n', len(tables)
|
||||
|
||||
def main():
|
||||
text, count=render()
|
||||
target=baseline.ROOT/'db/mysql'
|
||||
target.mkdir(exist_ok=True)
|
||||
(target/'schema.sql').write_text(text)
|
||||
seed=json.loads((baseline.ROOT/'db/dameng/seed.json').read_text())
|
||||
def literal(value):
|
||||
if value is None:return 'NULL'
|
||||
if isinstance(value,(int,float)):return str(value)
|
||||
if value=='2000-01-01 00:00:00':return 'CURRENT_TIMESTAMP'
|
||||
return "'"+str(value).replace("'","''")+"'"
|
||||
lines=["SET SESSION sql_mode='STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION,NO_BACKSLASH_ESCAPES';",'START TRANSACTION;']
|
||||
for table, values in seed.items():
|
||||
for row in values['rows']:
|
||||
lines.append('INSERT INTO `'+table+'`('+','.join('`'+c+'`' for c in values['columns'])+') VALUES('+','.join(literal(v) for v in row)+');')
|
||||
(target/'seed.sql').write_text('\n'.join(lines+['COMMIT;'])+'\n')
|
||||
print('MYSQL_TABLES='+str(count)+' SEED_ROWS='+str(sum(len(v['rows']) for v in seed.values())))
|
||||
|
||||
if __name__=='__main__':main()
|
||||
@@ -0,0 +1,44 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Explicitly apply or verify only reporting V2 additions 279-281; use with-dameng-env.py."""
|
||||
import argparse
|
||||
import base64
|
||||
import hashlib
|
||||
from pathlib import Path
|
||||
import re
|
||||
import subprocess
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
SOURCES = {
|
||||
'V20261130.279__create_reporting_template_structure.sql': 'f2ed95dd1e5442a8a7cfc4f9af913ce84dc4e5b5ed3c0479ff1fa9ed9bbb70ae',
|
||||
'V20261130.280__create_reporting_plans.sql': 'e893839487847168c55a6c38fe84ba9c9dbbb19e0133a07e53711f2a8e56ae67',
|
||||
'V20261130.281__create_reporting_execution.sql': '0f4552ba031b2696c13627f37aef5857ff4d92711fcf0eb4e3f8c77e32080720',
|
||||
}
|
||||
TABLES = {'dg_reporting_template_structure', 'dg_reporting_plan', 'dg_reporting_plan_resource', 'dg_reporting_task', 'dg_reporting_batch', 'dg_reporting_artifact'}
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument('mode', choices=['plan', 'apply', 'verify'])
|
||||
args = parser.parse_args()
|
||||
for name, expected in SOURCES.items():
|
||||
if hashlib.sha256((ROOT/'db/migration/integration'/name).read_bytes()).hexdigest() != expected:
|
||||
raise ValueError('Reviewed migration source changed: '+name)
|
||||
rows = []
|
||||
for part in (ROOT/'db/dameng/schema.sql').read_text().split('-- @statement ')[1:]:
|
||||
label, sql = part.split('\n', 1)
|
||||
if label not in TABLES:
|
||||
continue
|
||||
sql = sql.strip().removesuffix(';')
|
||||
name = re.match(r'CREATE\s+(?:UNIQUE\s+)?(?:TABLE|INDEX)\s+(\w+)', sql, re.I).group(1)
|
||||
rows.append(label+':'+name+'\t'+hashlib.sha256(sql.encode()).hexdigest()+'\t'+base64.b64encode(sql.encode()).decode())
|
||||
if len(rows) != 10:
|
||||
raise ValueError('Expected ten scoped DDL statements')
|
||||
if args.mode == 'plan':
|
||||
print('SCOPED_TABLES=6 SCOPED_DDL=10 DATABASE_MUTATION=NONE')
|
||||
return
|
||||
java = ['java', '--class-path', str(ROOT/'script/datagov/m2/seatunnel/local/artifacts/DmJdbcDriver18-8.1.3.62.jar'), str(ROOT/'script/database/DamengSchema.java')]
|
||||
subprocess.run(java+(['--verify'] if args.mode == 'verify' else []), input='\n'.join(rows)+'\n', text=True, check=True)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Launch an authorized project command from a private DM/MySQL configuration; never print secrets."""
|
||||
import argparse,json,os,re,stat
|
||||
from pathlib import Path
|
||||
ROOT=Path(__file__).resolve().parents[2]
|
||||
p=argparse.ArgumentParser(description=__doc__)
|
||||
p.add_argument('--config',required=True,type=Path)
|
||||
p.add_argument('command',nargs=argparse.REMAINDER)
|
||||
a=p.parse_args();path=a.config.resolve()
|
||||
if not path.is_relative_to(ROOT/'runtime/dev-private') or not path.is_file() or stat.S_IMODE(path.stat().st_mode)&0o077:
|
||||
p.error('configuration must be a private 0600 file under runtime/dev-private')
|
||||
c=json.loads(path.read_text());engine=c.get('engine','dameng').lower()
|
||||
if engine not in ('dameng','mysql'):p.error('engine must be dameng or mysql')
|
||||
if not re.fullmatch(r'[A-Za-z0-9.-]+',str(c.get('host',''))) or not 1<=int(c.get('port',0))<=65535:p.error('invalid endpoint')
|
||||
if not c.get('username') or not c.get('password'):p.error('missing credentials')
|
||||
schema=c.get('schema','') if engine=='dameng' else c.get('database','')
|
||||
if not re.fullmatch(r'AIXUN_DATAGOV_[A-Z0-9_]+',schema) if engine=='dameng' else not re.fullmatch(r'aixun_datagov_[a-z0-9_]+',schema):p.error('dedicated DataGov schema/database required')
|
||||
env=os.environ.copy()
|
||||
for key in ('HOST','PORT','USERNAME','PASSWORD','SCHEMA'):env.pop('DM_'+key,None)
|
||||
url='jdbc:dm://'+c['host']+':'+str(c['port']) if engine=='dameng' else 'jdbc:mysql://'+c['host']+':'+str(c['port'])+'/'+schema
|
||||
env.update(PLATFORM_DB_URL=url,PLATFORM_DB_USERNAME=c['username'],PLATFORM_DB_PASSWORD=c['password'],PLATFORM_DB_SCHEMA=schema if engine=='dameng' else '',PLATFORM_DB_DRIVER='dm.jdbc.driver.DmDriver' if engine=='dameng' else 'com.mysql.cj.jdbc.Driver',DATAGOV_PLATFORM_DB_CONFIG=str(path))
|
||||
command=a.command[1:] if a.command[:1]==['--'] else a.command
|
||||
if not command:p.error('missing command')
|
||||
os.chdir(ROOT);os.execvpe(command[0],command,env)
|
||||
@@ -6,11 +6,11 @@
|
||||
"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_HOST": "${DM_HOST:-}",
|
||||
"DM_PASSWORD": "${DM_PASSWORD:-}",
|
||||
"DM_PORT": "${DM_PORT:-5236}",
|
||||
"DM_USERNAME": "${DM_USERNAME:?required}",
|
||||
"DM_SCHEMA": "${DM_SCHEMA:?required}",
|
||||
"DM_USERNAME": "${DM_USERNAME:-}",
|
||||
"DM_SCHEMA": "${DM_SCHEMA:-}",
|
||||
"SECURITY_CAPTCHA_ENABLED": "false",
|
||||
"SERVER_PORT": "9210",
|
||||
"SPRING_APPLICATION_NAME": "aixun-datagov-auth",
|
||||
@@ -27,7 +27,12 @@
|
||||
"SPRING_DATA_REDIS_PASSWORD": "${AIXUN_DATAGOV_REDIS_PASSWORD:?required}",
|
||||
"SPRING_DATA_REDIS_PORT": "6379",
|
||||
"SPRING_PROFILES_ACTIVE": "prod",
|
||||
"TZ": "Asia/Shanghai"
|
||||
"TZ": "Asia/Shanghai",
|
||||
"PLATFORM_DB_URL": "${PLATFORM_DB_URL:-jdbc:dm://${DM_HOST:-localhost}:${DM_PORT:-5236}}",
|
||||
"PLATFORM_DB_USERNAME": "${PLATFORM_DB_USERNAME:-${DM_USERNAME:-}}",
|
||||
"PLATFORM_DB_PASSWORD": "${PLATFORM_DB_PASSWORD:-${DM_PASSWORD:-}}",
|
||||
"PLATFORM_DB_SCHEMA": "${PLATFORM_DB_SCHEMA:-${DM_SCHEMA:-}}",
|
||||
"PLATFORM_DB_DRIVER": "${PLATFORM_DB_DRIVER:-}"
|
||||
},
|
||||
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
|
||||
"labels": {
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
"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_HOST": "${DM_HOST:-}",
|
||||
"DM_PASSWORD": "${DM_PASSWORD:-}",
|
||||
"DM_PORT": "${DM_PORT:-5236}",
|
||||
"DM_USERNAME": "${DM_USERNAME:?required}",
|
||||
"DM_SCHEMA": "${DM_SCHEMA:?required}",
|
||||
"DM_USERNAME": "${DM_USERNAME:-}",
|
||||
"DM_SCHEMA": "${DM_SCHEMA:-}",
|
||||
"SERVER_PORT": "9320",
|
||||
"SPRING_APPLICATION_NAME": "aixun-dataops",
|
||||
"SPRING_CLOUD_BUS_ENABLED": "false",
|
||||
@@ -28,7 +28,12 @@
|
||||
"SPRING_DATA_REDIS_PASSWORD": "${AIXUN_DATAGOV_REDIS_PASSWORD:?required}",
|
||||
"SPRING_DATA_REDIS_PORT": "6379",
|
||||
"SPRING_PROFILES_ACTIVE": "prod",
|
||||
"TZ": "Asia/Shanghai"
|
||||
"TZ": "Asia/Shanghai",
|
||||
"PLATFORM_DB_URL": "${PLATFORM_DB_URL:-jdbc:dm://${DM_HOST:-localhost}:${DM_PORT:-5236}}",
|
||||
"PLATFORM_DB_USERNAME": "${PLATFORM_DB_USERNAME:-${DM_USERNAME:-}}",
|
||||
"PLATFORM_DB_PASSWORD": "${PLATFORM_DB_PASSWORD:-${DM_PASSWORD:-}}",
|
||||
"PLATFORM_DB_SCHEMA": "${PLATFORM_DB_SCHEMA:-${DM_SCHEMA:-}}",
|
||||
"PLATFORM_DB_DRIVER": "${PLATFORM_DB_DRIVER:-}"
|
||||
},
|
||||
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
|
||||
"labels": {
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
"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_HOST": "${DM_HOST:-}",
|
||||
"DM_PASSWORD": "${DM_PASSWORD:-}",
|
||||
"DM_PORT": "${DM_PORT:-5236}",
|
||||
"DM_USERNAME": "${DM_USERNAME:?required}",
|
||||
"DM_SCHEMA": "${DM_SCHEMA:?required}",
|
||||
"DM_USERNAME": "${DM_USERNAME:-}",
|
||||
"DM_SCHEMA": "${DM_SCHEMA:-}",
|
||||
"SERVER_PORT": "9340",
|
||||
"SPRING_APPLICATION_NAME": "aixun-dataproduct",
|
||||
"SPRING_CLOUD_BUS_ENABLED": "false",
|
||||
@@ -26,7 +26,12 @@
|
||||
"SPRING_DATA_REDIS_PASSWORD": "${AIXUN_DATAGOV_REDIS_PASSWORD:?required}",
|
||||
"SPRING_DATA_REDIS_PORT": "6379",
|
||||
"SPRING_PROFILES_ACTIVE": "prod",
|
||||
"TZ": "Asia/Shanghai"
|
||||
"TZ": "Asia/Shanghai",
|
||||
"PLATFORM_DB_URL": "${PLATFORM_DB_URL:-jdbc:dm://${DM_HOST:-localhost}:${DM_PORT:-5236}}",
|
||||
"PLATFORM_DB_USERNAME": "${PLATFORM_DB_USERNAME:-${DM_USERNAME:-}}",
|
||||
"PLATFORM_DB_PASSWORD": "${PLATFORM_DB_PASSWORD:-${DM_PASSWORD:-}}",
|
||||
"PLATFORM_DB_SCHEMA": "${PLATFORM_DB_SCHEMA:-${DM_SCHEMA:-}}",
|
||||
"PLATFORM_DB_DRIVER": "${PLATFORM_DB_DRIVER:-}"
|
||||
},
|
||||
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
|
||||
"labels": {
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
"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_HOST=${DM_HOST:-}",
|
||||
"DM_PASSWORD=${DM_PASSWORD:-}",
|
||||
"DM_PORT=${DM_PORT:-5236}",
|
||||
"DM_USERNAME=${DM_USERNAME:?required}",
|
||||
"DM_SCHEMA=${DM_SCHEMA:?required}",
|
||||
"DM_USERNAME=${DM_USERNAME:-}",
|
||||
"DM_SCHEMA=${DM_SCHEMA:-}",
|
||||
"SERVER_PORT=8080",
|
||||
"SPRING_APPLICATION_NAME=aixun-datagov-gateway",
|
||||
"SPRING_CLOUD_BUS_ENABLED=false",
|
||||
@@ -27,7 +27,12 @@
|
||||
"SPRING_DATA_REDIS_PORT=6379",
|
||||
"SPRING_PROFILES_ACTIVE=prod",
|
||||
"TZ=Asia/Shanghai",
|
||||
"SPRING_CLOUD_NACOS_DISCOVERY_IP=172.21.0.11"
|
||||
"SPRING_CLOUD_NACOS_DISCOVERY_IP=172.21.0.11",
|
||||
"PLATFORM_DB_URL=${PLATFORM_DB_URL:-jdbc:dm://${DM_HOST:-localhost}:${DM_PORT:-5236}}",
|
||||
"PLATFORM_DB_USERNAME=${PLATFORM_DB_USERNAME:-${DM_USERNAME:-}}",
|
||||
"PLATFORM_DB_PASSWORD=${PLATFORM_DB_PASSWORD:-${DM_PASSWORD:-}}",
|
||||
"PLATFORM_DB_SCHEMA=${PLATFORM_DB_SCHEMA:-${DM_SCHEMA:-}}",
|
||||
"PLATFORM_DB_DRIVER=${PLATFORM_DB_DRIVER:-}"
|
||||
],
|
||||
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
|
||||
"labels": [
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
"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_HOST": "${DM_HOST:-}",
|
||||
"DM_PASSWORD": "${DM_PASSWORD:-}",
|
||||
"DM_PORT": "${DM_PORT:-5236}",
|
||||
"DM_USERNAME": "${DM_USERNAME:?required}",
|
||||
"DM_SCHEMA": "${DM_SCHEMA:?required}",
|
||||
"DM_USERNAME": "${DM_USERNAME:-}",
|
||||
"DM_SCHEMA": "${DM_SCHEMA:-}",
|
||||
"SERVER_PORT": "9330",
|
||||
"SPRING_APPLICATION_NAME": "aixun-governance",
|
||||
"SPRING_CLOUD_BUS_ENABLED": "false",
|
||||
@@ -26,7 +26,12 @@
|
||||
"SPRING_DATA_REDIS_PASSWORD": "${AIXUN_DATAGOV_REDIS_PASSWORD:?required}",
|
||||
"SPRING_DATA_REDIS_PORT": "6379",
|
||||
"SPRING_PROFILES_ACTIVE": "prod",
|
||||
"TZ": "Asia/Shanghai"
|
||||
"TZ": "Asia/Shanghai",
|
||||
"PLATFORM_DB_URL": "${PLATFORM_DB_URL:-jdbc:dm://${DM_HOST:-localhost}:${DM_PORT:-5236}}",
|
||||
"PLATFORM_DB_USERNAME": "${PLATFORM_DB_USERNAME:-${DM_USERNAME:-}}",
|
||||
"PLATFORM_DB_PASSWORD": "${PLATFORM_DB_PASSWORD:-${DM_PASSWORD:-}}",
|
||||
"PLATFORM_DB_SCHEMA": "${PLATFORM_DB_SCHEMA:-${DM_SCHEMA:-}}",
|
||||
"PLATFORM_DB_DRIVER": "${PLATFORM_DB_DRIVER:-}"
|
||||
},
|
||||
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
|
||||
"labels": {
|
||||
|
||||
@@ -31,11 +31,11 @@
|
||||
"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_HOST=${DM_HOST:-}",
|
||||
"DM_PASSWORD=${DM_PASSWORD:-}",
|
||||
"DM_PORT=${DM_PORT:-5236}",
|
||||
"DM_USERNAME=${DM_USERNAME:?required}",
|
||||
"DM_SCHEMA=${DM_SCHEMA:?required}",
|
||||
"DM_USERNAME=${DM_USERNAME:-}",
|
||||
"DM_SCHEMA=${DM_SCHEMA:-}",
|
||||
"SERVER_PORT=9310",
|
||||
"SPRING_APPLICATION_NAME=aixun-integration",
|
||||
"SPRING_CLOUD_BUS_ENABLED=false",
|
||||
@@ -52,7 +52,12 @@
|
||||
"SPRING_DATA_REDIS_PORT=6379",
|
||||
"SPRING_PROFILES_ACTIVE=prod",
|
||||
"TZ=Asia/Shanghai",
|
||||
"SPRING_CLOUD_NACOS_DISCOVERY_IP=172.21.0.8"
|
||||
"SPRING_CLOUD_NACOS_DISCOVERY_IP=172.21.0.8",
|
||||
"PLATFORM_DB_URL=${PLATFORM_DB_URL:-jdbc:dm://${DM_HOST:-localhost}:${DM_PORT:-5236}}",
|
||||
"PLATFORM_DB_USERNAME=${PLATFORM_DB_USERNAME:-${DM_USERNAME:-}}",
|
||||
"PLATFORM_DB_PASSWORD=${PLATFORM_DB_PASSWORD:-${DM_PASSWORD:-}}",
|
||||
"PLATFORM_DB_SCHEMA=${PLATFORM_DB_SCHEMA:-${DM_SCHEMA:-}}",
|
||||
"PLATFORM_DB_DRIVER=${PLATFORM_DB_DRIVER:-}"
|
||||
],
|
||||
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
|
||||
"labels": {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "86bd05e4355cd06517d1a7fbc0ce248be6afa0f7a2345c6eac8ac08e18a4148b",
|
||||
"imageId": "sha256:6548c7064e6243df6fd9d465fe4efa33005f512314da956fe50038ca8cdb2346",
|
||||
"authorizedBy": "\u672c\u4f1a\u8bdd\u7528\u6237\u8981\u6c42\u90e8\u7f72\u672c\u5730Docker\uff0c\u5e76\u4e8e2026-11-30\u7ee7\u7eed\u5f00\u53d1\u76d1\u7ba1\u62a5\u9001V2",
|
||||
"startedAt": 1796007465.919849
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "frontend",
|
||||
"containerId": "d94b134820754e23ab50792d73ff6a725c3f178401b103e278032dd836651e47",
|
||||
"imageId": "sha256:6548c7064e6243df6fd9d465fe4efa33005f512314da956fe50038ca8cdb2346",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:2ef595379c3db23916b4f5a49523c60cc34fb8143ab244f429833386b8c76f94"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "frontend",
|
||||
"release": "reporting-attachments-20261130",
|
||||
"imageTag": "aixun-datagov/frontend:reporting-attachments-20261130",
|
||||
"imageId": "sha256:6548c7064e6243df6fd9d465fe4efa33005f512314da956fe50038ca8cdb2346",
|
||||
"artifactSha256": "34a7e8eea4f6e1f9cbab04670c21ed95f55a140de4a1fad80455d983ab77d553",
|
||||
"sourceContainerId": "86bd05e4355cd06517d1a7fbc0ce248be6afa0f7a2345c6eac8ac08e18a4148b",
|
||||
"sourceImageId": "sha256:2ef595379c3db23916b4f5a49523c60cc34fb8143ab244f429833386b8c76f94",
|
||||
"sourceImageTag": "sha256:2ef595379c3db23916b4f5a49523c60cc34fb8143ab244f429833386b8c76f94",
|
||||
"sourceStateSha256": "6ed198bf648aad535ba298e76dfe208bf86cd381ba20bd50b2f0283ed520a2a2",
|
||||
"modelSha256": "2249ea5c5361e51ede156e25e713d4e12ffaac53c7367e7e78af9bed83908fa3",
|
||||
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
|
||||
"artifactPath": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "64cfb5d2c57b4ebd50debb75826dc71c29f9117d7a7ab792a312c58fdb315f40",
|
||||
"imageId": "sha256:ea0da8d56aaa0ea6ee5b74178651c37aa29232f992da3bb962cdf43709cc9018",
|
||||
"authorizedBy": "\u672c\u4f1a\u8bdd\u7528\u6237\u8981\u6c42\u90e8\u7f72\u672c\u5730Docker\uff0c\u5e76\u4e8e2026-11-30\u7ee7\u7eed\u5f00\u53d1\u76d1\u7ba1\u62a5\u9001V2",
|
||||
"startedAt": 1796007428.742093
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "integration",
|
||||
"containerId": "e7fd30ca27c17f7a85937e21a0194e475e3d907a4bc0c27016edee4d0081e44f",
|
||||
"imageId": "sha256:ea0da8d56aaa0ea6ee5b74178651c37aa29232f992da3bb962cdf43709cc9018",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:d90ecd1741b156b4876594a079c2a6a0a3ec4accfbbc5c11e0cbbfe7fab929c6"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "integration",
|
||||
"release": "reporting-attachments-20261130",
|
||||
"imageTag": "aixun-datagov/integration:reporting-attachments-20261130",
|
||||
"imageId": "sha256:ea0da8d56aaa0ea6ee5b74178651c37aa29232f992da3bb962cdf43709cc9018",
|
||||
"artifactSha256": "9e04b191a6c172e043955ac585e3bd1ed70320d894bd3c5afc029c388e84e6ce",
|
||||
"sourceContainerId": "64cfb5d2c57b4ebd50debb75826dc71c29f9117d7a7ab792a312c58fdb315f40",
|
||||
"sourceImageId": "sha256:d90ecd1741b156b4876594a079c2a6a0a3ec4accfbbc5c11e0cbbfe7fab929c6",
|
||||
"sourceImageTag": "sha256:d90ecd1741b156b4876594a079c2a6a0a3ec4accfbbc5c11e0cbbfe7fab929c6",
|
||||
"sourceStateSha256": "bfb0c1bc1e71b27b3f6ea7ca227b5832ba82ed7062576e695ad8021b7f3c7c97",
|
||||
"modelSha256": "884b96edd636926afc775576c9ca13eb8f9a77f275fa81acba152d68745ca167",
|
||||
"identitySha256": "b8dba93c3fb1418c792f60579268fdcc808452f3907a9b393164a83d819eb2d7"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "5b11215736699951ce0689c336bd20a8e0e90b39e4b5f0ec843385ca384daf75",
|
||||
"imageId": "sha256:9e30b4a7b076f3341c46a37f73ea958ab180398804cefa04c1edef8a5ee613ef",
|
||||
"authorizedBy": "\u672c\u4f1a\u8bdd\u7528\u6237\u8981\u6c42\u90e8\u7f72\u672c\u5730Docker\uff0c\u5e76\u4e8e2026-11-30\u7ee7\u7eed\u5f00\u53d1\u76d1\u7ba1\u62a5\u9001V2",
|
||||
"startedAt": 1796007316.733109
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "resource",
|
||||
"containerId": "8f20517339ad030a965685f6e0cf7dc0d9c410fe8a46cbdfdb0953ec1fbf167d",
|
||||
"imageId": "sha256:9e30b4a7b076f3341c46a37f73ea958ab180398804cefa04c1edef8a5ee613ef",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:2aeb694eec2d37d03f02cd209a797abc7d5c3139ae60afbddce5a38ec1cb768a"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "resource",
|
||||
"release": "reporting-attachments-20261130",
|
||||
"imageTag": "aixun-datagov/resource:reporting-attachments-20261130",
|
||||
"imageId": "sha256:9e30b4a7b076f3341c46a37f73ea958ab180398804cefa04c1edef8a5ee613ef",
|
||||
"artifactSha256": "9fa888c0c5591e8cfc08ddb9e2bd3b935a7771927cb9d4d5739b0f26ba7f7dfc",
|
||||
"sourceContainerId": "5b11215736699951ce0689c336bd20a8e0e90b39e4b5f0ec843385ca384daf75",
|
||||
"sourceImageId": "sha256:2aeb694eec2d37d03f02cd209a797abc7d5c3139ae60afbddce5a38ec1cb768a",
|
||||
"sourceImageTag": "sha256:2aeb694eec2d37d03f02cd209a797abc7d5c3139ae60afbddce5a38ec1cb768a",
|
||||
"sourceStateSha256": "c0a7b9a39d92298a07994fb98214ba000f0cabd2bfc036e2065eb9f5af9c9acc",
|
||||
"modelSha256": "2b18aca8726529c31d6d9f73bdb701f7df94d955a05ccbce59baa801f2361b67",
|
||||
"identitySha256": "9f9e19206c31ff5ded5fa26b1ea736c922ca9b03f11d087bdbbf9b22ba8e1952"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "c0c84a6dbaf0fddbf56e389fefabc9085227a8cf9fd0a082b2d4d56ceb5c5070",
|
||||
"imageId": "sha256:8ba1d5ddf150338dee3db1c58da9beedf9288a526939c3b8abc19e57dbac47f7",
|
||||
"authorizedBy": "\u672c\u4f1a\u8bdd\u7528\u6237\u8981\u6c42\u7ee7\u7eed\u5f00\u53d1\u5e76\u90e8\u7f72\u672c\u5730Docker",
|
||||
"startedAt": 1796005026.138918
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "dataproduct",
|
||||
"containerId": "e89b0b789620669416e7d0f25d42b49bea34c5a0520a82b884d476ab8361f1f4",
|
||||
"imageId": "sha256:8ba1d5ddf150338dee3db1c58da9beedf9288a526939c3b8abc19e57dbac47f7",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:363ccfd5cdca7d9a7d9cc64a68df8249335fca69f112e7ada525a84fcbf86ea3"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "dataproduct",
|
||||
"release": "reporting-execution-20261130",
|
||||
"imageTag": "aixun-datagov/dataproduct:reporting-execution-20261130",
|
||||
"imageId": "sha256:8ba1d5ddf150338dee3db1c58da9beedf9288a526939c3b8abc19e57dbac47f7",
|
||||
"artifactSha256": "990b853aa287cdc08b39360dd4326a0010a66be641d8b9c8d86b875556994b96",
|
||||
"sourceContainerId": "c0c84a6dbaf0fddbf56e389fefabc9085227a8cf9fd0a082b2d4d56ceb5c5070",
|
||||
"sourceImageId": "sha256:363ccfd5cdca7d9a7d9cc64a68df8249335fca69f112e7ada525a84fcbf86ea3",
|
||||
"sourceImageTag": "sha256:363ccfd5cdca7d9a7d9cc64a68df8249335fca69f112e7ada525a84fcbf86ea3",
|
||||
"sourceStateSha256": "962ee308d29154bd3b38d4a39b6d6e858f9b846bf9bac8e1e24db44042254150",
|
||||
"modelSha256": "ebe58d0c06d09a3f0f216168e94b92f37194dfa5ef623c23a8696de80b378276",
|
||||
"identitySha256": "395ba2e4cbe3ac16b8051cd43b1627a38f196270b533a9dab029bf797cf48c83"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "56d791b3d9de059abaa58e91d727b69aec05298608024c9bc38ce27eafb0088a",
|
||||
"imageId": "sha256:fb7668c629ae0d15665a85000d944fd095aa91654e8d7014c1c91ec68830f399",
|
||||
"authorizedBy": "\u672c\u4f1a\u8bdd\u7528\u6237\u8981\u6c42\u7ee7\u7eed\u5f00\u53d1\u5e76\u90e8\u7f72\u672c\u5730Docker",
|
||||
"startedAt": 1796005286.752661
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "frontend",
|
||||
"containerId": "bb485f986ef57476a2e2a6d938c2e8f8842350eef5df3bd240be6c477c922346",
|
||||
"imageId": "sha256:fb7668c629ae0d15665a85000d944fd095aa91654e8d7014c1c91ec68830f399",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:3b2cb6126098753c2da7ecd89e92a035308abe4487628ad4ddd1920d9c0ad5d7"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "frontend",
|
||||
"release": "reporting-execution-20261130",
|
||||
"imageTag": "aixun-datagov/frontend:reporting-execution-20261130",
|
||||
"imageId": "sha256:fb7668c629ae0d15665a85000d944fd095aa91654e8d7014c1c91ec68830f399",
|
||||
"artifactSha256": "b1af9cb56de14a3c44b29be82db3b724451e486e2904d4032de31c38731b4435",
|
||||
"sourceContainerId": "56d791b3d9de059abaa58e91d727b69aec05298608024c9bc38ce27eafb0088a",
|
||||
"sourceImageId": "sha256:3b2cb6126098753c2da7ecd89e92a035308abe4487628ad4ddd1920d9c0ad5d7",
|
||||
"sourceImageTag": "sha256:3b2cb6126098753c2da7ecd89e92a035308abe4487628ad4ddd1920d9c0ad5d7",
|
||||
"sourceStateSha256": "af25034d78ca25f531a3be2a8de02ca92df30dc50cabd8c1bba5d90047817384",
|
||||
"modelSha256": "7bb694debf7e5c575fcbb1910289cf45dc00ba3b98c399eefc2229282579943c",
|
||||
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
|
||||
"artifactPath": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "1b5f848dbf5a07cc63bec1f5832c1963ba35487ad75317da223847627e7f791b",
|
||||
"imageId": "sha256:5e9ab4f5b6b4d80b0ff8d242026b0304982e01838eb1946bb93a5477c9ab77dc",
|
||||
"authorizedBy": "\u672c\u4f1a\u8bdd\u7528\u6237\u8981\u6c42\u7ee7\u7eed\u5f00\u53d1\u5e76\u90e8\u7f72\u672c\u5730Docker",
|
||||
"startedAt": 1796004921.8532531
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "governance",
|
||||
"containerId": "7783d3f717dd12c53f60de6af1675893b42e830c7728f071510fcf6e2c3e5ce5",
|
||||
"imageId": "sha256:5e9ab4f5b6b4d80b0ff8d242026b0304982e01838eb1946bb93a5477c9ab77dc",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:436632ce2e18553973bd2e99988ce735f7ddcd0079536e248f87cb43a73a3a1e"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "governance",
|
||||
"release": "reporting-execution-20261130",
|
||||
"imageTag": "aixun-datagov/governance:reporting-execution-20261130",
|
||||
"imageId": "sha256:5e9ab4f5b6b4d80b0ff8d242026b0304982e01838eb1946bb93a5477c9ab77dc",
|
||||
"artifactSha256": "5de809c043177708b3c70891e40009daef308fb0587164df70c124fac3aa4a90",
|
||||
"sourceContainerId": "1b5f848dbf5a07cc63bec1f5832c1963ba35487ad75317da223847627e7f791b",
|
||||
"sourceImageId": "sha256:436632ce2e18553973bd2e99988ce735f7ddcd0079536e248f87cb43a73a3a1e",
|
||||
"sourceImageTag": "sha256:436632ce2e18553973bd2e99988ce735f7ddcd0079536e248f87cb43a73a3a1e",
|
||||
"sourceStateSha256": "47efd4253670a37adf2e497bac5791ea33e29c28dfab11dfefff990db854e458",
|
||||
"modelSha256": "346d56f8e69abded4b5a7ebf93daf1cef61eb574f8c624d8acbf39ab2b800ed2",
|
||||
"identitySha256": "9020b158459710564e9d52c9998d388d6d2af13dca7f1eb56ab6f7f55740ce6f"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "3a5fa9d779072e20dbb174b78c7f1f35f3de050cc7e90e8596874f5d71986d16",
|
||||
"imageId": "sha256:72d9deedd971f1d82828d7ddb37109fdb402fd4ef861a8e5295b2d35023f1c86",
|
||||
"authorizedBy": "\u672c\u4f1a\u8bdd\u7528\u6237\u8981\u6c42\u7ee7\u7eed\u5f00\u53d1\u5e76\u90e8\u7f72\u672c\u5730Docker",
|
||||
"startedAt": 1796005067.991612
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "integration",
|
||||
"containerId": "8a6bcb0d70eb70c2b483fc35cd3d4977e45929baee778bd78c2e16f1a860c5ee",
|
||||
"imageId": "sha256:72d9deedd971f1d82828d7ddb37109fdb402fd4ef861a8e5295b2d35023f1c86",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:61cbd638c419215ef270159488633f01a00889730cd31b96265614ae3af12318"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "integration",
|
||||
"release": "reporting-execution-20261130",
|
||||
"imageTag": "aixun-datagov/integration:reporting-execution-20261130",
|
||||
"imageId": "sha256:72d9deedd971f1d82828d7ddb37109fdb402fd4ef861a8e5295b2d35023f1c86",
|
||||
"artifactSha256": "98259730f2f683f185c437db4eecbc80e57ec7a9bc2e11827d8d6afab6e0c2ea",
|
||||
"sourceContainerId": "3a5fa9d779072e20dbb174b78c7f1f35f3de050cc7e90e8596874f5d71986d16",
|
||||
"sourceImageId": "sha256:61cbd638c419215ef270159488633f01a00889730cd31b96265614ae3af12318",
|
||||
"sourceImageTag": "sha256:61cbd638c419215ef270159488633f01a00889730cd31b96265614ae3af12318",
|
||||
"sourceStateSha256": "85d185af1e0045f971beb14c5ea5ea5ced0435098a7296599e32bb6a5f7343ad",
|
||||
"modelSha256": "08143425cf6d92f163b07afb540f8b92a69668aeff59e22e36bf3d1cb077c1cf",
|
||||
"identitySha256": "b8dba93c3fb1418c792f60579268fdcc808452f3907a9b393164a83d819eb2d7"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "8a6bcb0d70eb70c2b483fc35cd3d4977e45929baee778bd78c2e16f1a860c5ee",
|
||||
"imageId": "sha256:f7bbe06d437a98f68fdc3377996d759d4328893a7c25d5af2371adf9569788cf",
|
||||
"authorizedBy": "\u672c\u4f1a\u8bdd\u7528\u6237\u8981\u6c42\u7ee7\u7eed\u5f00\u53d1\u5e76\u90e8\u7f72\u672c\u5730Docker",
|
||||
"startedAt": 1796005414.698417
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "integration",
|
||||
"containerId": "0a47946b56a166935340baec1ddd9338db28954ffdb4015f732ec33f7cf01a4e",
|
||||
"imageId": "sha256:f7bbe06d437a98f68fdc3377996d759d4328893a7c25d5af2371adf9569788cf",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:72d9deedd971f1d82828d7ddb37109fdb402fd4ef861a8e5295b2d35023f1c86"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "integration",
|
||||
"release": "reporting-execution-20261130-r2",
|
||||
"imageTag": "aixun-datagov/integration:reporting-execution-20261130-r2",
|
||||
"imageId": "sha256:f7bbe06d437a98f68fdc3377996d759d4328893a7c25d5af2371adf9569788cf",
|
||||
"artifactSha256": "6ccddf2ec784055fe919897e8ec099a29ab8c7a607e6f4d6dd54670743f3df07",
|
||||
"sourceContainerId": "8a6bcb0d70eb70c2b483fc35cd3d4977e45929baee778bd78c2e16f1a860c5ee",
|
||||
"sourceImageId": "sha256:72d9deedd971f1d82828d7ddb37109fdb402fd4ef861a8e5295b2d35023f1c86",
|
||||
"sourceImageTag": "sha256:72d9deedd971f1d82828d7ddb37109fdb402fd4ef861a8e5295b2d35023f1c86",
|
||||
"sourceStateSha256": "8c25295828185e13f5528946ec90b54d031a89794b141d3d19844a7408c602be",
|
||||
"modelSha256": "a18ff205258d675f93c27a71c4c187028aed2e501f53cb8f4ab8ad920bdf6605",
|
||||
"identitySha256": "b8dba93c3fb1418c792f60579268fdcc808452f3907a9b393164a83d819eb2d7"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "bb485f986ef57476a2e2a6d938c2e8f8842350eef5df3bd240be6c477c922346",
|
||||
"imageId": "sha256:2ef595379c3db23916b4f5a49523c60cc34fb8143ab244f429833386b8c76f94",
|
||||
"authorizedBy": "\u672c\u4f1a\u8bdd\u7528\u6237\u8981\u6c42\u7ee7\u7eed\u5f00\u53d1\u5e76\u90e8\u7f72\u672c\u5730Docker",
|
||||
"startedAt": 1796006071.858934
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "frontend",
|
||||
"containerId": "86bd05e4355cd06517d1a7fbc0ce248be6afa0f7a2345c6eac8ac08e18a4148b",
|
||||
"imageId": "sha256:2ef595379c3db23916b4f5a49523c60cc34fb8143ab244f429833386b8c76f94",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:fb7668c629ae0d15665a85000d944fd095aa91654e8d7014c1c91ec68830f399"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "frontend",
|
||||
"release": "reporting-execution-20261130-r3",
|
||||
"imageTag": "aixun-datagov/frontend:reporting-execution-20261130-r3",
|
||||
"imageId": "sha256:2ef595379c3db23916b4f5a49523c60cc34fb8143ab244f429833386b8c76f94",
|
||||
"artifactSha256": "dea4cfa57f3d5a6790667813f08ef8a5e81a2c62355fab9c7e59bc0ac2ec00cf",
|
||||
"sourceContainerId": "bb485f986ef57476a2e2a6d938c2e8f8842350eef5df3bd240be6c477c922346",
|
||||
"sourceImageId": "sha256:fb7668c629ae0d15665a85000d944fd095aa91654e8d7014c1c91ec68830f399",
|
||||
"sourceImageTag": "sha256:fb7668c629ae0d15665a85000d944fd095aa91654e8d7014c1c91ec68830f399",
|
||||
"sourceStateSha256": "1d8112e51b8ba1583aea9d2e2bd61ab50ad0e7fd7e257181b7072ec0101d2768",
|
||||
"modelSha256": "65dc4733322d873de287963e7de0e89dbc642b068e63e616f00153c8cae25a1e",
|
||||
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
|
||||
"artifactPath": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "0a47946b56a166935340baec1ddd9338db28954ffdb4015f732ec33f7cf01a4e",
|
||||
"imageId": "sha256:d90ecd1741b156b4876594a079c2a6a0a3ec4accfbbc5c11e0cbbfe7fab929c6",
|
||||
"authorizedBy": "\u672c\u4f1a\u8bdd\u7528\u6237\u8981\u6c42\u7ee7\u7eed\u5f00\u53d1\u5e76\u90e8\u7f72\u672c\u5730Docker",
|
||||
"startedAt": 1796006034.9437141
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "integration",
|
||||
"containerId": "64cfb5d2c57b4ebd50debb75826dc71c29f9117d7a7ab792a312c58fdb315f40",
|
||||
"imageId": "sha256:d90ecd1741b156b4876594a079c2a6a0a3ec4accfbbc5c11e0cbbfe7fab929c6",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:f7bbe06d437a98f68fdc3377996d759d4328893a7c25d5af2371adf9569788cf"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "integration",
|
||||
"release": "reporting-execution-20261130-r3",
|
||||
"imageTag": "aixun-datagov/integration:reporting-execution-20261130-r3",
|
||||
"imageId": "sha256:d90ecd1741b156b4876594a079c2a6a0a3ec4accfbbc5c11e0cbbfe7fab929c6",
|
||||
"artifactSha256": "a0009edfa6aa29df24fcfd6a0efb224ec9c89d52075b230b4a36925c931d78dc",
|
||||
"sourceContainerId": "0a47946b56a166935340baec1ddd9338db28954ffdb4015f732ec33f7cf01a4e",
|
||||
"sourceImageId": "sha256:f7bbe06d437a98f68fdc3377996d759d4328893a7c25d5af2371adf9569788cf",
|
||||
"sourceImageTag": "sha256:f7bbe06d437a98f68fdc3377996d759d4328893a7c25d5af2371adf9569788cf",
|
||||
"sourceStateSha256": "985c224239b22897eec5706133de47668c034dd2d8d539dbd89f6a41c2b11262",
|
||||
"modelSha256": "e363bd6c2e162e3cdea37b04f43c6375c410804c77656da4ac86ed9a91dcfe41",
|
||||
"identitySha256": "b8dba93c3fb1418c792f60579268fdcc808452f3907a9b393164a83d819eb2d7"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "1159c3aaebb0a8738f570572aeaf77e99e8e9270460f52a90836ee487de90d67",
|
||||
"imageId": "sha256:2aeb694eec2d37d03f02cd209a797abc7d5c3139ae60afbddce5a38ec1cb768a",
|
||||
"authorizedBy": "\u672c\u4f1a\u8bdd\u7528\u6237\u8981\u6c42\u7ee7\u7eed\u5f00\u53d1\u5e76\u90e8\u7f72\u672c\u5730Docker",
|
||||
"startedAt": 1796004973.62538
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "resource",
|
||||
"containerId": "5b11215736699951ce0689c336bd20a8e0e90b39e4b5f0ec843385ca384daf75",
|
||||
"imageId": "sha256:2aeb694eec2d37d03f02cd209a797abc7d5c3139ae60afbddce5a38ec1cb768a",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:9266522117b7d509433c09331995324982f3f49a4372421873d8ff34dfd7f0be"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "resource",
|
||||
"release": "reporting-execution-20261130",
|
||||
"imageTag": "aixun-datagov/resource:reporting-execution-20261130",
|
||||
"imageId": "sha256:2aeb694eec2d37d03f02cd209a797abc7d5c3139ae60afbddce5a38ec1cb768a",
|
||||
"artifactSha256": "a9d16ad4665806e15b3083821c9b7f4e7df1b2aee1f53874874d0f9e48742e60",
|
||||
"sourceContainerId": "1159c3aaebb0a8738f570572aeaf77e99e8e9270460f52a90836ee487de90d67",
|
||||
"sourceImageId": "sha256:9266522117b7d509433c09331995324982f3f49a4372421873d8ff34dfd7f0be",
|
||||
"sourceImageTag": "sha256:9266522117b7d509433c09331995324982f3f49a4372421873d8ff34dfd7f0be",
|
||||
"sourceStateSha256": "2acd73d9bdc0b22bc52651120172a1470d519dd65bc879d3dd4f49b4b746ac16",
|
||||
"modelSha256": "50e1eff7d51e7abdc1fb40ece947565d3699d3361a928c295674b0518005eb27",
|
||||
"identitySha256": "9f9e19206c31ff5ded5fa26b1ea736c922ca9b03f11d087bdbbf9b22ba8e1952"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "3be2182c5997f4013df57ca891562540d41742f2a71b88238f4266de2957f795",
|
||||
"imageId": "sha256:363ccfd5cdca7d9a7d9cc64a68df8249335fca69f112e7ada525a84fcbf86ea3",
|
||||
"authorizedBy": "\u7528\u6237\u8981\u6c42\u6309\u76d1\u7ba1\u62a5\u9001V2\u6587\u6863\u4fee\u6539\uff0c\u5ef6\u7eed\u672c\u4f1a\u8bdd\u672c\u5730Docker\u66f4\u65b0\u6388\u6743\uff1b\u90e8\u7f72\u6388\u6743\u6570\u636e\u96c6\u5143\u6570\u636e\u5951\u7ea6",
|
||||
"startedAt": 1796001673.5483022
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "dataproduct",
|
||||
"containerId": "c0c84a6dbaf0fddbf56e389fefabc9085227a8cf9fd0a082b2d4d56ceb5c5070",
|
||||
"imageId": "sha256:363ccfd5cdca7d9a7d9cc64a68df8249335fca69f112e7ada525a84fcbf86ea3",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:02e9c6c6d6eea00cb46a3d9f01bd9a142d246397617380b67ef9b75b99c66898"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "dataproduct",
|
||||
"release": "reporting-v2-20261130",
|
||||
"imageTag": "aixun-datagov/dataproduct:reporting-v2-20261130",
|
||||
"imageId": "sha256:363ccfd5cdca7d9a7d9cc64a68df8249335fca69f112e7ada525a84fcbf86ea3",
|
||||
"artifactSha256": "1bd8d2b839183e8e129b9e8e7074acc29a69bf9140b8b4e37d81e411b7fa2bc9",
|
||||
"sourceContainerId": "3be2182c5997f4013df57ca891562540d41742f2a71b88238f4266de2957f795",
|
||||
"sourceImageId": "sha256:02e9c6c6d6eea00cb46a3d9f01bd9a142d246397617380b67ef9b75b99c66898",
|
||||
"sourceImageTag": "sha256:02e9c6c6d6eea00cb46a3d9f01bd9a142d246397617380b67ef9b75b99c66898",
|
||||
"sourceStateSha256": "393bbfbb8cb1bc1ee9c3cf9a31bc08c6ae94c05c0790237159956122f9a5f26d",
|
||||
"modelSha256": "be0f33752cae06c1adeae0e6c2b528b491676aa511dd75cbee4d144485da873a",
|
||||
"identitySha256": "395ba2e4cbe3ac16b8051cd43b1627a38f196270b533a9dab029bf797cf48c83"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "86cd7ca7abc2b8c519c16b3b5e443a12662f9f375d09ad0bb7a3b2b3f0745817",
|
||||
"imageId": "sha256:3b2cb6126098753c2da7ecd89e92a035308abe4487628ad4ddd1920d9c0ad5d7",
|
||||
"authorizedBy": "\u7528\u6237\u8981\u6c42\u6309\u76d1\u7ba1\u62a5\u9001V2\u6587\u6863\u4fee\u6539\uff0c\u5ef6\u7eed\u672c\u4f1a\u8bdd\u672c\u5730Docker\u66f4\u65b0\u6388\u6743\uff1b\u90e8\u7f72\u62a5\u9001\u65b9\u6848\u5411\u5bfc\u548c\u6807\u51c6\u5bfc\u5165\u754c\u9762",
|
||||
"startedAt": 1796001749.618269
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "frontend",
|
||||
"containerId": "56d791b3d9de059abaa58e91d727b69aec05298608024c9bc38ce27eafb0088a",
|
||||
"imageId": "sha256:3b2cb6126098753c2da7ecd89e92a035308abe4487628ad4ddd1920d9c0ad5d7",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:9e3d59b26d4761e4941f9b4a96249920997fd8b952a15bef5bbdabc06f935bb8"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "frontend",
|
||||
"release": "reporting-v2-20261130",
|
||||
"imageTag": "aixun-datagov/frontend:reporting-v2-20261130",
|
||||
"imageId": "sha256:3b2cb6126098753c2da7ecd89e92a035308abe4487628ad4ddd1920d9c0ad5d7",
|
||||
"artifactSha256": "60b3f03d684ed5c71eb6b7d21dee4d28832cf8e339907b94455f663e914db0c0",
|
||||
"sourceContainerId": "86cd7ca7abc2b8c519c16b3b5e443a12662f9f375d09ad0bb7a3b2b3f0745817",
|
||||
"sourceImageId": "sha256:9e3d59b26d4761e4941f9b4a96249920997fd8b952a15bef5bbdabc06f935bb8",
|
||||
"sourceImageTag": "sha256:9e3d59b26d4761e4941f9b4a96249920997fd8b952a15bef5bbdabc06f935bb8",
|
||||
"sourceStateSha256": "a08b616045d168f0ee7f8bc5665ad568f1d1f05434f4825c2666d82b08d94457",
|
||||
"modelSha256": "6191eba2e7d9baec6b627d31a88f97341498664488d96cafdf5477a2e56bc1a3",
|
||||
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
|
||||
"artifactPath": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "db5fa5062538cbe44b0bf16437fe2521e5b953995a9f91d208fe7e694154cb48",
|
||||
"imageId": "sha256:61cbd638c419215ef270159488633f01a00889730cd31b96265614ae3af12318",
|
||||
"authorizedBy": "\u7528\u6237\u8981\u6c42\u6309\u76d1\u7ba1\u62a5\u9001V2\u6587\u6863\u4fee\u6539\uff0c\u5ef6\u7eed\u672c\u4f1a\u8bdd\u672c\u5730Docker\u66f4\u65b0\u6388\u6743\uff1b\u90e8\u7f72\u6807\u51c6\u5bfc\u5165\u3001\u673a\u6784\u5206\u7c7b\u548c\u65b9\u6848\u914d\u7f6e",
|
||||
"startedAt": 1796001720.8423738
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "integration",
|
||||
"containerId": "3a5fa9d779072e20dbb174b78c7f1f35f3de050cc7e90e8596874f5d71986d16",
|
||||
"imageId": "sha256:61cbd638c419215ef270159488633f01a00889730cd31b96265614ae3af12318",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:64d8afbb030993bb5c6b58e57e23d8c44bfa197a03b01af3417d91a9c63c6a42"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "integration",
|
||||
"release": "reporting-v2-20261130",
|
||||
"imageTag": "aixun-datagov/integration:reporting-v2-20261130",
|
||||
"imageId": "sha256:61cbd638c419215ef270159488633f01a00889730cd31b96265614ae3af12318",
|
||||
"artifactSha256": "961aefa5309757dfbc7b5d2f463cdc34a550c378f1eaee2e547bd25ae9c420a3",
|
||||
"sourceContainerId": "db5fa5062538cbe44b0bf16437fe2521e5b953995a9f91d208fe7e694154cb48",
|
||||
"sourceImageId": "sha256:64d8afbb030993bb5c6b58e57e23d8c44bfa197a03b01af3417d91a9c63c6a42",
|
||||
"sourceImageTag": "sha256:64d8afbb030993bb5c6b58e57e23d8c44bfa197a03b01af3417d91a9c63c6a42",
|
||||
"sourceStateSha256": "19f9b248703306058f04487c25deaf77ef6058bcfecf5904d3ecbcb1fd4cb112",
|
||||
"modelSha256": "cea778a741acb210df75c1a3be7e13615d054a2f3483cc1d9a1c18fee7d1cb65",
|
||||
"identitySha256": "b8dba93c3fb1418c792f60579268fdcc808452f3907a9b393164a83d819eb2d7"
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "714bc5007ee28887cdf904fe09561c892c565d11cf5f4d21aeaa8a5365e98d9d",
|
||||
"imageId": "sha256:64d8afbb030993bb5c6b58e57e23d8c44bfa197a03b01af3417d91a9c63c6a42",
|
||||
"authorizedBy": "\u7528\u6237\u8981\u6c42\u6309\u76d1\u7ba1\u62a5\u9001V2\u6587\u6863\u4fee\u6539\uff0c\u5ef6\u7eed\u672c\u4f1a\u8bdd\u672c\u5730Docker\u66f4\u65b0\u6388\u6743\uff0c\u53d1\u5e03\u5df2\u5b8c\u6210\u7684\u57fa\u7840\u914d\u7f6e\u548c\u6807\u51c6\u5bfc\u5165\u4fee\u590d",
|
||||
"startedAt": 1796000581.892313
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "integration",
|
||||
"containerId": "db5fa5062538cbe44b0bf16437fe2521e5b953995a9f91d208fe7e694154cb48",
|
||||
"imageId": "sha256:64d8afbb030993bb5c6b58e57e23d8c44bfa197a03b01af3417d91a9c63c6a42",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:79a155e60ee2ff9634da3752946e358d90002610499f52ae4622d2ed38b03feb"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "integration",
|
||||
"release": "reporting-v2-foundation-20261130",
|
||||
"imageTag": "aixun-datagov/integration:reporting-v2-foundation-20261130",
|
||||
"imageId": "sha256:64d8afbb030993bb5c6b58e57e23d8c44bfa197a03b01af3417d91a9c63c6a42",
|
||||
"artifactSha256": "19dc373b4dac1c45400308b42ecbe0a3a22f8ba38591fa941a4c50bbc3f9e693",
|
||||
"sourceContainerId": "714bc5007ee28887cdf904fe09561c892c565d11cf5f4d21aeaa8a5365e98d9d",
|
||||
"sourceImageId": "sha256:79a155e60ee2ff9634da3752946e358d90002610499f52ae4622d2ed38b03feb",
|
||||
"sourceImageTag": "sha256:79a155e60ee2ff9634da3752946e358d90002610499f52ae4622d2ed38b03feb",
|
||||
"sourceStateSha256": "acfa2f927227dfe92977b01c67bd7732848054346f9e166ab8354034e73cc5f7",
|
||||
"modelSha256": "e7c056db80c656a53a5067294248498a9b2ae5b62831e632391a47241a165e3e",
|
||||
"identitySha256": "b8dba93c3fb1418c792f60579268fdcc808452f3907a9b393164a83d819eb2d7"
|
||||
}
|
||||
@@ -7,11 +7,11 @@
|
||||
"AIXUN_DATAGOV_FILE_ROOT": "/var/lib/aixun-datagov/files",
|
||||
"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_HOST": "${DM_HOST:-}",
|
||||
"DM_PASSWORD": "${DM_PASSWORD:-}",
|
||||
"DM_PORT": "${DM_PORT:-5236}",
|
||||
"DM_USERNAME": "${DM_USERNAME:?required}",
|
||||
"DM_SCHEMA": "${DM_SCHEMA:?required}",
|
||||
"DM_USERNAME": "${DM_USERNAME:-}",
|
||||
"DM_SCHEMA": "${DM_SCHEMA:-}",
|
||||
"SERVER_PORT": "9204",
|
||||
"SPRING_APPLICATION_NAME": "aixun-datagov-resource",
|
||||
"SPRING_CLOUD_BUS_ENABLED": "false",
|
||||
@@ -27,7 +27,12 @@
|
||||
"SPRING_DATA_REDIS_PASSWORD": "${AIXUN_DATAGOV_REDIS_PASSWORD:?required}",
|
||||
"SPRING_DATA_REDIS_PORT": "6379",
|
||||
"SPRING_PROFILES_ACTIVE": "prod",
|
||||
"TZ": "Asia/Shanghai"
|
||||
"TZ": "Asia/Shanghai",
|
||||
"PLATFORM_DB_URL": "${PLATFORM_DB_URL:-jdbc:dm://${DM_HOST:-localhost}:${DM_PORT:-5236}}",
|
||||
"PLATFORM_DB_USERNAME": "${PLATFORM_DB_USERNAME:-${DM_USERNAME:-}}",
|
||||
"PLATFORM_DB_PASSWORD": "${PLATFORM_DB_PASSWORD:-${DM_PASSWORD:-}}",
|
||||
"PLATFORM_DB_SCHEMA": "${PLATFORM_DB_SCHEMA:-${DM_SCHEMA:-}}",
|
||||
"PLATFORM_DB_DRIVER": "${PLATFORM_DB_DRIVER:-}"
|
||||
},
|
||||
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
|
||||
"labels": {
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
"environment": {
|
||||
"AIXUN_DATAGOV_JWT_SECRET": "${AIXUN_DATAGOV_JWT_SECRET:?required}",
|
||||
"JAVA_OPTS": "-Xms192m -Xmx640m -XX:MaxMetaspaceSize=256m -XX:MaxDirectMemorySize=128m -XX:ReservedCodeCacheSize=96m -Xss512k",
|
||||
"DM_HOST": "${DM_HOST:?required}",
|
||||
"DM_PASSWORD": "${DM_PASSWORD:?required}",
|
||||
"DM_HOST": "${DM_HOST:-}",
|
||||
"DM_PASSWORD": "${DM_PASSWORD:-}",
|
||||
"DM_PORT": "${DM_PORT:-5236}",
|
||||
"DM_USERNAME": "${DM_USERNAME:?required}",
|
||||
"DM_SCHEMA": "${DM_SCHEMA:?required}",
|
||||
"DM_USERNAME": "${DM_USERNAME:-}",
|
||||
"DM_SCHEMA": "${DM_SCHEMA:-}",
|
||||
"SERVER_PORT": "9201",
|
||||
"SPRING_APPLICATION_NAME": "aixun-datagov-system",
|
||||
"SPRING_CLOUD_BUS_ENABLED": "false",
|
||||
@@ -26,7 +26,12 @@
|
||||
"SPRING_DATA_REDIS_PASSWORD": "${AIXUN_DATAGOV_REDIS_PASSWORD:?required}",
|
||||
"SPRING_DATA_REDIS_PORT": "6379",
|
||||
"SPRING_PROFILES_ACTIVE": "prod",
|
||||
"TZ": "Asia/Shanghai"
|
||||
"TZ": "Asia/Shanghai",
|
||||
"PLATFORM_DB_URL": "${PLATFORM_DB_URL:-jdbc:dm://${DM_HOST:-localhost}:${DM_PORT:-5236}}",
|
||||
"PLATFORM_DB_USERNAME": "${PLATFORM_DB_USERNAME:-${DM_USERNAME:-}}",
|
||||
"PLATFORM_DB_PASSWORD": "${PLATFORM_DB_PASSWORD:-${DM_PASSWORD:-}}",
|
||||
"PLATFORM_DB_SCHEMA": "${PLATFORM_DB_SCHEMA:-${DM_SCHEMA:-}}",
|
||||
"PLATFORM_DB_DRIVER": "${PLATFORM_DB_DRIVER:-}"
|
||||
},
|
||||
"image": "${AIXUN_DATAGOV_DEPLOY_IMAGE:?explicit local image required}",
|
||||
"labels": {
|
||||
|
||||
@@ -24,11 +24,16 @@ x-app-environment: &app-environment
|
||||
SPRING_DATA_REDIS_PORT: "6379"
|
||||
SPRING_DATA_REDIS_PASSWORD: ${AIXUN_DATAGOV_REDIS_PASSWORD:?required}
|
||||
SPRING_DATA_REDIS_DATABASE: "11"
|
||||
DM_HOST: ${DM_HOST:?required}
|
||||
DM_HOST: ${DM_HOST:-}
|
||||
DM_PORT: ${DM_PORT:-5236}
|
||||
DM_USERNAME: ${DM_USERNAME:?required}
|
||||
DM_PASSWORD: ${DM_PASSWORD:?required}
|
||||
DM_SCHEMA: ${DM_SCHEMA:?required}
|
||||
DM_USERNAME: ${DM_USERNAME:-}
|
||||
DM_PASSWORD: ${DM_PASSWORD:-}
|
||||
DM_SCHEMA: ${DM_SCHEMA:-}
|
||||
PLATFORM_DB_URL: ${PLATFORM_DB_URL:-jdbc:dm://${DM_HOST:-localhost}:${DM_PORT:-5236}}
|
||||
PLATFORM_DB_USERNAME: ${PLATFORM_DB_USERNAME:-${DM_USERNAME:-}}
|
||||
PLATFORM_DB_PASSWORD: ${PLATFORM_DB_PASSWORD:-${DM_PASSWORD:-}}
|
||||
PLATFORM_DB_SCHEMA: ${PLATFORM_DB_SCHEMA:-${DM_SCHEMA:-}}
|
||||
PLATFORM_DB_DRIVER: ${PLATFORM_DB_DRIVER:-}
|
||||
AIXUN_DATAGOV_JWT_SECRET: ${AIXUN_DATAGOV_JWT_SECRET:?required}
|
||||
SPRING_CLOUD_BUS_ENABLED: "false"
|
||||
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
# 远程测试发布
|
||||
|
||||
目标仅维护在 `test-v.json`:43.249.195.133、linux/amd64、`/opt/aixun-datagov`,Compose 项目 `aixun-datagov-local`。本机 `deploy.sh` 保持原用途;远程入口是 `script/datagov/deploy-remote.sh`,服务器不编译源码。
|
||||
目标分别维护在 `test-v.json`(43.249.195.133)和 `baiher.json`(43.249.195.204)。两者均为 linux/amd64、`/opt/aixun-datagov`,各自服务器上的 Compose 项目为 `aixun-datagov-local`。本机 `deploy.sh` 保持原用途;远程入口是 `script/datagov/deploy-remote.sh`,服务器不编译源码。
|
||||
|
||||
## 百赫线上副本
|
||||
|
||||
`baiher-20261130-01` 按用户要求复制 v 站实际运行的 MySQL 版本,访问 `https://data.baiher.cn`;不包含后来本地达梦版源码。源站不停机,只复制程序、平台业务库、当前 Nacos 配置及受管凭据;Doris/Hive/调度器持久数据未复制。新站自动元数据采集暂停,Redis 会话和锁不复制。管理员沿用源站账号,密码只在服务器 `secrets/admin-password`。基础设施使用新生成的独立秘密。
|
||||
|
||||
后续发布用 `./script/datagov/deploy-remote.sh --target baiher inspect|prepare|transfer|apply|verify`(版本与参数同下方示例)。**必须显式 `--image 服务=兼容该 MySQL 版本的镜像`,不能默认取本机达梦服务镜像。** 百赫前端通过 `brands/baiher/build.py` 在已核验线上前端镜像上增加品牌层,品牌记录保存文件变更校验值;不要将本地未发布功能混入该副本。SSH 复用连接使用 `.remote-baiher-ssh.sock`。
|
||||
|
||||
本次复制工具带唯一版本与一次性阶段标记,只供本次首装和对账,不可作为更新命令重跑。执行结果未知时先检查对应 `*-attempt.json`、`*-result.json` 和实际服务。HTTPS 由现有 Caddy 对本站独立路由自动签发和续期,其他路由不改。首次副本没有上一应用版本;准确止损及入口恢复见 `releases/baiher-20261130-01/REPORT.md`,数据库恢复必须先保全新写入,不删除卷。
|
||||
|
||||
## 日常更新
|
||||
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Add only the authorized Baihe domain to the existing shared Caddy ingress."""
|
||||
import fcntl
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
import sys
|
||||
import urllib.request
|
||||
|
||||
BASE = Path('/opt/aixun-datagov')
|
||||
RECORD = BASE / 'releases/baiher-20261130-01'
|
||||
FILE = Path('/opt/nest/Caddyfile')
|
||||
DOMAIN = 'data.baiher.cn'
|
||||
BLOCK = '\n# BEGIN DataGov Baihe\ndata.baiher.cn {\n encode zstd gzip\n reverse_proxy 127.0.0.1:28000\n}\n# END DataGov Baihe\n'
|
||||
|
||||
|
||||
def request(path, data=None, content_type='application/json'):
|
||||
req = urllib.request.Request('http://127.0.0.1:2019' + path, data=data, headers={'Content-Type': content_type})
|
||||
with urllib.request.urlopen(req, timeout=60) as response:
|
||||
raw = response.read()
|
||||
return json.loads(raw) if raw else None
|
||||
|
||||
|
||||
def save(name, data):
|
||||
path = RECORD / name
|
||||
path.write_bytes(data)
|
||||
path.chmod(0o600)
|
||||
|
||||
|
||||
def main():
|
||||
action = sys.argv[1]
|
||||
assert action in ('apply', 'restore')
|
||||
with (BASE / 'release.lock').open('a') as lock:
|
||||
fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
||||
original = FILE.read_bytes()
|
||||
current = request('/config/')
|
||||
assert request('/adapt', original, 'text/caddyfile')['result'] == current, 'shared ingress has drift; no overwrite'
|
||||
if action == 'apply':
|
||||
assert DOMAIN.encode() not in original
|
||||
assert not (RECORD / 'edge-attempt.json').exists(), 'reconcile prior attempt first'
|
||||
changed = original + BLOCK.encode()
|
||||
expected = request('/adapt', changed, 'text/caddyfile')['result']
|
||||
old_routes = current['apps']['http']['servers']['srv0']['routes']
|
||||
new_routes = expected['apps']['http']['servers']['srv0']['routes']
|
||||
others = [route for route in new_routes if not any(DOMAIN in match.get('host', []) for match in route.get('match', []))]
|
||||
assert others == old_routes, 'unrelated routes would change'
|
||||
save('edge-before.Caddyfile', original)
|
||||
save('edge-attempt.json', json.dumps({'status': 'STARTED', 'before_sha256': hashlib.sha256(original).hexdigest()}).encode())
|
||||
else:
|
||||
assert original.count(BLOCK.encode()) == 1
|
||||
changed = original.replace(BLOCK.encode(), b'')
|
||||
expected = request('/adapt', changed, 'text/caddyfile')['result']
|
||||
request('/load', changed, 'text/caddyfile')
|
||||
assert request('/config/') == expected, 'reload outcome needs reconciliation'
|
||||
assert FILE.read_bytes() == original, 'shared file changed concurrently; reconcile before persistence'
|
||||
# Preserve the inode: the shared proxy may bind-mount this individual file.
|
||||
FILE.write_bytes(changed)
|
||||
save('edge-result.json', json.dumps({'status': 'PASS', 'action': action, 'domain': DOMAIN, 'after_sha256': hashlib.sha256(changed).hexdigest(), 'other_routes_preserved': True, 'certificate': 'automatic HTTPS; verify external certificate separately'}, indent=2).encode())
|
||||
print('PASS: domain route updated; all other routes preserved')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
main()
|
||||
except Exception as error:
|
||||
print(type(error).__name__ + ': edge change incomplete; reconcile before retry', file=sys.stderr)
|
||||
sys.exit(1)
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "baiher",
|
||||
"host": "43.249.195.204",
|
||||
"port": 22,
|
||||
"user": "root",
|
||||
"platform": "linux/amd64",
|
||||
"directory": "/opt/aixun-datagov",
|
||||
"project": "aixun-datagov-local",
|
||||
"environment": "customer",
|
||||
"url": "https://data.baiher.cn",
|
||||
"frontend_port": 28000,
|
||||
"ssh_control_path": ".remote-baiher-ssh.sock",
|
||||
"source_target": "test-v",
|
||||
"database": "mysql-source-clone",
|
||||
"brand": "baiher"
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Build a brand-only layer from the verified live frontend, never local UI source."""
|
||||
import hashlib
|
||||
import argparse
|
||||
import json
|
||||
import re
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[5]
|
||||
HERE = Path(__file__).resolve().parent
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('version', help='Unique brand release version')
|
||||
parser.add_argument('--base', help='Current deployed frontend image for incremental branding')
|
||||
parser.add_argument('--style-only', action='store_true', help='Update only the existing brand style')
|
||||
args = parser.parse_args()
|
||||
VERSION = args.version
|
||||
assert VERSION.startswith('baiher-') and all(c.isalnum() or c == '-' for c in VERSION)
|
||||
RECORD = ROOT / 'script/datagov/remote/releases' / VERSION
|
||||
BASE = args.base or json.loads((ROOT / 'script/datagov/remote/releases/baiher-20261130-01/source-images.json').read_text())['frontend']['image']
|
||||
|
||||
|
||||
def run(args):
|
||||
return subprocess.check_output(args, stderr=subprocess.STDOUT).decode().strip()
|
||||
|
||||
|
||||
def main():
|
||||
assert not (RECORD / 'brand.json').exists(), 'release version already built'
|
||||
RECORD.mkdir(parents=True, exist_ok=True)
|
||||
info = json.loads(run(['docker', 'image', 'inspect', BASE]))[0]
|
||||
assert info['Id'] == BASE and info['Os'] == 'linux' and info['Architecture'] == 'amd64'
|
||||
base_tag = 'aixun-datagov/frontend:' + VERSION + '-base'
|
||||
run(['docker', 'tag', BASE, base_tag])
|
||||
with tempfile.TemporaryDirectory(prefix='baiher-brand-', dir=ROOT / '.cache') as temp:
|
||||
work = Path(temp)
|
||||
container = run(['docker', 'create', '--label', 'com.aixun.project=aixun-datagov', BASE])
|
||||
try:
|
||||
run(['docker', 'cp', container + ':/opt/aixun-datagov/frontend-current', str(work / 'original')])
|
||||
finally:
|
||||
run(['docker', 'rm', container])
|
||||
overlay = work / 'overlay'
|
||||
overlay.mkdir()
|
||||
changed = {}
|
||||
style = '<style id="baiher-brand">.scene-brand .brand-name{display:none!important}.scene-brand .brand-mark{width:clamp(120px,10vw,160px)!important;height:auto!important;overflow:visible!important}.scene-brand .brand-mark img{width:100%!important;height:auto!important;max-width:100%!important}</style>'
|
||||
mark_references = 0
|
||||
texts = {}
|
||||
replacements = {}
|
||||
for path in (work / 'original').rglob('*'):
|
||||
if not path.is_file() or path.suffix not in ('.html', '.js', '.css'):
|
||||
continue
|
||||
if args.style_only and path.name != 'index.html':
|
||||
continue
|
||||
before = path.read_text()
|
||||
mark_references += before.count('zhuohui-mark.svg')
|
||||
after = before.replace('zhuohui-mark.svg', 'branding/baiher/mark.png')
|
||||
after = after.replace('江西倬慧信息科技有限公司', '北京百赫科技有限公司')
|
||||
after = after.replace('© 2026 百赫科技', '© 2026 北京百赫科技有限公司')
|
||||
after = after.replace('JIANGXI ZHUOHUI INFORMATION TECHNOLOGY CO., LTD.', 'BAIHE TECHNOLOGY')
|
||||
after = after.replace('倬慧数据资产管理平台', '百赫数据资产管理平台')
|
||||
after = after.replace('ZHUOHUI DATA ASSET MANAGEMENT PLATFORM', 'BAIHE DATA ASSET MANAGEMENT PLATFORM')
|
||||
after = after.replace('倬慧科技数据中台', '百赫科技数据中台')
|
||||
after = after.replace('ZHUOHUI TECHNOLOGY DATA PLATFORM', 'BAIHE TECHNOLOGY DATA PLATFORM')
|
||||
if path.name == 'index.html':
|
||||
assert '</head>' in after
|
||||
after = after.replace('type="image/svg+xml" href="/branding/baiher/mark.png"', 'type="image/png" href="/branding/baiher/mark.png"')
|
||||
if 'id="baiher-brand"' not in after:
|
||||
after = after.replace('</head>', style + '</head>')
|
||||
else:
|
||||
after, count = re.subn(r'<style id="baiher-brand">.*?</style>', lambda _: style, after, flags=re.S)
|
||||
assert count == 1, 'ambiguous brand style'
|
||||
rel = path.relative_to(work / 'original')
|
||||
texts[rel] = before
|
||||
replacements[rel] = after
|
||||
# Version changed immutable chunks and all referring chunks to preserve
|
||||
# existing browser caches and the shared frontend asset collision guard.
|
||||
renamed = {}
|
||||
while True:
|
||||
next_names = {rel: rel.with_name(rel.stem + '-' + VERSION + rel.suffix) for rel, value in replacements.items() if rel.parts[0] == 'assets' and value != texts[rel]}
|
||||
if next_names == renamed:
|
||||
break
|
||||
renamed = next_names
|
||||
for rel, value in list(replacements.items()):
|
||||
for old, new in renamed.items():
|
||||
value = value.replace(old.name, new.name)
|
||||
replacements[rel] = value
|
||||
for rel, after in replacements.items():
|
||||
before = texts[rel]
|
||||
if after != before:
|
||||
destination = renamed.get(rel, rel)
|
||||
dest = overlay / destination
|
||||
dest.parent.mkdir(parents=True, exist_ok=True)
|
||||
dest.write_text(after)
|
||||
changed[str(destination)] = {'before': hashlib.sha256(before.encode()).hexdigest(), 'after': hashlib.sha256(after.encode()).hexdigest()}
|
||||
assert mark_references >= 2 or any('branding/baiher/mark.png' in text for text in texts.values()), 'live logo references changed; inspect before branding'
|
||||
for rel, source in [('branding/baiher/mark.png', 'mark.png'), ('login-scene/group-logo.png', 'wordmark.png')]:
|
||||
dest = overlay / rel
|
||||
dest.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copyfile(HERE / source, dest)
|
||||
changed[rel] = {'after': hashlib.sha256(dest.read_bytes()).hexdigest()}
|
||||
(work / 'Dockerfile').write_text('FROM ' + base_tag + '\nLABEL org.opencontainers.image.version="' + VERSION + '"\nENV AIXUN_DATAGOV_RELEASE_ID=' + VERSION + '\nCOPY overlay/ /opt/aixun-datagov/frontend-current/\nCOPY overlay/branding/ /opt/aixun-datagov/frontend-public/branding/\n')
|
||||
tag = 'aixun-datagov/frontend:' + VERSION
|
||||
result = subprocess.run(['docker', 'build', '--platform', 'linux/amd64', '-t', tag, str(work)], capture_output=True)
|
||||
if result.returncode:
|
||||
print(result.stderr.decode()[-2500:])
|
||||
raise RuntimeError('brand image build failed; no remote application changed')
|
||||
image_id = run(['docker', 'image', 'inspect', tag, '--format', '{{.Id}}'])
|
||||
(RECORD / 'brand.json').write_text(json.dumps({'status': 'PASS', 'base_image': BASE, 'image': image_id, 'tag': tag, 'changed': changed}, indent=2) + '\n')
|
||||
print('PASS: brand image ' + image_id)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
二进制文件未显示。
|
之后 宽度: | 高度: | 大小: 69 KiB |
二进制文件未显示。
|
之后 宽度: | 高度: | 大小: 134 KiB |
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Run on source via SSH. Emit only required private config as a tar stream."""
|
||||
from pathlib import Path
|
||||
import io
|
||||
import json
|
||||
import sys
|
||||
import tarfile
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
|
||||
b = Path('/opt/aixun-datagov')
|
||||
e = dict(line.split('=', 1) for line in (b / '.env').read_text().splitlines() if '=' in line)
|
||||
form = urllib.parse.urlencode({'username': e['AIXUN_DATAGOV_NACOS_USERNAME'], 'password': e['AIXUN_DATAGOV_NACOS_PASSWORD']}).encode()
|
||||
with urllib.request.urlopen('http://127.0.0.1:28848/nacos/v3/auth/user/login', data=form, timeout=10) as r:
|
||||
token = json.load(r)['accessToken']
|
||||
config = {}
|
||||
for f in sorted((b / 'nacos').glob('*.yml')):
|
||||
q = urllib.parse.urlencode({'namespaceId': 'aixun-datagov-local', 'groupName': 'AIXUN_DATAGOV_GROUP', 'dataId': f.name, 'accessToken': token})
|
||||
with urllib.request.urlopen('http://127.0.0.1:28848/nacos/v3/admin/cs/config?' + q, timeout=10) as r:
|
||||
data = json.load(r)
|
||||
assert data['code'] == 0
|
||||
config['nacos/' + f.name] = data['data']['content'].encode()
|
||||
files = ['.env', 'nacos-startup.sh', 'nginx/frontend.conf', 'secrets/admin-password', 'm2/dolphinscheduler/remote-start.sh', 'm2/doris/start-be.sh', 'm2/hive/minio-bootstrap.sh', 'm2/hive/hive-bucket-policy.json']
|
||||
files += [str(f.relative_to(b)) for f in (b / 'm2/local/secrets').iterdir() if f.is_file() and not f.name.startswith('om-') and 'openmetadata' not in f.name]
|
||||
with tarfile.open(fileobj=sys.stdout.buffer, mode='w|gz') as tar:
|
||||
for name in files:
|
||||
assert (b / name).is_file() and not (b / name).is_symlink()
|
||||
tar.add(b / name, arcname=name, recursive=False)
|
||||
for name, content in config.items():
|
||||
entry = tarfile.TarInfo(name)
|
||||
entry.size = len(content)
|
||||
entry.mode = 0o600
|
||||
tar.addfile(entry, io.BytesIO(content))
|
||||
@@ -0,0 +1,183 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Target-only, staged installation of a verified live MySQL release clone."""
|
||||
import fcntl
|
||||
import gzip
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path, PurePosixPath
|
||||
import subprocess
|
||||
import sys
|
||||
import tarfile
|
||||
import time
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
|
||||
BASE = Path('/opt/aixun-datagov')
|
||||
RECORD = BASE / 'releases/baiher-20261130-01'
|
||||
PROJECT = 'aixun-datagov-local'
|
||||
APPS = ['gateway', 'auth', 'system', 'resource', 'integration', 'dataops', 'governance', 'dataproduct', 'frontend']
|
||||
|
||||
|
||||
def run(args, data=None, timeout=600):
|
||||
p = subprocess.run(args, input=data, capture_output=True, timeout=timeout)
|
||||
if p.returncode:
|
||||
raise RuntimeError('command failed: ' + args[0] + '; sensitive output withheld; inspect before retry')
|
||||
return p.stdout
|
||||
|
||||
|
||||
def save(name, value):
|
||||
path = RECORD / name
|
||||
path.write_text(json.dumps(value, indent=2) + '\n')
|
||||
path.chmod(0o600)
|
||||
|
||||
|
||||
def compose(*args):
|
||||
return run(['docker', 'compose', '--project-directory', str(BASE), '--env-file', str(BASE / '.env'), '-p', PROJECT, '-f', str(BASE / 'compose.json'), *args])
|
||||
|
||||
|
||||
def own(name):
|
||||
c = json.loads(run(['docker', 'inspect', 'aixun-datagov-' + name]))[0]
|
||||
assert c['Config']['Labels']['com.aixun.project'] == 'aixun-datagov'
|
||||
assert c['Config']['Labels']['com.docker.compose.project'] == PROJECT
|
||||
return c
|
||||
|
||||
|
||||
def sql(value):
|
||||
own('mysql')
|
||||
return run(['docker', 'exec', '-i', 'aixun-datagov-mysql', 'sh', '-c', 'MYSQL_PWD="$MYSQL_ROOT_PASSWORD" exec mysql -uroot -N -B --default-character-set=utf8mb4 aixun_datagov_system'], value.encode()).decode().strip()
|
||||
|
||||
|
||||
def http(url, form=None, token=None):
|
||||
headers = {'Authorization': 'Bearer ' + token} if token else {}
|
||||
data = urllib.parse.urlencode(form).encode() if form is not None else None
|
||||
with urllib.request.urlopen(urllib.request.Request(url, data=data, headers=headers), timeout=30) as response:
|
||||
return json.load(response)
|
||||
|
||||
|
||||
def init():
|
||||
assert not (BASE / '.env').exists(), 'existing target; clone init refused'
|
||||
assert not run(['docker', 'ps', '-aq', '--filter', 'label=com.docker.compose.project=' + PROJECT]).strip()
|
||||
raw = (RECORD / 'target-config.tar.gz').read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == json.loads((RECORD / 'config-plan.json').read_text())['sha256']
|
||||
with tarfile.open(fileobj=io.BytesIO(raw)) as archive:
|
||||
for entry in archive:
|
||||
name = PurePosixPath(entry.name)
|
||||
assert entry.isfile() and not name.is_absolute() and '..' not in name.parts
|
||||
path = BASE.joinpath(*name.parts)
|
||||
assert not path.exists()
|
||||
path.parent.mkdir(mode=0o750, parents=True, exist_ok=True)
|
||||
path.write_bytes(archive.extractfile(entry).read())
|
||||
path.chmod(entry.mode)
|
||||
os.chown(path, entry.uid, entry.gid)
|
||||
secret_dir = BASE / 'm2/local/secrets'
|
||||
os.chown(secret_dir, 0, 19888)
|
||||
secret_dir.chmod(0o750)
|
||||
compose('config', '--quiet')
|
||||
save('init-result.json', {'status': 'PASS', 'configuration': 'isolated target'})
|
||||
|
||||
|
||||
def infra():
|
||||
compose('up', '-d', '--no-build', '--pull', 'never', 'mysql', 'redis', 'nacos')
|
||||
for _ in range(60):
|
||||
statuses = {n: own(n)['State'].get('Health', {}).get('Status') for n in ('mysql', 'redis', 'nacos')}
|
||||
if all(v == 'healthy' for v in statuses.values()):
|
||||
save('infra-result.json', {'status': 'PASS', 'health': statuses})
|
||||
print('PASS: database, Redis and Nacos healthy')
|
||||
return
|
||||
time.sleep(3)
|
||||
raise RuntimeError('infra health timeout; inspect before continuing')
|
||||
|
||||
|
||||
def database():
|
||||
path = RECORD / 'platform.sql.gz'
|
||||
expected = json.loads((RECORD / 'database-snapshot.json').read_text())
|
||||
assert hashlib.sha256(path.read_bytes()).hexdigest() == expected['sha256']
|
||||
assert sql('SELECT COUNT(*) FROM information_schema.tables WHERE table_schema=DATABASE();') == '0', 'target is not empty'
|
||||
save('database-attempt.json', {'status': 'STARTED'})
|
||||
args = ['docker', 'exec', '-i', 'aixun-datagov-mysql', 'sh', '-c', 'MYSQL_PWD="$MYSQL_ROOT_PASSWORD" exec mysql -uroot --default-character-set=utf8mb4']
|
||||
with gzip.open(path, 'rb') as stream:
|
||||
p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
try:
|
||||
for data in iter(lambda: stream.read(1024 * 1024), b''):
|
||||
p.stdin.write(data)
|
||||
finally:
|
||||
p.stdin.close()
|
||||
assert p.wait() == 0, 'database import failed; do not retry without reconciliation'
|
||||
count = int(sql('SELECT COUNT(*) FROM information_schema.tables WHERE table_schema=DATABASE();'))
|
||||
assert count == expected['tables']
|
||||
# These are new-site operational settings, not historical state rewrites.
|
||||
disabled = sql("UPDATE md_ingestion_policy SET enabled_flag='0' WHERE enabled_flag='1'; SELECT ROW_COUNT();")
|
||||
sql('DELETE FROM dg_maintenance_lease;')
|
||||
save('database-result.json', {'status': 'PASS', 'tables': count, 'source_snapshot_sha256': expected['sha256'], 'metadata_policies_paused': int(disabled), 'source_changed': False})
|
||||
print('PASS: platform database restored and automatic metadata policies paused')
|
||||
|
||||
|
||||
def config():
|
||||
env = dict(line.split('=', 1) for line in (BASE / '.env').read_text().splitlines() if '=' in line)
|
||||
api = 'http://127.0.0.1:28848/nacos'
|
||||
console = 'http://127.0.0.1:28081'
|
||||
password = env['AIXUN_DATAGOV_NACOS_PASSWORD']
|
||||
response = http(api + '/v3/auth/user/admin', {'password': password})
|
||||
assert response.get('code') == 0, 'Nacos initialization uncertain; inspect before retry'
|
||||
token = http(api + '/v3/auth/user/login', {'username': 'nacos', 'password': password})['accessToken']
|
||||
assert http(console + '/v3/console/core/namespace', {'customNamespaceId': PROJECT, 'namespaceName': PROJECT, 'namespaceDesc': 'Baihe source clone'}, token).get('code') == 0
|
||||
hashes = {}
|
||||
for path in sorted((BASE / 'nacos').glob('*.yml')):
|
||||
text = path.read_text()
|
||||
response = http(api + '/v3/admin/cs/config', {'dataId': path.name, 'groupName': 'AIXUN_DATAGOV_GROUP', 'namespaceId': PROJECT, 'type': 'yaml', 'content': text}, token)
|
||||
assert response.get('code') == 0
|
||||
query = urllib.parse.urlencode({'dataId': path.name, 'groupName': 'AIXUN_DATAGOV_GROUP', 'namespaceId': PROJECT, 'accessToken': token})
|
||||
actual = http(api + '/v3/admin/cs/config?' + query)['data']['content']
|
||||
assert actual == text
|
||||
hashes[path.name] = hashlib.sha256(text.encode()).hexdigest()
|
||||
save('config-result.json', {'status': 'PASS', 'configs': hashes})
|
||||
print('PASS: current source configurations published and read back')
|
||||
|
||||
|
||||
def credentials():
|
||||
compose('create', '--no-build', '--pull', 'never', 'integration', 'resource', 'frontend')
|
||||
volume = json.loads(run(['docker', 'volume', 'inspect', PROJECT + '-managed-credential-data']))[0]
|
||||
assert volume['Labels']['com.docker.compose.project'] == PROJECT
|
||||
base = Path(volume['Mountpoint'])
|
||||
assert not any(base.iterdir()), 'credential target not empty'
|
||||
count = 0
|
||||
with tarfile.open(RECORD / 'managed.tar') as archive:
|
||||
for entry in archive:
|
||||
parts = PurePosixPath(entry.name).parts
|
||||
assert parts[0] == 'managed' and '..' not in parts and (entry.isfile() or entry.isdir())
|
||||
path = base.joinpath(*parts[1:])
|
||||
if entry.isdir():
|
||||
path.mkdir(parents=True, exist_ok=True)
|
||||
else:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
path.write_bytes(archive.extractfile(entry).read())
|
||||
count += 1
|
||||
os.chown(path, 0, 19888)
|
||||
path.chmod(0o750 if entry.isdir() else 0o440)
|
||||
save('credentials-result.json', {'status': 'PASS', 'files': count})
|
||||
|
||||
|
||||
def apps():
|
||||
assert (RECORD / 'database-result.json').exists() and (RECORD / 'config-result.json').exists()
|
||||
compose('up', '-d', '--no-deps', '--no-build', '--pull', 'never', 'm2-seatunnel', *APPS)
|
||||
save('apps-result.json', {'status': 'STARTED', 'services': APPS + ['m2-seatunnel']})
|
||||
print('Applications started; readiness verification required')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
action = sys.argv[1]
|
||||
assert action in ('init', 'infra', 'database', 'config', 'credentials', 'apps')
|
||||
RECORD.mkdir(mode=0o700, parents=True, exist_ok=True)
|
||||
with (BASE / 'release.lock').open('a') as lock:
|
||||
fcntl.flock(lock, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
||||
assert not (RECORD / (action + '-result.json')).exists(), 'stage completed; verify instead of repeating'
|
||||
assert not (RECORD / (action + '-attempt.json')).exists(), 'unknown stage result; reconcile before retry'
|
||||
if action != 'database':
|
||||
save(action + '-attempt.json', {'status': 'STARTED'})
|
||||
globals()[action]()
|
||||
except Exception as error:
|
||||
print(type(error).__name__ + ': installation stage incomplete; inspect sanitized state; do not retry blindly', file=sys.stderr)
|
||||
sys.exit(1)
|
||||
@@ -0,0 +1,101 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Prepare private configuration for an existing MySQL release clone.
|
||||
|
||||
This is deliberately separate from the current Dameng fresh-install workflow.
|
||||
It never builds local business code or touches the source runtime.
|
||||
"""
|
||||
import base64
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
from pathlib import Path, PurePosixPath
|
||||
import secrets
|
||||
import tarfile
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
PRIVATE = ROOT / '.cache/baiher-clone-20261130-01'
|
||||
RECORD = ROOT / 'script/datagov/remote/releases/baiher-20261130-01'
|
||||
APPS = ['gateway', 'auth', 'system', 'resource', 'integration', 'dataops', 'governance', 'dataproduct', 'frontend']
|
||||
SELECTED = ['mysql', 'redis', 'nacos', 'm2-seatunnel', *APPS]
|
||||
|
||||
|
||||
def main():
|
||||
output = PRIVATE / 'target-config.tar.gz'
|
||||
assert not output.exists(), 'target config already prepared; do not rotate on retry'
|
||||
model = json.loads((PRIVATE / 'source-compose.json').read_text())
|
||||
images = json.loads((RECORD / 'source-images.json').read_text())
|
||||
brand = json.loads((RECORD / 'brand.json').read_text())
|
||||
files = {}
|
||||
with tarfile.open(PRIVATE / 'source-config.tar.gz') as archive:
|
||||
for entry in archive:
|
||||
name = PurePosixPath(entry.name)
|
||||
assert entry.isfile() and not name.is_absolute() and '..' not in name.parts
|
||||
files[entry.name] = archive.extractfile(entry).read()
|
||||
env = dict(line.split('=', 1) for line in files['.env'].decode().splitlines() if '=' in line)
|
||||
rotate = ['MYSQL_ROOT_PASSWORD', 'DB_PASSWORD', 'REDIS_PASSWORD', 'NACOS_PASSWORD', 'NACOS_IDENTITY_VALUE', 'JWT_SECRET', 'NACOS_AUTH_TOKEN']
|
||||
replacements = {}
|
||||
for suffix in rotate:
|
||||
key = 'AIXUN_DATAGOV_' + suffix
|
||||
old = env[key]
|
||||
new = base64.b64encode(secrets.token_bytes(48)).decode() if suffix == 'NACOS_AUTH_TOKEN' else secrets.token_hex(24)
|
||||
replacements[old] = new
|
||||
env[key] = new
|
||||
|
||||
def rekey(value):
|
||||
if isinstance(value, str):
|
||||
for old, new in replacements.items():
|
||||
value = value.replace(old, new)
|
||||
return value.replace('https://v.aixunkeji.cn', 'https://data.baiher.cn')
|
||||
if isinstance(value, list):
|
||||
return [rekey(x) for x in value]
|
||||
if isinstance(value, dict):
|
||||
return {k: rekey(v) for k, v in value.items()}
|
||||
return value
|
||||
|
||||
model = rekey(model)
|
||||
model['services'] = {name: model['services'][name] for name in SELECTED}
|
||||
for name, service in model['services'].items():
|
||||
service['image'] = brand['image'] if name == 'frontend' else images[name]['image']
|
||||
service.pop('build', None)
|
||||
service.pop('profiles', None)
|
||||
service.pop('depends_on', None)
|
||||
service['labels']['com.aixun.environment'] = 'baiher'
|
||||
for network in service['networks']:
|
||||
service['networks'][network] = {}
|
||||
if name == 'mysql':
|
||||
service['volumes'] = [v for v in service['volumes'] if v['type'] == 'volume']
|
||||
# Shared target has exhausted native AIO quota; keep the fix local.
|
||||
service['command'].append('--innodb-use-native-aio=0')
|
||||
# Fail closed for unbound external components; the source warehouse and
|
||||
# scheduler are explicitly excluded from this online-copy operation.
|
||||
if name == 'integration':
|
||||
service['environment']['AIXUN_DATAGOV_M2_ENABLED'] = 'true'
|
||||
networks = {n for s in model['services'].values() for n in s['networks']}
|
||||
subnets = {'backend': '192.168.96.0/24', 'frontend': '192.168.97.0/24', 'm2-integration': '192.168.98.0/24', 'm2-hive-private': '192.168.99.0/24'}
|
||||
assert networks <= subnets.keys()
|
||||
model['networks'] = {n: {'name': 'aixun-datagov-local-' + n, 'labels': {'com.aixun.project': 'aixun-datagov', 'com.aixun.environment': 'baiher'}, 'ipam': {'config': [{'subnet': subnets[n]}]}} for n in networks}
|
||||
volumes = {v['source'] for s in model['services'].values() for v in s.get('volumes', []) if v['type'] == 'volume'}
|
||||
model['volumes'] = {n: model['volumes'][n] for n in volumes}
|
||||
used_secrets = {v['source'] for s in model['services'].values() for v in s.get('secrets', [])}
|
||||
model['secrets'] = {n: model['secrets'][n] for n in used_secrets}
|
||||
model['name'] = 'aixun-datagov-local'
|
||||
files = {name: rekey(content.decode()).encode() for name, content in files.items()}
|
||||
files['.env'] = ('\n'.join(k + '=' + v for k, v in env.items()) + '\n').encode()
|
||||
files['compose.json'] = (json.dumps(model, indent=2) + '\n').encode()
|
||||
with output.open('xb') as stream:
|
||||
output.chmod(0o600)
|
||||
with tarfile.open(fileobj=stream, mode='w:gz') as archive:
|
||||
for name, content in files.items():
|
||||
entry = tarfile.TarInfo(name)
|
||||
entry.size = len(content)
|
||||
entry.mode = 0o600 if name == '.env' or '/secrets/' in name or name.startswith('secrets/') else 0o644
|
||||
if name.startswith('m2/local/secrets/'):
|
||||
entry.mode = 0o440
|
||||
entry.gid = 19888
|
||||
archive.addfile(entry, io.BytesIO(content))
|
||||
(RECORD / 'config-plan.json').write_text(json.dumps({'services': SELECTED, 'networks': subnets, 'database': 'source MySQL clone', 'new_infrastructure_secrets': rotate, 'native_data': 'NOT_COPIED_SOURCE_MUST_REMAIN_RUNNING', 'sha256': hashlib.sha256(output.read_bytes()).hexdigest()}, indent=2) + '\n')
|
||||
print('PASS: private target configuration prepared, infrastructure credentials isolated')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Record installed image and artifact identities without copying artifacts."""
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import tarfile
|
||||
|
||||
BASE = Path('/opt/aixun-datagov')
|
||||
RECORD = BASE / 'releases/baiher-20261130-01'
|
||||
APPS = ['gateway', 'auth', 'system', 'resource', 'integration', 'dataops', 'governance', 'dataproduct', 'frontend']
|
||||
|
||||
|
||||
def run(args):
|
||||
return subprocess.check_output(args, stderr=subprocess.DEVNULL)
|
||||
|
||||
|
||||
def main():
|
||||
services = {}
|
||||
for name in APPS:
|
||||
c = json.loads(run(['docker', 'inspect', 'aixun-datagov-' + name]))[0]
|
||||
assert c['Config']['Labels']['com.aixun.project'] == 'aixun-datagov'
|
||||
env = dict(x.split('=', 1) for x in c['Config']['Env'] if '=' in x)
|
||||
path = env.get('AIXUN_DATAGOV_FRONTEND_SOURCE', '/opt/aixun-datagov/frontend-current') if name == 'frontend' else '/aixun-datagov/app/app.jar'
|
||||
changes = run(['docker', 'diff', c['Id']]).decode().splitlines()
|
||||
assert not any(x[2:] == path or x[2:].startswith(path + '/') for x in changes), 'artifact modified in writable container'
|
||||
raw = run(['docker', 'cp', c['Id'] + ':' + path, '-'])
|
||||
with tarfile.open(fileobj=io.BytesIO(raw)) as archive:
|
||||
records = {x.name: hashlib.sha256(archive.extractfile(x).read()).hexdigest() for x in archive if x.isfile()}
|
||||
digest = next(iter(records.values())) if name != 'frontend' else hashlib.sha256(json.dumps(records, sort_keys=True, separators=(',', ':')).encode()).hexdigest()
|
||||
services[name] = {'id': c['Image'], 'platform': 'linux/amd64', 'artifact_path': path, 'artifact_sha256': digest}
|
||||
result = {'version': 'baiher-20261130-01', 'target': 'baiher', 'source': 'live test-v; source not stopped', 'services': services, 'database_change': True, 'config_change': True, 'previous_version': None, 'frontend_hash_method': 'sha256 of sorted compact JSON mapping tar member names to file sha256'}
|
||||
(RECORD / 'release.json').write_text(json.dumps(result, indent=2) + '\n')
|
||||
print('PASS: nine installed application images and artifact hashes recorded')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@@ -0,0 +1,41 @@
|
||||
# 百赫线上副本:baiher-20261130-01
|
||||
|
||||
结果:PASS_WITH_LIMITATION。目标 `baiher`,43.249.195.204:22,root,目录 `/opt/aixun-datagov`,入口 https://data.baiher.cn 。凭据不写入本记录。
|
||||
|
||||
## 已交付
|
||||
|
||||
- 按用户最新指令复制 v.aixunkeji.cn **实际运行版本**,不是本地后来更新的达梦源码。源站不停止,21 个服务容器身份、镜像和运行状态保持不变,见 `source-preserved.json`。
|
||||
- 九个应用:gateway、auth、system、resource、integration、dataops、governance、dataproduct、frontend;独立 MySQL、Redis、Nacos 和 SeaTunnel。后端镜像与源站一致,前端仅增加百赫品牌层,见 `release.json` / `brand.json`。
|
||||
- 系统图标使用本次图一;登录页左上角使用本次图二。已在浏览器登录前后核对。
|
||||
- 在线一致性逻辑快照恢复 640 张平台业务表;保留账号、业务记录、270 条迁移历史、697 条菜单、8 条元数据策略。没有重新执行历史迁移。15 个受管凭据文件和 10 份实际 Nacos 配置已迁入并读回;源站两个业务文件卷为空。
|
||||
- 基础设施秘密重新生成、网络按目标实际情况隔离。管理员 `admin` 沿用源站密码;受信任 SSH 下读取服务器 `secrets/admin-password`,不在交付记录保存明文。
|
||||
- 新 Redis 不复制源登录态、锁和服务注册。复制后的 4 条启用元数据采集策略改为暂停,避免双站自动执行;没有数据库事件。业务源库连接信息保留,未测试外部采集写入。
|
||||
- 经用户授权在现有 Caddy 添加本站独立路由,原有 13 条路由保持。免费 ACME 证书 SAN 为 data.baiher.cn,过期时间 2027-02-28 08:22:19 UTC,Caddy 管理自动续期。
|
||||
|
||||
## 必要调整和验证
|
||||
|
||||
目标主机 native AIO 已占用 65505/65536,首次空 MySQL 初始化失败,仅留下 auto.cnf;核对无数据库后保存该文件,针对本站 MySQL 增加 `--innodb-use-native-aio=0`,重新初始化成功,未调整主机参数或其他项目。配置依据:[MySQL 官方说明](https://dev.mysql.com/doc/refman/8.4/en/innodb-linux-native-aio.html)。后续实际配置以服务器 `compose.json` 为准,原始传输配置摘要不代表此项后续调整。
|
||||
|
||||
- 源码/品牌制品:PASS。线上既有制品复用,品牌层构建及相关文件检查通过;本地业务源码重编译 NOT_RUN(不属于本次线上复制)。
|
||||
- 远程部署:PASS。9 个应用健康及镜像身份通过,8 个后台服务均在独立 Nacos 注册;MySQL/Redis/Nacos/SeaTunnel 健康。
|
||||
- API:PASS。匿名鉴权拒绝、admin 登录、身份/菜单、集成/存储/治理/数据产品列表读取通过。
|
||||
- 入口/浏览器:PASS。HTTPS 正常校验证书,HTTP 308 跳转;浏览器 admin 登录并显示百赫系统图标,登录页完整标识显示正常,见 `home.jpg`。
|
||||
- 完整业务验收:NOT_RUN。首页展示不能作为业务数据完整性或端到端成功证据。
|
||||
- **Doris、Hive、调度器原生持久数据及其运行实例未复制**,符合“源站不能停机,先复制程序和平台业务库”的最新范围。这些组件相关仓库查询、采集落库、DAG 执行不可声称可用;需后续单独迁移再验收。
|
||||
|
||||
## 发布和恢复
|
||||
|
||||
后续入口:`./script/datagov/deploy-remote.sh --target baiher`。目标配置 `script/datagov/remote/baiher.json`;唯一使用说明 `script/datagov/remote/README.md`。必须使用兼容该 MySQL 版本的显式 `--image`,不可默认发布本地达梦镜像。本次一次性 clone 工具禁止重跑。
|
||||
|
||||
这是首次副本,无上一应用版本,不存在镜像回退。需停止本站应用时,在目标服务器执行:
|
||||
|
||||
```sh
|
||||
flock -n /opt/aixun-datagov/release.lock docker stop aixun-datagov-gateway aixun-datagov-auth aixun-datagov-system aixun-datagov-resource aixun-datagov-integration aixun-datagov-dataops aixun-datagov-governance aixun-datagov-dataproduct aixun-datagov-frontend aixun-datagov-m2-seatunnel
|
||||
python3 /opt/aixun-datagov/releases/baiher-20261130-01/baiher-edge.py restore
|
||||
```
|
||||
|
||||
上述操作只停本站应用、移除本站 Caddy 路由;保留基础服务和所有数据卷,源站不受影响。入口有漂移时工具拒绝覆盖,应先对账。需重新开放已停止的相同版本,按上述明确容器名使用 `docker start`,再核验后恢复本站路由;不要重跑首装。
|
||||
|
||||
平台快照在目标 `releases/baiher-20261130-01/platform.sql.gz`,SHA-256 `36dea99a7476d05242fc0a98214297fd1cb25da92578c20d370a65b35dde51f6`,权限 0600,仅保留此一份原始数据库恢复材料。**不能直接把它重新导入当前库**:已有新写入时需先保全并制定数据对账恢复;无新写入也须明确选择重建目标库,不能以镜像回退代替数据恢复。完整当前私密运行配置在 `.env`、`compose.json`、`nacos/`、`secrets/`,共享入口原配置只在服务器记录目录。
|
||||
|
||||
镜像流传输后已核对不可变 ID,不留镜像 tar。临时定向 SSH 密钥与授权已移除;本地私密导出、目标配置/凭据传输包清理后只保留运行文件和上述数据库恢复快照。没有全局 prune、没有删除数据卷;保护 zip 未改动。
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"base_image": "sha256:d92ac99cbd9e3ea4b43dc6bd9246677e27f6535ffe5a0f5e8b8e0d5f3aeb9cc3",
|
||||
"image": "sha256:9df6a397fd9a5acfc0fdab59751e02f1e757a99641ae102c2d6768d520b9319a",
|
||||
"tag": "aixun-datagov/frontend:baiher-20261130-01",
|
||||
"changed": {
|
||||
"index.html": {
|
||||
"before": "53ebc5c3149980d8ed58c01474a474f21dfd1b3cbc802aacb4a1d4b47c7eac30",
|
||||
"after": "db04e3ffe639bf429592adaf54a90da8a3c37885f8f803e11bffca6b855bb350"
|
||||
},
|
||||
"login-scene/scene.js": {
|
||||
"before": "1de4183cb5d6b5f4659268ab8e2ee687bfa07f3638e788042e79b3e124239ae8",
|
||||
"after": "41326ed7baf61ed4ee2b14467cc057d5aa27f65b051e2511c7151af741d12457"
|
||||
},
|
||||
"assets/user-Px4Jhzv2.js": {
|
||||
"before": "cdc6e384c01a31bfc8717c2a6f6a8487a43b6aa37b285a7fcdd9c2a65188aae2",
|
||||
"after": "de2d6c290c567d95fa9279da65a2715dc7cfd3bbf7573db8ed2244bbff37eff7"
|
||||
},
|
||||
"assets/LoginScene-qvUah0bd.js": {
|
||||
"before": "1ff5bc0d4673737b5e7b4230647db3b42dc36831927329d39fc3de8f6f8106b2",
|
||||
"after": "9e55475027dff83472eaa9c60beb27cb1dba607ebe93048750db30edd12810e9"
|
||||
},
|
||||
"assets/login-PFSvmW3x.js": {
|
||||
"before": "89ae4a549f1fd40b4dc494d0fc06c423aa946d7af531bef02e608dbdaa2f31c3",
|
||||
"after": "d281bf8b7eb61a4d269999b39190037167a85eb2e15223e3a28a9e451b3a38f4"
|
||||
},
|
||||
"branding/baiher/mark.png": {
|
||||
"after": "5478371a5ee23ee33ba61b4bfedfb4679372dd64dfb3d31ecc2c6400793ef33e"
|
||||
},
|
||||
"login-scene/group-logo.png": {
|
||||
"after": "f0380ff0b6632d4ef0d1e7afabdc4dd89c765e19b8770a16399622b239f9b624"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"temporary_transfer_files_removed": true,
|
||||
"temporary_ssh_credentials_removed": true,
|
||||
"database_recovery_snapshot_retained": true,
|
||||
"data_volumes_removed": false,
|
||||
"global_prune": false
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"services": [
|
||||
"mysql",
|
||||
"redis",
|
||||
"nacos",
|
||||
"m2-seatunnel",
|
||||
"gateway",
|
||||
"auth",
|
||||
"system",
|
||||
"resource",
|
||||
"integration",
|
||||
"dataops",
|
||||
"governance",
|
||||
"dataproduct",
|
||||
"frontend"
|
||||
],
|
||||
"networks": {
|
||||
"backend": "192.168.96.0/24",
|
||||
"frontend": "192.168.97.0/24",
|
||||
"m2-integration": "192.168.98.0/24",
|
||||
"m2-hive-private": "192.168.99.0/24"
|
||||
},
|
||||
"database": "source MySQL clone",
|
||||
"new_infrastructure_secrets": [
|
||||
"MYSQL_ROOT_PASSWORD",
|
||||
"DB_PASSWORD",
|
||||
"REDIS_PASSWORD",
|
||||
"NACOS_PASSWORD",
|
||||
"NACOS_IDENTITY_VALUE",
|
||||
"JWT_SECRET",
|
||||
"NACOS_AUTH_TOKEN"
|
||||
],
|
||||
"native_data": "NOT_COPIED_SOURCE_MUST_REMAIN_RUNNING",
|
||||
"sha256": "c2a895710eb8109e377cd87da107dfdaaae6ba8bc15db1ac106da541133decd1"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"dg_schema_history": 270,
|
||||
"md_ingestion_policy": 8,
|
||||
"sys_menu": 697,
|
||||
"sys_user": 1
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"tables": 640,
|
||||
"source_snapshot_sha256": "36dea99a7476d05242fc0a98214297fd1cb25da92578c20d370a65b35dde51f6",
|
||||
"metadata_policies_paused": 4,
|
||||
"source_changed": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"tables": 640,
|
||||
"sha256": "36dea99a7476d05242fc0a98214297fd1cb25da92578c20d370a65b35dde51f6",
|
||||
"bytes": 30507744,
|
||||
"method": "mysqldump single-transaction; source remains running"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"action": "apply",
|
||||
"domain": "data.baiher.cn",
|
||||
"after_sha256": "02efd690d5f06fb90de082e973a75a6204b61ef159c522022b49ce331be655e7",
|
||||
"other_routes_preserved": true,
|
||||
"certificate": "automatic HTTPS; verify external certificate separately"
|
||||
}
|
||||
二进制文件未显示。
|
之后 宽度: | 高度: | 大小: 81 KiB |
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"images": [
|
||||
"sha256:059ca6313125c9ec43854d87d10b0d52fbbe86e595afad89b04da3ad5e2a3fde",
|
||||
"sha256:2cd82336508d881bf5233d18e47fda09fcc2c883dc0645f4447d49e477ea30a8",
|
||||
"sha256:32eb16521791cd26d0e27a2118f55c676ed88ad4fbc0330fa615c3860693a157",
|
||||
"sha256:4d25e2fe601f7ffaeb4437cb6ced3518bc36edf34ebe98863c80836943d94529",
|
||||
"sha256:5824dd88695c49034694792d705d415a1d3fff2a4221fa4096c7eb0399530665",
|
||||
"sha256:639f1f4262a072c6580276a23274f28cfcb7b137f5d12653e628412fc27b3aa1",
|
||||
"sha256:65bc9a6efa9ed5d988cbac9ca7a848ca3ace2b6e03a403fc5592bc030092ef06",
|
||||
"sha256:716a26272a32ebb5ee04e2259a9cdddca90b6e1417e0289cd71e7cb9d68cc281",
|
||||
"sha256:8b04895ca54aed3c9a93b77a61dff470952331e57526a99a59a2b392d8634512",
|
||||
"sha256:a1625508de9327c68be9415ef35f537e0b5024749e88b45eff929a470becedde",
|
||||
"sha256:bf95e1899a18fc9b7ede608aba21eff0de9b3e5e0307f814fa3421a7de33be13",
|
||||
"sha256:c36050afdca850f23cef85703f84c7531a5ae155a11b5ee1c60acb09937c4084"
|
||||
],
|
||||
"transport": "direct SSH, restricted temporary key removed",
|
||||
"excluded_native_component_data": true
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"cause": "native AIO quota 65505/65536; first initialization failed before database creation",
|
||||
"change": "MySQL only: --innodb-use-native-aio=0",
|
||||
"preserved": "mysql-failed-init-auto.cnf",
|
||||
"host_or_other_projects_changed": false
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"version": "baiher-20261130-01",
|
||||
"target": "baiher",
|
||||
"source": "live test-v; source not stopped",
|
||||
"services": {
|
||||
"gateway": {
|
||||
"id": "sha256:32eb16521791cd26d0e27a2118f55c676ed88ad4fbc0330fa615c3860693a157",
|
||||
"platform": "linux/amd64",
|
||||
"artifact_path": "/aixun-datagov/app/app.jar",
|
||||
"artifact_sha256": "88b9ca5955d5f8035be9a7838919444c00ff0b722a53b2a0f5b47fcefd2560d4"
|
||||
},
|
||||
"auth": {
|
||||
"id": "sha256:5824dd88695c49034694792d705d415a1d3fff2a4221fa4096c7eb0399530665",
|
||||
"platform": "linux/amd64",
|
||||
"artifact_path": "/aixun-datagov/app/app.jar",
|
||||
"artifact_sha256": "4ddc245fe7edca8c6893dd9ef2a19608612c71885f541eeb5c18f82a2cc26ff5"
|
||||
},
|
||||
"system": {
|
||||
"id": "sha256:2cd82336508d881bf5233d18e47fda09fcc2c883dc0645f4447d49e477ea30a8",
|
||||
"platform": "linux/amd64",
|
||||
"artifact_path": "/aixun-datagov/app/app.jar",
|
||||
"artifact_sha256": "512b2eea0a1377d3b2b4078f8c650ec4fbde0445c5e226cf22d412137cd0aa06"
|
||||
},
|
||||
"resource": {
|
||||
"id": "sha256:65bc9a6efa9ed5d988cbac9ca7a848ca3ace2b6e03a403fc5592bc030092ef06",
|
||||
"platform": "linux/amd64",
|
||||
"artifact_path": "/aixun-datagov/app/app.jar",
|
||||
"artifact_sha256": "4d6733e1d234d35693f25b57f68c09a528595b7be5388368b5de46d13e589ba4"
|
||||
},
|
||||
"integration": {
|
||||
"id": "sha256:a1625508de9327c68be9415ef35f537e0b5024749e88b45eff929a470becedde",
|
||||
"platform": "linux/amd64",
|
||||
"artifact_path": "/aixun-datagov/app/app.jar",
|
||||
"artifact_sha256": "4aec2ac14e42e9eea6fcdaa843dfb948cbb519906e41c2bc45b8f3d1ad8b9d78"
|
||||
},
|
||||
"dataops": {
|
||||
"id": "sha256:639f1f4262a072c6580276a23274f28cfcb7b137f5d12653e628412fc27b3aa1",
|
||||
"platform": "linux/amd64",
|
||||
"artifact_path": "/aixun-datagov/app/app.jar",
|
||||
"artifact_sha256": "12f34df8ef63429e8584c70b3e3d74eeb3a7b8a5759283e28c74026687614e0e"
|
||||
},
|
||||
"governance": {
|
||||
"id": "sha256:bf95e1899a18fc9b7ede608aba21eff0de9b3e5e0307f814fa3421a7de33be13",
|
||||
"platform": "linux/amd64",
|
||||
"artifact_path": "/aixun-datagov/app/app.jar",
|
||||
"artifact_sha256": "842d54a726a19de78a51b8be570247479cbeca11b9154cf49ce233802a4a5f42"
|
||||
},
|
||||
"dataproduct": {
|
||||
"id": "sha256:8b04895ca54aed3c9a93b77a61dff470952331e57526a99a59a2b392d8634512",
|
||||
"platform": "linux/amd64",
|
||||
"artifact_path": "/aixun-datagov/app/app.jar",
|
||||
"artifact_sha256": "238d7e79fb3ca00093ad2cac085b5a1aa0a7cc8d37d583317e9bb40e2d98b36d"
|
||||
},
|
||||
"frontend": {
|
||||
"id": "sha256:9df6a397fd9a5acfc0fdab59751e02f1e757a99641ae102c2d6768d520b9319a",
|
||||
"platform": "linux/amd64",
|
||||
"artifact_path": "/opt/aixun-datagov/frontend-current",
|
||||
"artifact_sha256": "7d734228368ef39e0cd7489c08f9d6c33a55694e2807d82e1053893ec69155a8"
|
||||
}
|
||||
},
|
||||
"database_change": true,
|
||||
"config_change": true,
|
||||
"previous_version": null,
|
||||
"frontend_hash_method": "sha256 of sorted compact JSON mapping tar member names to file sha256"
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"frontend": {
|
||||
"image": "sha256:d92ac99cbd9e3ea4b43dc6bd9246677e27f6535ffe5a0f5e8b8e0d5f3aeb9cc3",
|
||||
"container": "9a3caeef271c8dfcb162b07ae791b873351123f6d803ca8fff4a9332b0a99d62"
|
||||
},
|
||||
"integration": {
|
||||
"image": "sha256:a1625508de9327c68be9415ef35f537e0b5024749e88b45eff929a470becedde",
|
||||
"container": "2a2032f46a5fb97136d0b626181342c1c420beae9b4374b7418361099990e13d"
|
||||
},
|
||||
"resource": {
|
||||
"image": "sha256:65bc9a6efa9ed5d988cbac9ca7a848ca3ace2b6e03a403fc5592bc030092ef06",
|
||||
"container": "dfb6817bf34eea1464e67cedb1c3b04b6abe70047d666c06a738de153480b755"
|
||||
},
|
||||
"dataops": {
|
||||
"image": "sha256:639f1f4262a072c6580276a23274f28cfcb7b137f5d12653e628412fc27b3aa1",
|
||||
"container": "38c0a2e99e1f4fbe9589d9ce871814569d7bd08d07143099b45ba25e2b252356"
|
||||
},
|
||||
"governance": {
|
||||
"image": "sha256:bf95e1899a18fc9b7ede608aba21eff0de9b3e5e0307f814fa3421a7de33be13",
|
||||
"container": "44c1041a73005e6bb92f83c1703e7e8729f826566f626004a1cca0acc8f22c2a"
|
||||
},
|
||||
"dataproduct": {
|
||||
"image": "sha256:8b04895ca54aed3c9a93b77a61dff470952331e57526a99a59a2b392d8634512",
|
||||
"container": "8498091a26d65a0fb14b54969fb494094b36797216d01fb9a885b25d69a8fdf7"
|
||||
},
|
||||
"gateway": {
|
||||
"image": "sha256:32eb16521791cd26d0e27a2118f55c676ed88ad4fbc0330fa615c3860693a157",
|
||||
"container": "b5eb61c61cd6f53b46d2153ea3d5c266f0d489776fce3561a4cfea2536d0de8e"
|
||||
},
|
||||
"system": {
|
||||
"image": "sha256:2cd82336508d881bf5233d18e47fda09fcc2c883dc0645f4447d49e477ea30a8",
|
||||
"container": "281dba6f1b8e1444364c3fea60cf7cb2ba9ca29f0754819f56b1bc34294e37e5"
|
||||
},
|
||||
"auth": {
|
||||
"image": "sha256:5824dd88695c49034694792d705d415a1d3fff2a4221fa4096c7eb0399530665",
|
||||
"container": "aa996ffc1142fe2015f1d167111ac22170e875f378c7f37f13113734da6a209d"
|
||||
},
|
||||
"m2-seatunnel": {
|
||||
"image": "sha256:716a26272a32ebb5ee04e2259a9cdddca90b6e1417e0289cd71e7cb9d68cc281",
|
||||
"container": "2d94991d81de738b46bbdc792636db73759ea0aca879f1135160d50036857632"
|
||||
},
|
||||
"m2-hive": {
|
||||
"image": "sha256:1f6e960ff19a915f8f21df796f6818921425ff3ec082b97b66198fe6b0ef0ba9",
|
||||
"container": "ae4cd73b5cfac7531ef0cbeeec517de63ef4de3342fd40491aa801e34b411531"
|
||||
},
|
||||
"m2-hive-metastore": {
|
||||
"image": "sha256:1f6e960ff19a915f8f21df796f6818921425ff3ec082b97b66198fe6b0ef0ba9",
|
||||
"container": "6c01d3233a5a2cf57bac226fb5aa10cabc0f6f56a1596826ac3293082ece47f3"
|
||||
},
|
||||
"m2-dolphinscheduler": {
|
||||
"image": "sha256:682d0c583f3066d20612d706537ebdb101b926d468c81eeb5e9575dff97f1f13",
|
||||
"container": "a1c8a014a186f30f455e0203e2acf40d0e78915356542790a50a12701a3b17a1"
|
||||
},
|
||||
"m2-hive-minio-bootstrap": {
|
||||
"image": "sha256:aead63c77f9db9107f1696fb08ecb0faeda23729cde94b0f663edf4fe09728e3",
|
||||
"container": "865f052e4c3375edea2a39812ec52d9d8bb85585f4a8b7c20def866a18f110f2"
|
||||
},
|
||||
"m2-hive-mysql": {
|
||||
"image": "sha256:4af1f8815716546f5b12410f7621f37f93db8dd11a184706ef59111930b8c2ff",
|
||||
"container": "08c88da7e13d979ceb0b14c5430fce82dbff850145c94ad0146dfab0077e2cef"
|
||||
},
|
||||
"m2-doris-be": {
|
||||
"image": "sha256:d911ae3826491598be4e383cba83011a266091b8fdc6c34c036280220cc4fea9",
|
||||
"container": "6b0a68ab10d9a1060acd565ad7c5f850cdf6147000f167e1843fcb127a5129fa"
|
||||
},
|
||||
"m2-hive-minio": {
|
||||
"image": "sha256:a1ea29fa28355559ef137d71fc570e508a214ec84ff8083e39bc5428980b015e",
|
||||
"container": "c9106b85fba8f0d6d9b5213c0d8239c11083ad70af88011f86b570930e8ff99e"
|
||||
},
|
||||
"m2-doris-fe": {
|
||||
"image": "sha256:390413325a93d9121768bda153ccaa3c7a8da4aa0fd2a466406cddc14a6399b2",
|
||||
"container": "ad9c66752d7c526fee7da495d775486c854790cccdf79f4f8e529be0c595d0db"
|
||||
},
|
||||
"redis": {
|
||||
"image": "sha256:4d25e2fe601f7ffaeb4437cb6ced3518bc36edf34ebe98863c80836943d94529",
|
||||
"container": "2105c58515b8d0e61fca63d1460c67c5cca5e9afa7f12f0cba27b5da0c7f32f4"
|
||||
},
|
||||
"mysql": {
|
||||
"image": "sha256:c36050afdca850f23cef85703f84c7531a5ae155a11b5ee1c60acb09937c4084",
|
||||
"container": "db7c8474dc1dea9707ec5fcf6bedfe78dcf3b35328784ee5ef13d8520dc4c195"
|
||||
},
|
||||
"nacos": {
|
||||
"image": "sha256:059ca6313125c9ec43854d87d10b0d52fbbe86e595afad89b04da3ad5e2a3fde",
|
||||
"container": "2484f2cbb26ff955c314f5f706d152e0a0f0eeaf56fd69f9c72513122a634408"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
{
|
||||
"frontend": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-11-12T11:56:01.129827732Z"
|
||||
},
|
||||
"integration": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-11-12T11:28:09.078505834Z"
|
||||
},
|
||||
"resource": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-11-12T11:28:09.068984939Z"
|
||||
},
|
||||
"dataops": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-11-12T11:28:09.085632359Z"
|
||||
},
|
||||
"governance": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-11-12T11:28:09.084266017Z"
|
||||
},
|
||||
"dataproduct": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-11-12T11:28:09.087109272Z"
|
||||
},
|
||||
"gateway": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-11-04T02:27:14.061930227Z"
|
||||
},
|
||||
"system": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-29T04:20:03.868514511Z"
|
||||
},
|
||||
"auth": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-29T04:20:03.838177816Z"
|
||||
},
|
||||
"m2-seatunnel": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-14T06:30:33.562838689Z"
|
||||
},
|
||||
"m2-hive": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-10T09:00:39.092085726Z"
|
||||
},
|
||||
"m2-hive-metastore": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-10T09:00:18.120654856Z"
|
||||
},
|
||||
"m2-dolphinscheduler": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-29T04:16:23.574636692Z"
|
||||
},
|
||||
"m2-hive-minio-bootstrap": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-10T07:47:15.554507484Z"
|
||||
},
|
||||
"m2-hive-mysql": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-10T07:47:09.65504953Z"
|
||||
},
|
||||
"m2-doris-be": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-10T07:47:10.15290771Z"
|
||||
},
|
||||
"m2-hive-minio": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-10T07:47:09.653619664Z"
|
||||
},
|
||||
"m2-doris-fe": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-10T07:33:33.51388307Z"
|
||||
},
|
||||
"redis": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-10T07:05:10.275042899Z"
|
||||
},
|
||||
"mysql": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-10T07:05:21.441800861Z"
|
||||
},
|
||||
"nacos": {
|
||||
"same_container": true,
|
||||
"same_image": true,
|
||||
"running": true,
|
||||
"started": "2026-10-10T07:05:10.280356978Z"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"health": {
|
||||
"gateway": "PASS",
|
||||
"auth": "PASS",
|
||||
"system": "PASS",
|
||||
"resource": "PASS",
|
||||
"integration": "PASS",
|
||||
"dataops": "PASS",
|
||||
"governance": "PASS",
|
||||
"dataproduct": "PASS",
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"images": {
|
||||
"gateway": true,
|
||||
"auth": true,
|
||||
"system": true,
|
||||
"resource": true,
|
||||
"integration": true,
|
||||
"dataops": true,
|
||||
"governance": true,
|
||||
"dataproduct": true,
|
||||
"frontend": true
|
||||
},
|
||||
"tables": 640,
|
||||
"metadata_policies_enabled": 0,
|
||||
"database_events": 0,
|
||||
"discovery": {
|
||||
"aixun-datagov-gateway": 1,
|
||||
"aixun-datagov-auth": 1,
|
||||
"aixun-datagov-system": 1,
|
||||
"aixun-datagov-resource": 1,
|
||||
"aixun-integration": 1,
|
||||
"aixun-dataops": 1,
|
||||
"aixun-governance": 1,
|
||||
"aixun-dataproduct": 1
|
||||
},
|
||||
"anonymous_denied": true,
|
||||
"login": true,
|
||||
"api": {
|
||||
"identity": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"menus": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"integration": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"dataops": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"governance": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
},
|
||||
"dataproduct": {
|
||||
"http": 200,
|
||||
"code": 200,
|
||||
"pass": true
|
||||
}
|
||||
},
|
||||
"https": {
|
||||
"verified": true,
|
||||
"san": [
|
||||
[
|
||||
"DNS",
|
||||
"data.baiher.cn"
|
||||
]
|
||||
],
|
||||
"expires": "Feb 28 08:22:19 2027 GMT"
|
||||
},
|
||||
"native_component_data": "NOT_COPIED: source cannot stop; user limited scope to applications and platform database",
|
||||
"business_uat": "NOT_RUN",
|
||||
"status": "PASS_WITH_LIMITATION"
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"base_image": "sha256:d92ac99cbd9e3ea4b43dc6bd9246677e27f6535ffe5a0f5e8b8e0d5f3aeb9cc3",
|
||||
"image": "sha256:8f92dcc9a1330c67470c46dbeedb84b8b1612e947c85b8e79ce7c518419a5afd",
|
||||
"tag": "aixun-datagov/frontend:baiher-20261130-02",
|
||||
"changed": {
|
||||
"index.html": {
|
||||
"before": "53ebc5c3149980d8ed58c01474a474f21dfd1b3cbc802aacb4a1d4b47c7eac30",
|
||||
"after": "db04e3ffe639bf429592adaf54a90da8a3c37885f8f803e11bffca6b855bb350"
|
||||
},
|
||||
"login-scene/scene.js": {
|
||||
"before": "1de4183cb5d6b5f4659268ab8e2ee687bfa07f3638e788042e79b3e124239ae8",
|
||||
"after": "41326ed7baf61ed4ee2b14467cc057d5aa27f65b051e2511c7151af741d12457"
|
||||
},
|
||||
"assets/user-Px4Jhzv2.js": {
|
||||
"before": "cdc6e384c01a31bfc8717c2a6f6a8487a43b6aa37b285a7fcdd9c2a65188aae2",
|
||||
"after": "de2d6c290c567d95fa9279da65a2715dc7cfd3bbf7573db8ed2244bbff37eff7"
|
||||
},
|
||||
"assets/LoginScene-qvUah0bd.js": {
|
||||
"before": "1ff5bc0d4673737b5e7b4230647db3b42dc36831927329d39fc3de8f6f8106b2",
|
||||
"after": "4c5e63be66437a070c33c31b8e55990ddfe97285b8fcd4fdbe235b25d9a923be"
|
||||
},
|
||||
"assets/login-PFSvmW3x.js": {
|
||||
"before": "89ae4a549f1fd40b4dc494d0fc06c423aa946d7af531bef02e608dbdaa2f31c3",
|
||||
"after": "261f15567c7b66a94144a9783b750ea1e93fb701317447862bb57f33521fd093"
|
||||
},
|
||||
"branding/baiher/mark.png": {
|
||||
"after": "5478371a5ee23ee33ba61b4bfedfb4679372dd64dfb3d31ecc2c6400793ef33e"
|
||||
},
|
||||
"login-scene/group-logo.png": {
|
||||
"after": "f0380ff0b6632d4ef0d1e7afabdc4dd89c765e19b8770a16399622b239f9b624"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"version": "baiher-20261130-02",
|
||||
"target": "baiher",
|
||||
"services": {
|
||||
"frontend": {
|
||||
"tag": "aixun-datagov/frontend:baiher-20261130-02",
|
||||
"id": "sha256:8f92dcc9a1330c67470c46dbeedb84b8b1612e947c85b8e79ce7c518419a5afd",
|
||||
"artifact_sha256": "5aa2630fa9b4d1272051d8b06e8e38e25421781a62fc5853a2631a55175b3e8c",
|
||||
"platform": "linux/amd64",
|
||||
"source": "aixun-datagov/frontend:baiher-20261130-02",
|
||||
"artifact_path": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
},
|
||||
"expected_remote": {
|
||||
"frontend": {
|
||||
"container": "3d9aaa8a1e76647a80f3ff35efa166e4451b8a58fc068a9e73978f04094d28ec",
|
||||
"image": "sha256:9df6a397fd9a5acfc0fdab59751e02f1e757a99641ae102c2d6768d520b9319a"
|
||||
}
|
||||
},
|
||||
"database_change": false,
|
||||
"config_change": false,
|
||||
"transfer_sha256": "6f7c0357db9cd1b232d59ee15273b1c770df350914d0a7c6e34445689e6e444b"
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"version": "baiher-20261130-02",
|
||||
"action": "rollback",
|
||||
"health": {
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"after": {
|
||||
"frontend": {
|
||||
"container": "c1cfccdb446f0f6cfd849fc4de85d0a9d19648d1445d5eb4b7a708d6da549f0f",
|
||||
"image": "sha256:9df6a397fd9a5acfc0fdab59751e02f1e757a99641ae102c2d6768d520b9319a",
|
||||
"networks": {
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "df8efd5368ac3bbefd1a387efc4139a0db543acfcd8faf32a46a5208b6b61b03",
|
||||
"ip": "192.168.97.2"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/nginx/frontend.conf",
|
||||
"Destination": "/etc/nginx/conf.d/default.conf",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-frontend-assets",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-frontend-assets/_data",
|
||||
"Destination": "/usr/share/nginx/html",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"80/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "9640357ccbc6fdf19a65d2ea1187930695afbe64a5f9d11fcaf71b355d5ac00c"
|
||||
}
|
||||
},
|
||||
"status": "PASS",
|
||||
"business_uat": "NOT_RUN"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
# 百赫登录页版权名称
|
||||
|
||||
用户要求将登录页右下角名称改为“北京百赫科技有限公司”。目标 baiher / https://data.baiher.cn;最终版本 baiher-20261130-03,仅发布 frontend。
|
||||
|
||||
- 品牌构建脚本已更新;本次基于已部署的 baiher-20261130-01 前端镜像生成增量品牌层,不使用本地后来修改的业务源码。
|
||||
- 修改后的不可变 JS 资源及其引用使用新版本文件名,保留旧资源以支持缓存及回退。后续品牌构建使用 `python3 script/datagov/remote/brands/baiher/build.py 唯一版本 --base 当前前端镜像SHA`。
|
||||
- 初次 baiher-20261130-02 因原 JS 文件名不变触发静态资源冲突保护,前端暂时不可用;容器重启时 IP 为空,发布器因此拒绝自动恢复。核对网络 ID、预设 IP、配置及迁移历史未变后,执行 `rollback baiher-20261130-02`,上一版健康恢复;修正版重新绑定恢复后的容器身份再发布。没有循环重试失败 apply。
|
||||
- 源码/制品 PASS:定向文件检查、品牌镜像构建、传输 SHA-256 与镜像身份核验通过。最终镜像 `sha256:24e7397a597beb66b3a2c8f03e1456f772f40f8b149fb5b9a786ead0bf2a594d`。
|
||||
- 远程部署 PASS:frontend 健康,原网络/IP、挂载和端口保持,见 result.json。后台、数据库、源站未更新;无迁移。
|
||||
- Browser PASS:登录页实际显示 `© 2026 北京百赫科技有限公司`,见 login.jpg;原图标及登录标题保留。完整业务回归和人工 UAT 为 NOT_RUN。
|
||||
- 无镜像传输包残留;失败的 02 中间镜像清理,保留 03 当前版本和 01 可用恢复版本。
|
||||
|
||||
恢复命令(项目根目录):
|
||||
|
||||
```sh
|
||||
./script/datagov/deploy-remote.sh --target baiher rollback baiher-20261130-03
|
||||
```
|
||||
|
||||
此命令仅恢复 frontend 至本次发布前的 01 镜像,执行前自动检查数据库历史和配置兼容性;不恢复数据库,不整栈重启。
|
||||
文件差异内容过多而无法显示
加载差异
二进制文件未显示。
|
之后 宽度: | 高度: | 大小: 90 KiB |
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"version": "baiher-20261130-03",
|
||||
"target": "baiher",
|
||||
"services": {
|
||||
"frontend": {
|
||||
"tag": "aixun-datagov/frontend:baiher-20261130-03",
|
||||
"id": "sha256:24e7397a597beb66b3a2c8f03e1456f772f40f8b149fb5b9a786ead0bf2a594d",
|
||||
"artifact_sha256": "c8917cd271aab79300043af20454104bad5016ef822c06050bdc1864a9b24ba3",
|
||||
"platform": "linux/amd64",
|
||||
"source": "aixun-datagov/frontend:baiher-20261130-03",
|
||||
"artifact_path": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
},
|
||||
"expected_remote": {
|
||||
"frontend": {
|
||||
"container": "c1cfccdb446f0f6cfd849fc4de85d0a9d19648d1445d5eb4b7a708d6da549f0f",
|
||||
"image": "sha256:9df6a397fd9a5acfc0fdab59751e02f1e757a99641ae102c2d6768d520b9319a"
|
||||
}
|
||||
},
|
||||
"database_change": false,
|
||||
"config_change": false,
|
||||
"transfer_sha256": "d1fe52e39f1438520d8432ee572947f9ccfc798c513ecb8eee8fbb747b56ed7c",
|
||||
"request": "User requested login footer company name \u5317\u4eac\u767e\u8d6b\u79d1\u6280\u6709\u9650\u516c\u53f8; plan refreshed after verified recovery of failed brand update"
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"version": "baiher-20261130-03",
|
||||
"action": "apply",
|
||||
"health": {
|
||||
"frontend": "PASS"
|
||||
},
|
||||
"after": {
|
||||
"frontend": {
|
||||
"container": "1e11b7ac7d08ca3d40fbd5e2b01572cb699e564e43170527d168b4e53bd666f7",
|
||||
"image": "sha256:24e7397a597beb66b3a2c8f03e1456f772f40f8b149fb5b9a786ead0bf2a594d",
|
||||
"networks": {
|
||||
"aixun-datagov-local-frontend": {
|
||||
"id": "df8efd5368ac3bbefd1a387efc4139a0db543acfcd8faf32a46a5208b6b61b03",
|
||||
"ip": "192.168.97.2"
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"Type": "bind",
|
||||
"Source": "/opt/aixun-datagov/nginx/frontend.conf",
|
||||
"Destination": "/etc/nginx/conf.d/default.conf",
|
||||
"Mode": "ro",
|
||||
"RW": false,
|
||||
"Propagation": "rprivate"
|
||||
},
|
||||
{
|
||||
"Type": "volume",
|
||||
"Name": "aixun-datagov-local-frontend-assets",
|
||||
"Source": "/var/lib/docker/volumes/aixun-datagov-local-frontend-assets/_data",
|
||||
"Destination": "/usr/share/nginx/html",
|
||||
"Driver": "local",
|
||||
"Mode": "rw",
|
||||
"RW": true,
|
||||
"Propagation": ""
|
||||
}
|
||||
],
|
||||
"ports": {
|
||||
"80/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "28000"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_sha256": "abc3a09ddbe12a82461a698ad69d2cdae1d31c7991c1654bc8c641ececc6c750"
|
||||
}
|
||||
},
|
||||
"status": "PASS",
|
||||
"business_uat": "NOT_RUN"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
# 百赫登录页 Logo 缩小
|
||||
|
||||
用户反馈登录页左上角 Logo 过大。目标 baiher / https://data.baiher.cn,最终版本 baiher-20261130-04,仅发布 frontend。
|
||||
|
||||
- 基于线上 03 镜像更新 index.html 品牌样式,宽度从 `clamp(210px,22vw,320px)` 改为 `clamp(160px,14vw,220px)`;保持图片比例、位置、公司名称和其他页面内容。新增 `--style-only` 避免样式调整重写已发布 JS 资源。
|
||||
- 源码/制品 PASS:定向文件检查及品牌层构建通过,镜像/制品/传输校验值见 release.json;镜像 `sha256:fbc2d9897202e09d86b9c45322e464664a20598ce9c00814a2c805082f38fcef`。
|
||||
- 远程部署 PASS:通过现有 prepare / transfer / apply,前端健康,网络/IP/挂载/端口保持。后台、数据库和源站未更新,无迁移。
|
||||
- Browser PASS:1920×1000 视口下 Logo 实测由 320×122.23px 变为 220×84.03px,宽度缩小 31.25%;实际页面截图 login.jpg。完整业务及人工 UAT 为 NOT_RUN。
|
||||
- 本地与远程传输包自动清理;保留 03 上一可用镜像。
|
||||
|
||||
恢复:在项目根目录执行 `./script/datagov/deploy-remote.sh --target baiher rollback baiher-20261130-04`,只恢复前端到 03,工具执行前检查数据库历史及配置兼容性。
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"base_image": "sha256:24e7397a597beb66b3a2c8f03e1456f772f40f8b149fb5b9a786ead0bf2a594d",
|
||||
"image": "sha256:fbc2d9897202e09d86b9c45322e464664a20598ce9c00814a2c805082f38fcef",
|
||||
"tag": "aixun-datagov/frontend:baiher-20261130-04",
|
||||
"changed": {
|
||||
"index.html": {
|
||||
"before": "371f52d4d125e34601c80bd500571e77e1cf03088ebd71a92193a0ed79c5141f",
|
||||
"after": "5a0bd18b304283a847a79c8408bde006abc8e160906d70c92b7f3d848ef65205"
|
||||
},
|
||||
"branding/baiher/mark.png": {
|
||||
"after": "5478371a5ee23ee33ba61b4bfedfb4679372dd64dfb3d31ecc2c6400793ef33e"
|
||||
},
|
||||
"login-scene/group-logo.png": {
|
||||
"after": "f0380ff0b6632d4ef0d1e7afabdc4dd89c765e19b8770a16399622b239f9b624"
|
||||
}
|
||||
}
|
||||
}
|
||||
某些文件未显示,因为此 diff 中更改的文件太多 显示更多
在新工单中引用
屏蔽一个用户