Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
5.3 KiB
5.3 KiB
Unified Framework Usage Guide
Last Updated: 2026-01-31
Document Version: 1.0
Status: Active Documentation
Date: 2026-01-22
Purpose: Complete guide for using the 5 unified frameworks
Overview
Five unified frameworks consolidate 378+ scripts into parameterized, maintainable tools:
verify-all.sh- Verification frameworklist.sh- Listing frameworkfix-all.sh- Fix frameworkconfigure.sh- Configuration frameworkdeploy.sh- Deployment framework
1. verify-all.sh
Purpose
Consolidates all verification, checking, and validation scripts.
Usage
./scripts/verify-all.sh [component] [type] [host]
Examples
# Verify all components
./scripts/verify-all.sh all
# Verify services
./scripts/verify-all.sh service status
# Verify network connectivity
./scripts/verify-all.sh network connectivity
# Verify specific container
./scripts/verify-all.sh container 5000
Components
all- Verify all componentsservice- Verify services (PostgreSQL, Redis, etc.)network- Verify network configurationconfig- Verify configuration filescontainer- Verify containers/VMsstorage- Verify storagessl- Verify SSL certificatestunnel- Verify Cloudflare tunnelsrpc- Verify RPC nodesblockscout- Verify Blockscout explorer
2. list.sh
Purpose
Consolidates all listing, showing, and getting scripts.
Usage
./scripts/list.sh [type] [filter] [host]
Examples
# List all
./scripts/list.sh all
# List containers
./scripts/list.sh containers
# List running containers
./scripts/list.sh containers running
# List VMs on specific host
./scripts/list.sh vms r630-01
Types
all- List allvms- List VMscontainers- List containersservices- List servicesnetwork- List network configurationconfig- List configuration filesstorage- List storagescripts- List scripts
3. fix-all.sh
Purpose
Consolidates all fix scripts into one parameterized framework.
Usage
./scripts/fix-all.sh [issue-type] [component] [host] [--dry-run]
Examples
# Fix all issues
./scripts/fix-all.sh all
# Fix service issues
./scripts/fix-all.sh service postgresql 10100
# Fix network issues (dry-run)
./scripts/fix-all.sh network all --dry-run
# Fix permissions
./scripts/fix-all.sh permissions 5000
Issue Types
all- Fix all issuesservice- Fix service issuesnetwork- Fix network issuesconfig- Fix configuration issuescontainer- Fix container issuespermissions- Fix permission issuesnginx- Fix nginx issuesredis- Fix Redis issuespostgres- Fix PostgreSQL issues
4. configure.sh
Purpose
Consolidates all configuration scripts.
Usage
./scripts/configure.sh [component] [action] [host]
Examples
# Configure all
./scripts/configure.sh all setup
# Configure service
./scripts/configure.sh service postgresql setup
# Update network configuration
./scripts/configure.sh network update
# Validate SSL configuration
./scripts/configure.sh ssl validate
Components
all- Configure allservice- Configure servicesnetwork- Configure networkcontainer- Configure containersssl- Configure SSL certificatesnginx- Configure nginxredis- Configure Redispostgres- Configure PostgreSQL
Actions
setup- Initial setup (default)update- Update configurationreset- Reset to defaultsvalidate- Validate configuration
5. deploy.sh
Purpose
Consolidates all deployment, setup, and installation scripts.
Usage
./scripts/deploy.sh [component] [options] [host]
Examples
# Deploy all
./scripts/deploy.sh all
# Deploy service
./scripts/deploy.sh service postgresql
# Deploy container
./scripts/deploy.sh container 5000
# Phased deployment
./scripts/deploy.sh all --phase=1
Components
all- Deploy allservice- Deploy servicescontainer- Deploy containersinfrastructure- Deploy infrastructurebesu- Deploy Besu nodesrpc- Deploy RPC nodesvalidator- Deploy validator nodesblockscout- Deploy Blockscout explorer
Options
--phase=[1|2|3]- Deploy specific phase--validate- Validate before deployment--dry-run- Show what would be deployed
Utility Modules
Five utility modules provide shared functions:
scripts/utils/container-utils.sh- Container helpersscripts/utils/network-utils.sh- Network helpersscripts/utils/service-utils.sh- Service helpersscripts/utils/config-utils.sh- Config helpersscripts/utils/proxmox-utils.sh- Proxmox helpers
Usage
source "$(dirname "${BASH_SOURCE[0]}")/../utils/container-utils.sh"
container_status 5000
container_restart 5000
Migration from Old Scripts
Old scripts have been archived to scripts/archive/consolidated/. Use the frameworks instead:
Old:
./scripts/check-container-services.sh 5000
./scripts/fix-all-blockscout-issues.sh
./scripts/list-all-vmids-complete.sh
New:
./scripts/verify-all.sh container 5000
./scripts/fix-all.sh blockscout all
./scripts/list.sh containers
Status: Complete usage guide for all frameworks