refactor(omnl-portal): retire Ali naming in docs and LXC sync path
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m35s
CI/CD Pipeline / Security Scanning (push) Successful in 2m46s
CI/CD Pipeline / Lint and Format (push) Failing after 53s
CI/CD Pipeline / Terraform Validation (push) Failing after 31s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 30s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 50s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 36s
Validation / validate-genesis (push) Successful in 32s
Validation / validate-terraform (push) Failing after 31s
Validation / validate-kubernetes (push) Failing after 14s
Validation / validate-smart-contracts (push) Failing after 16s
Validation / validate-security (push) Failing after 1m38s
Validation / validate-documentation (push) Failing after 26s
Verify Deployment / Verify Deployment (push) Failing after 1m0s

Redirect legacy ALI_* docs to Zardasht canonical workflow, delegate sync-ali
to proxmox zardasht:banking-portal:sync, and align host config with
/srv/zardasht-portal deploy root.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
defiQUG
2026-07-01 10:12:27 -07:00
parent d80ebe146a
commit 2b72242eb6
7 changed files with 137 additions and 254 deletions

View File

@@ -22,6 +22,7 @@ bash scripts/deployment/deploy-omnl-domains.sh
log "=== 3/5 Sync banking portal LXCs (5825-5828) ==="
bash scripts/deployment/sync-ali-omnl-banking-portal-lxcs.sh --apply
# Prefer from proxmox: pnpm zardasht:banking-portal:sync
log "=== 4/5 Push Fineract/API env to each LXC ==="
if [[ -f "$ENV_FILE" ]]; then

View File

@@ -1,79 +1,9 @@
#!/usr/bin/env bash
# Sync OMNL banking portal to banking LXCs via Proxmox pct.
# DEPRECATED — delegates to proxmox zardasht sync (canonical LXC deploy path).
set -euo pipefail
REPO_DIR="${OMNL_BANK_ROOT:-$HOME/smom-dbis-138}"
DEPLOY_SCRIPT="${REPO_DIR}/scripts/deployment/deploy-omnl-banking-portal-pct.sh"
LXC_CONFIG="${OMNL_BANKING_LXC_CONFIG:-$REPO_DIR/config/omnl-banking-portal-lxcs.v1.json}"
APPLY=false
if [[ "${1:-}" == "--apply" ]]; then
APPLY=true
fi
log() { echo "[$(date -Iseconds)] $*"; }
if [[ ! -f "$DEPLOY_SCRIPT" ]]; then
echo "Missing deploy script: $DEPLOY_SCRIPT" >&2
exit 1
fi
read_ctids() {
if [[ -n "${OMNL_BANKING_LXC_CTIDS:-}" ]]; then
# shellcheck disable=SC2206
CTIDS=(${OMNL_BANKING_LXC_CTIDS})
return
fi
if command -v node >/dev/null 2>&1 && [[ -f "$LXC_CONFIG" ]]; then
mapfile -t CTIDS < <(node -e "
const c=require(process.argv[1]);
for (const x of c.containers||[]) console.log(x.ctid);
" "$LXC_CONFIG")
return
fi
CTIDS=(5825 5826 5827 5828)
}
read_ctids
# shellcheck source=lib/omnl-pve-ssh.sh
source "${REPO_DIR}/scripts/deployment/lib/omnl-pve-ssh.sh"
omnl_pve_preflight
log "OMNL banking LXC sync — CTIDs: ${CTIDS[*]}"
log "Mode: $(if $APPLY; then echo APPLY; else echo DRY-RUN; fi)"
log "Repo: $REPO_DIR"
log "Config: $LXC_CONFIG"
log "PVE: ${OMNL_PVE_SSH_TARGET} (sudo prefix: ${OMNL_PVE_SSH_PREFIX[*]:-none})"
if $APPLY; then
log "Using stack built in step 1 — skip duplicate full deploy"
export OMNL_SKIP_BUILD=1
fi
synced=0
skipped=0
for CTID in "${CTIDS[@]}"; do
if $APPLY; then
log "Deploying CT $CTID..."
set +e
OMNL_SKIP_BUILD=1 OMNL_PCT_CTID="$CTID" OMNL_BANK_ROOT="$REPO_DIR" bash "$DEPLOY_SCRIPT"
rc=$?
set -e
if [[ $rc -eq 0 ]]; then
synced=$((synced + 1))
elif [[ $rc -eq 2 ]]; then
skipped=$((skipped + 1))
else
log "WARN: deploy failed for CT $CTID (exit $rc, continuing)"
fi
else
log "Would deploy CT $CTID → /srv/ali-portal (pct exec on ${OMNL_PVE_SSH_TARGET})"
fi
done
if $APPLY; then
log "Synced ${synced}/${#CTIDS[@]} banking LXCs (${skipped} skipped)."
else
log "Dry-run complete. Re-run with --apply to deploy."
echo "DEPRECATED: sync-ali-omnl-banking-portal-lxcs.sh — use pnpm zardasht:banking-portal:sync from proxmox repo" >&2
PROXMOX_ROOT="${PROXMOX_ROOT:-/srv/projects/proxmox}"
if [[ ! -f "${PROXMOX_ROOT}/scripts/deployment/sync-zardasht-omnl-banking-portal-lxcs.sh" ]]; then
PROXMOX_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../.." && pwd)"
fi
exec bash "${PROXMOX_ROOT}/scripts/deployment/sync-zardasht-omnl-banking-portal-lxcs.sh" "$@"