XuqmGroup-PrivateDeploy/scripts
徐勤民 f6189a5283 feat: harden deployment scripts and add tenant migration
Issues found during P5-01 acceptance testing on WSL2:

configure.sh: sync MySQL/Redis host/port into config/xuqm.env (was
  only writing to .env, leaving xuqm.env with hardcoded 127.0.0.1).

install.sh: add docker login step before compose up; reads
  REGISTRY_USER/REGISTRY_PASSWORD from .env; --skip-registry-login
  flag for offline bundles or pre-authenticated environments.

healthcheck.sh: move docs-site from required to optional container
  list (image may not exist in all ACR namespaces); add localhost
  fallback URL for actuator/health when CONSOLE_DOMAIN is not set;
  add PRIVATE mode verification via /api/private/deployment/status.

scripts/migrate-tenant.sh (new): migrates a single tenant from the
  public platform MySQL to the private deployment. Exports t_tenant,
  t_app, t_feature_service with explicit column names to survive
  schema-order differences; supports --dry-run, --reset-password,
  managed/external destination MySQL, and restarts tenant-service
  after applying.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 00:27:10 +08:00
..
alert-webhook.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00
backup.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00
bench.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00
configure.sh feat: harden deployment scripts and add tenant migration 2026-05-19 00:27:10 +08:00
disable-service.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00
doctor.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00
enable-service.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00
export-offline-bundle.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00
healthcheck.sh feat: harden deployment scripts and add tenant migration 2026-05-19 00:27:10 +08:00
install-mysql.sh chore: scaffold private deployment repository 2026-05-18 19:49:31 +08:00
install-redis.sh chore: scaffold private deployment repository 2026-05-18 19:49:31 +08:00
install.sh feat: harden deployment scripts and add tenant migration 2026-05-19 00:27:10 +08:00
lib.sh chore: scaffold private deployment repository 2026-05-18 19:49:31 +08:00
migrate-tenant.sh feat: harden deployment scripts and add tenant migration 2026-05-19 00:27:10 +08:00
render-config.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00
renew-cert.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00
restore.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00
rollback.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00
rotate-secrets.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00
upgrade.sh feat: implement complete private deployment scripts (P1-P4) 2026-05-18 20:49:25 +08:00