|
|
||
|---|---|---|
| .. | ||
| app | ||
| Dockerfile | ||
| README.md | ||
| main.py | ||
| requirements.txt | ||
README.md
dashboard-edge
dashboard-edge is the execution-plane service for Dashboard Nanobot.
It is designed to run on every managed node and bridge Dashboard control requests to local Docker or native Bot runtimes.
Local development
cd dashboard-edge
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python main.py
If your configured pip mirror is unavailable, install with the official index:
pip install -r requirements.txt -i https://pypi.org/simple
Default server:
- Host:
0.0.0.0 - Port:
8010 - Dev reload: enabled by default in
./scripts/dev-edge.sh
Native local development:
cd /Users/jiliu/WorkSpace/dashboard-nanobot
bash scripts/dev-edge-native.sh
By default, the native launcher will auto-detect:
engines/nanobot-v0.1.4-post5/.venv/bin/python -m nanobot.cli.commands gateway
when that virtualenv exists. You can still override it with EDGE_NATIVE_COMMAND.
Environment variables:
EDGE_HOSTEDGE_PORTEDGE_RELOADEDGE_AUTH_TOKENEDGE_NODE_IDEDGE_NODE_NAMEEDGE_BOTS_WORKSPACE_ROOTEDGE_BASE_IMAGEEDGE_RUNTIME_KINDEDGE_NATIVE_COMMANDEDGE_NATIVE_DASHBOARD_URLEDGE_NATIVE_DASHBOARD_HOSTEDGE_NATIVE_DASHBOARD_PORTEDGE_NATIVE_WORKDIREDGE_UPLOAD_MAX_MBEDGE_ALLOWED_ATTACHMENT_EXTENSIONS