Tutorials
Tutorial: Run the control plane locally
This walkthrough starts the Edge Fleet Control Plane on your laptop for development and smoke testing.
Prerequisites
- Python 3.12+
git- (Optional) Docker, for building images or running edge model containers
Steps
-
Clone the repository
git clone https://github.com/ICICLE-ai/intelligent-edge-management-service.git
cd intelligent-edge-management-service/edge_fleet_control_plane -
Create a virtual environment and install dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt -
Configure local development
cp .env.example .envFor local dev, keep
LOCAL_DEV_AUTH=true(default in.env.example). This bypasses Tapis OAuth and logs you in aslocal_tapis_user. -
Start the server
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000 -
Open the dashboard
Visit http://localhost:8000. You should see the ICICLE Edge Control Plane dashboard.
-
Run the smoke test (optional)
python tests/smoke_test.py
Expected result
The dashboard loads, you can browse devices, model cards, and deployments. SQLite stores data under data/edge_control_plane.db.
Tutorial: Access IEMS from the ICICLE portal (TapisUI)
The ICICLE TapisUI extension embeds the control plane in an iframe and passes the user's Tapis JWT via a postMessage handshake.
Prerequisites
- A running TapisUI dev instance or access to
https://icicleai.tapis.io - Valid ICICLE tenant credentials
- Control plane deployed with
TAPIS_PORTAL_ORIGINSincluding your TapisUI origin
Steps
- Log in to TapisUI on an ICICLE tenant (
https://icicleai.tapis.ioor local dev withVITE_TAPIS_BASE_URLset to an ICICLE URL). - Open the sidebar entry Intelligent Edge Management Service.
- The portal iframe loads
https://edgecontrolplane.pods.icicleai.tapis.ioand exchanges a signed auth token with the parent window. - You are signed in to the control plane without a separate login prompt.
Expected result
The full control plane UI appears inside TapisUI. If you see "Invalid JWT", log out of TapisUI and log back in to refresh the token.