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.
This commit is contained in:
42
scripts/deployment/deploy-tokenization-service.sh
Executable file
42
scripts/deployment/deploy-tokenization-service.sh
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Deploy Financial Tokenization Service
|
||||
# This script deploys the tokenization service to Kubernetes
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source "$SCRIPT_DIR/../lib/init.sh"
|
||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
||||
|
||||
# Configuration
|
||||
NAMESPACE="${NAMESPACE:-besu-network}"
|
||||
FIREFLY_API_URL="${FIREFLY_API_URL:-http://firefly-api.firefly.svc.cluster.local:5000}"
|
||||
BESU_RPC_URL="${BESU_RPC_URL:-http://besu-rpc-service:8545}"
|
||||
|
||||
|
||||
log_success "Deploying Financial Tokenization Service..."
|
||||
|
||||
# Check prerequisites
|
||||
if ! command -v kubectl &> /dev/null; then
|
||||
log_error "Error: kubectl not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Build Docker image (if needed)
|
||||
if [ "$BUILD_IMAGE" == "true" ]; then
|
||||
log_warn "Building Docker image..."
|
||||
docker build -t financial-tokenization-service:v1.0.0 "$PROJECT_ROOT/services/financial-tokenization"
|
||||
fi
|
||||
|
||||
# Deploy service
|
||||
log_warn "Deploying service..."
|
||||
kubectl apply -f "$PROJECT_ROOT/services/financial-tokenization/k8s/deployment.yaml"
|
||||
|
||||
# Wait for service to be ready
|
||||
log_warn "Waiting for service to be ready..."
|
||||
kubectl wait --for=condition=ready pod -l app=financial-tokenization-service -n "$NAMESPACE" --timeout=300s
|
||||
|
||||
log_success "Financial Tokenization Service deployed successfully!"
|
||||
log_warn "Service URL: http://financial-tokenization-service.$NAMESPACE.svc.cluster.local:8080"
|
||||
|
||||
Reference in New Issue
Block a user