Files
smom-dbis-138/scripts/deployment/deploy-all-phases.sh
defiQUG 1fb7266469 Add Oracle Aggregator and CCIP Integration
- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control.
- Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities.
- Created .gitmodules to include OpenZeppelin contracts as a submodule.
- Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment.
- Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks.
- Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring.
- Created scripts for resource import and usage validation across non-US regions.
- Added tests for CCIP error handling and integration to ensure robust functionality.
- Included various new files and directories for the orchestration portal and deployment scripts.
2025-12-12 14:57:48 -08:00

68 lines
1.9 KiB
Bash
Executable File

#!/usr/bin/env bash
# Master deployment script for Chain-138 multi-region network
# Deploys all phases in sequence with verification
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/../lib/init.sh"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
source "$PROJECT_ROOT/.env" 2>/dev/null || true
echo "=== Chain-138 Multi-Region Deployment ==="
echo "This script will deploy:"
echo " • 24 AKS clusters across 24 regions"
echo " • 72 system nodes"
echo " • 48 validator nodes"
echo " • Besu network with 48 validators"
echo " • Smart contracts (CCIP, Bridges)"
read -p "Continue? (y/N) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Deployment cancelled"
exit 1
fi
# Phase 1: Infrastructure
echo "=== Phase 1: Infrastructure Deployment ==="
cd "$PROJECT_ROOT/terraform/well-architected/cloud-sovereignty"
terraform init
terraform plan -out=tfplan-all
terraform apply tfplan-all
# Phase 2: Verify Infrastructure
echo "=== Phase 2: Infrastructure Verification ==="
"$SCRIPT_DIR/verify-infrastructure.sh"
# Phase 3: Kubernetes Configuration
echo "=== Phase 3: Kubernetes Configuration ==="
"$SCRIPT_DIR/configure-kubernetes.sh"
# Phase 4: Besu Network Deployment
echo "=== Phase 4: Besu Network Deployment ==="
"$SCRIPT_DIR/deploy-besu-network.sh"
# Phase 5: Smart Contract Deployment
echo "=== Phase 5: Smart Contract Deployment ==="
"$SCRIPT_DIR/deploy-contracts.sh"
# Phase 6: CCIP Integration
echo "=== Phase 6: CCIP Integration ==="
"$SCRIPT_DIR/configure-ccip.sh"
# Phase 7: Monitoring
echo "=== Phase 7: Monitoring Setup ==="
"$SCRIPT_DIR/deploy-monitoring.sh"
# Phase 8: Verification
echo "=== Phase 8: Final Verification ==="
"$SCRIPT_DIR/verify-complete-deployment.sh"
echo "=== ✅ DEPLOYMENT COMPLETE ==="
echo "Next steps:"
echo " 1. Review monitoring dashboards"
echo " 2. Run test transactions"
echo " 3. Verify consensus network"
echo " 4. Test CCIP integration"