Files
proxmox/scripts/run-deployment-on-ml110.sh.bak
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- 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>
2026-02-12 15:46:57 -08:00

77 lines
2.1 KiB
Bash
Executable File

#!/usr/bin/env bash
# Run deployment on ml110
# This script provides instructions and can optionally run the deployment
set -euo pipefail
REMOTE_HOST="192.168.11.10"
REMOTE_USER="root"
REMOTE_PASS="L@kers2010"
echo "=== Complete Validated Deployment on ml110 ==="
echo ""
echo "Target: ${REMOTE_USER}@${REMOTE_HOST}"
echo ""
# Test connection
if ! sshpass -p "$REMOTE_PASS" ssh -o StrictHostKeyChecking=no -o ConnectTimeout=5 \
"${REMOTE_USER}@${REMOTE_HOST}" "echo 'Connected'" 2>/dev/null; then
echo "ERROR: Cannot connect to ${REMOTE_HOST}"
exit 1
fi
echo "✓ Connection successful"
echo ""
# Check if script exists on remote
if ! sshpass -p "$REMOTE_PASS" ssh -o StrictHostKeyChecking=no \
"${REMOTE_USER}@${REMOTE_HOST}" \
"test -f /opt/smom-dbis-138-proxmox/scripts/deployment/deploy-validated-set.sh" 2>/dev/null; then
echo "ERROR: deploy-validated-set.sh not found on ${REMOTE_HOST}"
exit 1
fi
echo "✓ Deployment script found"
echo ""
# Check if source project exists
if ! sshpass -p "$REMOTE_PASS" ssh -o StrictHostKeyChecking=no \
"${REMOTE_USER}@${REMOTE_HOST}" \
"test -d /opt/smom-dbis-138" 2>/dev/null; then
echo "ERROR: Source project /opt/smom-dbis-138 not found on ${REMOTE_HOST}"
exit 1
fi
echo "✓ Source project found"
echo ""
echo "Starting deployment..."
echo "This may take a while (up to 1 hour for full deployment)"
echo ""
# Run deployment with timeout (2 hours max)
sshpass -p "$REMOTE_PASS" ssh -o StrictHostKeyChecking=no \
"${REMOTE_USER}@${REMOTE_HOST}" \
"cd /opt/smom-dbis-138-proxmox && \
chmod +x ./scripts/deployment/deploy-validated-set.sh && \
timeout 7200 ./scripts/deployment/deploy-validated-set.sh \
--source-project /opt/smom-dbis-138" 2>&1
EXIT_CODE=$?
if [[ $EXIT_CODE -eq 0 ]]; then
echo ""
echo "✅ Deployment completed successfully!"
elif [[ $EXIT_CODE -eq 124 ]]; then
echo ""
echo "⚠ Deployment timed out (2 hours)"
echo "Check the deployment status manually"
else
echo ""
echo "❌ Deployment failed with exit code: $EXIT_CODE"
echo "Check the output above for errors"
fi
exit $EXIT_CODE