docs: update CLI command syntax across workflow documentation
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Waiting to run
Documentation Validation / validate-docs (push) Waiting to run
CLI Tests / test-cli (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled

- Updated marketplace commands: `marketplace --action` → `market` subcommands
- Updated wallet commands: direct flags → `wallet` subcommands
- Updated AI commands: `ai-submit`, `ai-status` → `ai submit`, `ai status`
- Updated blockchain commands: `chain` → `blockchain info`
- Standardized command structure across all workflow files
- Affected files: MULTI_NODE_MASTER_INDEX.md, TEST_MASTER_INDEX.md, multi-node-blockchain-marketplace
This commit is contained in:
aitbc
2026-04-08 12:10:21 +02:00
parent ef4a1c0e87
commit 40ddf89b9c
251 changed files with 3555 additions and 61407 deletions

View File

@@ -6,7 +6,7 @@
set -e
# === CONFIGURE THESE ===
COORDINATOR_URL="http://YOUR_COORDINATOR_IP:18000"
COORDINATOR_URL="http://YOUR_COORDINATOR_IP:8000"
MINER_API_KEY="your_miner_api_key"
OLLAMA_HOST="http://127.0.0.1:11434"
GPU_ID="gpu-0"

View File

@@ -35,8 +35,8 @@ def test_connectivity():
print("=" * 40)
tests = [
("curl -s http://127.0.0.1:18000/v1/health", "aitbc health check"),
("curl -s http://127.0.0.1:18001/v1/health", "aitbc1 health check"),
("curl -s http://127.0.0.1:8000/v1/health", "aitbc health check"),
("curl -s http://127.0.0.1:8015/v1/health", "aitbc1 health check"),
("ollama list", "Ollama GPU service"),
("ssh aitbc-cascade 'echo SSH_OK'", "SSH to aitbc container"),
("ssh aitbc1-cascade 'echo SSH_OK'", "SSH to aitbc1 container"),
@@ -55,10 +55,10 @@ def test_marketplace_functionality():
print("=" * 40)
tests = [
("curl -s http://127.0.0.1:18000/v1/marketplace/offers", "aitbc marketplace offers"),
("curl -s http://127.0.0.1:18001/v1/marketplace/offers", "aitbc1 marketplace offers"),
("curl -s http://127.0.0.1:18000/v1/marketplace/stats", "aitbc marketplace stats"),
("curl -s http://127.0.0.1:18001/v1/marketplace/stats", "aitbc1 marketplace stats"),
("curl -s http://127.0.0.1:8000/v1/marketplace/offers", "aitbc marketplace offers"),
("curl -s http://127.0.0.1:8015/v1/marketplace/offers", "aitbc1 marketplace offers"),
("curl -s http://127.0.0.1:8000/v1/marketplace/stats", "aitbc marketplace stats"),
("curl -s http://127.0.0.1:8015/v1/marketplace/stats", "aitbc1 marketplace stats"),
]
results = []

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# Define the proxy ports and internal container ports
# Coordinator proxies: localhost:18000 -> aitbc:8000, localhost:18001 -> aitbc1:8000
# Coordinator proxies: localhost:8000 -> aitbc:8000, localhost:8015 -> aitbc1:8015
# However, the node RPC is on port 8082 in the container and proxied differently.
# For direct access, we'll ssh into the containers to test the RPC directly on 8082.

View File

@@ -27,7 +27,7 @@ fi
echo ""
echo "📋 Step 3: Verify aitbc marketplace connectivity"
echo "=========================================="
curl -s http://127.0.0.1:18000/v1/health | jq .
curl -s http://127.0.0.1:8000/v1/health | jq .
echo ""
echo "📋 Step 4: Register miner1 with aitbc marketplace"
@@ -42,13 +42,13 @@ aitbc marketplace gpu register \
--price-per-hour "0.001" \
--models "gemma3:1b,lauchacarro/qwen2.5-translator:latest" \
--endpoint "http://localhost:11434" \
--marketplace-url "http://127.0.0.1:18000"
--marketplace-url "http://127.0.0.1:8000"
echo ""
echo "📋 Step 5: Verify registration on aitbc"
echo "=========================================="
sleep 5
curl -s http://127.0.0.1:18000/v1/marketplace/offers | jq '.[] | select(.miner_id == "miner1")'
curl -s http://127.0.0.1:8000/v1/marketplace/offers | jq '.[] | select(.miner_id == "miner1")'
echo ""
echo "📋 Step 6: Test direct GPU service"
@@ -60,7 +60,7 @@ curl -X POST http://localhost:11434/api/generate \
echo ""
echo "📋 Step 7: Test GPU service via marketplace proxy"
echo "=========================================="
curl -X POST http://127.0.0.1:18000/v1/gpu/inference \
curl -X POST http://127.0.0.1:8000/v1/gpu/inference \
-H "Content-Type: application/json" \
-d '{"miner_id": "miner1", "model": "gemma3:1b", "prompt": "What is blockchain via proxy?"}' | jq .

View File

@@ -21,7 +21,7 @@ fi
echo ""
echo "📋 Step 2: Verify aitbc1 marketplace connectivity"
echo "=========================================="
curl -s http://127.0.0.1:18001/v1/health | jq .
curl -s http://127.0.0.1:8015/v1/health | jq .
echo ""
echo "📋 Step 3: Wait for marketplace synchronization"
@@ -32,7 +32,7 @@ sleep 30
echo ""
echo "📋 Step 4: Discover available services on aitbc1"
echo "=========================================="
curl -s http://127.0.0.1:18001/v1/marketplace/offers | jq '.[] | select(.miner_id == "miner1")'
curl -s http://127.0.0.1:8015/v1/marketplace/offers | jq '.[] | select(.miner_id == "miner1")'
echo ""
echo "📋 Step 5: Client1 discovers GPU services"
@@ -40,7 +40,7 @@ echo "=========================================="
aitbc marketplace gpu discover \
--client-id $CLIENT_ID \
--region $CLIENT_REGION \
--marketplace-url "http://127.0.0.1:18001"
--marketplace-url "http://127.0.0.1:8015"
echo ""
echo "📋 Step 6: Client1 requests service from miner1 via aitbc1"
@@ -50,20 +50,20 @@ aitbc marketplace gpu request \
--miner-id "miner1" \
--model "gemma3:1b" \
--prompt "What is artificial intelligence?" \
--marketplace-url "http://127.0.0.1:18001"
--marketplace-url "http://127.0.0.1:8015"
echo ""
echo "📋 Step 7: Verify transaction on aitbc1"
echo "=========================================="
sleep 5
aitbc marketplace transactions $CLIENT_ID \
--marketplace-url "http://127.0.0.1:18001"
--marketplace-url "http://127.0.0.1:8015"
echo ""
echo "📋 Step 8: Test cross-container service routing"
echo "=========================================="
# This should route from client1 (localhost) → aitbc1 → aitbc → localhost miner1
curl -X POST http://127.0.0.1:18001/v1/gpu/inference \
curl -X POST http://127.0.0.1:8015/v1/gpu/inference \
-H "Content-Type: application/json" \
-d '{"miner_id": "miner1", "model": "gemma3:1b", "prompt": "Cross-container routing test"}' | jq .
@@ -71,11 +71,11 @@ echo ""
echo "📋 Step 9: Verify marketplace stats on both sites"
echo "=========================================="
echo "aitbc marketplace stats:"
curl -s http://127.0.0.1:18000/v1/marketplace/stats | jq '.total_offers, .active_miners'
curl -s http://127.0.0.1:8000/v1/marketplace/stats | jq '.total_offers, .active_miners'
echo ""
echo "aitbc1 marketplace stats:"
curl -s http://127.0.0.1:18001/v1/marketplace/stats | jq '.total_offers, .active_miners'
curl -s http://127.0.0.1:8015/v1/marketplace/stats | jq '.total_offers, .active_miners'
echo ""
echo "🎉 Scenario B Complete!"