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

57 lines
1.7 KiB
Bash
Executable File

#!/usr/bin/env bash
# Deploy Hyperledger Cacti
# This script deploys Cacti 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:-cacti}"
BESU_RPC_URL="${BESU_RPC_URL:-http://besu-rpc-service.besu-network.svc.cluster.local:8545}"
BESU_WS_URL="${BESU_WS_URL:-ws://besu-rpc-service.besu-network.svc.cluster.local:8546}"
CHAIN_ID="${CHAIN_ID:-138}"
log_success "Deploying Hyperledger Cacti..."
# Check prerequisites
if ! command -v kubectl &> /dev/null; then
log_error "Error: kubectl not found"
exit 1
fi
# Create namespace
log_warn "Creating namespace..."
kubectl apply -f "$PROJECT_ROOT/k8s/cacti/namespace.yaml"
# Update ConfigMap with Besu RPC URLs
log_warn "Updating ConfigMap..."
kubectl create configmap cactus-config \
--from-file="$PROJECT_ROOT/k8s/cacti/configmap.yaml" \
--namespace="$NAMESPACE" \
--dry-run=client -o yaml | kubectl apply -f -
# Deploy Cactus API
log_warn "Deploying Cactus API..."
kubectl apply -f "$PROJECT_ROOT/k8s/cacti/cactus-api.yaml"
# Wait for Cactus API to be ready
log_warn "Waiting for Cactus API to be ready..."
kubectl wait --for=condition=ready pod -l app=cactus-api -n "$NAMESPACE" --timeout=300s
# Deploy Besu Connector
log_warn "Deploying Besu Connector..."
kubectl apply -f "$PROJECT_ROOT/k8s/cacti/besu-connector.yaml"
# Wait for Besu Connector to be ready
log_warn "Waiting for Besu Connector to be ready..."
kubectl wait --for=condition=ready pod -l app=cactus-besu-connector -n "$NAMESPACE" --timeout=300s
log_success "Cacti deployed successfully!"
log_warn "Cactus API: http://cactus-api.$NAMESPACE.svc.cluster.local:4000"