Files
proxmox/scripts/dbis/provision-dbis-frontend-container-10130.sh
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

30 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
# Provision container 10130 (dbis-frontend): nginx, /opt/dbis-core, Node.js
# Run on Proxmox host or via ssh. Use before deploy-dbis-frontend-to-container.sh if container is minimal.
# Version: 2026-01-31
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
source "${SCRIPT_DIR}/../lib/load-project-env.sh"
VMID="${VMID_DBIS_FRONTEND:-10130}"
PROXMOX_HOST="$(get_host_for_vmid "$VMID")"
SSH_OPTS="-o ConnectTimeout=30 -o ServerAliveInterval=60 -o ServerAliveCountMax=3"
echo "=== Provision DBIS Frontend Container $VMID ==="
echo "Host: $PROXMOX_HOST"
ssh $SSH_OPTS "root@${PROXMOX_HOST}" "
pct exec $VMID -- bash -c '
export DEBIAN_FRONTEND=noninteractive
apt-get update -qq && apt-get install -y -qq nginx curl
mkdir -p /opt/dbis-core/frontend/dist
systemctl enable nginx
systemctl start nginx
echo Provisioned: nginx, /opt/dbis-core/frontend/dist
'
"
echo "Done. Run deploy-dbis-frontend-to-container.sh to deploy the build."