Files
smom-dbis-138/scripts/fix-image-versions.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

42 lines
1.5 KiB
Bash
Executable File

#!/usr/bin/env bash
# Fix image versions - Replace :latest with specific versions
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/../lib/init.sh"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
# Image versions
BESU_VERSION="23.10.0"
BLOCKSCOUT_VERSION="v5.1.5"
PROMETHEUS_VERSION="v2.45.0"
BUSYBOX_VERSION="1.36"
echo "Fixing image versions..."
# Fix Besu images
find "$PROJECT_ROOT/k8s" -name "*.yaml" -type f -exec sed -i "s|hyperledger/besu:latest|hyperledger/besu:${BESU_VERSION}|g" {} \;
find "$PROJECT_ROOT/helm" -name "*.yaml" -type f -exec sed -i "s|hyperledger/besu:latest|hyperledger/besu:${BESU_VERSION}|g" {} \;
# Fix Blockscout images
find "$PROJECT_ROOT/k8s" -name "*.yaml" -type f -exec sed -i "s|blockscout/blockscout:latest|blockscout/blockscout:${BLOCKSCOUT_VERSION}|g" {} \;
# Fix Prometheus images
find "$PROJECT_ROOT/monitoring" -name "*.yaml" -type f -exec sed -i "s|prom/prometheus:latest|prom/prometheus:${PROMETHEUS_VERSION}|g" {} \;
# Fix Busybox images
find "$PROJECT_ROOT/k8s" -name "*.yaml" -type f -exec sed -i "s|busybox:latest|busybox:${BUSYBOX_VERSION}|g" {} \;
find "$PROJECT_ROOT/helm" -name "*.yaml" -type f -exec sed -i "s|busybox:latest|busybox:${BUSYBOX_VERSION}|g" {} \;
# Fix Helm values
sed -i "s|tag: latest|tag: ${BESU_VERSION}|g" "$PROJECT_ROOT/helm/besu-network/values.yaml"
echo "✓ Image versions fixed"
echo "Besu: ${BESU_VERSION}"
echo "Blockscout: ${BLOCKSCOUT_VERSION}"
echo "Prometheus: ${PROMETHEUS_VERSION}"
echo "Busybox: ${BUSYBOX_VERSION}"