Files
sec-mcp/bootstrap.sh
T

25 lines
749 B
Bash

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
if [ ! -e "/dev/net/tun" ]; then
echo "[bootstrap] ERROR: /dev/net/tun is missing."
echo "[bootstrap] In Proxmox LXC, enable container networking features before Podman builds."
exit 1
fi
if [ ! -e "/dev/kfd" ] || [ ! -e "/dev/dri" ]; then
echo "[bootstrap] ERROR: ROCm devices are missing (/dev/kfd or /dev/dri)."
echo "[bootstrap] Apply Proxmox LXC passthrough settings from OPENWEBUI_MCP_SETUP.md and restart CT."
exit 1
fi
echo "[bootstrap] Starting stack with Podman Compose..."
podman compose up -d --build
echo "[bootstrap] Done."
echo " Open WebUI: http://localhost:3000"
echo " MCPO docs: http://localhost:8000/docs"
echo " Ollama API: http://localhost:11434"