Files
smom-dbis-138/scripts/deployment/deploy-phase2-from-proxy.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

52 lines
1.8 KiB
Bash
Executable File

#!/usr/bin/env bash
# Deploy Phase 2 from Nginx proxy host
# This script should be run on the proxy host (20.160.58.99) after copying the project
# Usage: ssh besuadmin@20.160.58.99, then run this script
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
cd "$PROJECT_ROOT"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Phase 2 Deployment from Proxy Host"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
# Check if .env exists
if [ ! -f .env ]; then
echo "Error: .env file not found"
echo "Please ensure .env is available on this host"
exit 1
fi
source .env
# Change to Phase 2 directory
cd terraform/phases/phase2
# Initialize Terraform if needed
if [ ! -d .terraform ]; then
echo "Initializing Terraform..."
terraform init -upgrade > /dev/null 2>&1
fi
# Deploy (no bastion needed since we're already on the proxy)
echo "Deploying Phase 2 to all 5 regions..."
echo "Running from proxy host - direct access to private IPs"
echo ""
terraform apply -auto-approve
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "✅ Phase 2 Deployment Complete"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo "Next steps:"
echo "1. Start services: ./terraform/phases/phase2/scripts/start-services.sh all"
echo "2. Check status: ./terraform/phases/phase2/scripts/status.sh all"