chore: initialise la structure du projet SentinelMesh
- Workspace Cargo avec backend, agent-scan-network, agent-metric - Skeleton Rust pour les trois crates (Axum, Tokio, SQLx) - Documentation : README, FEATURES, ROADMAP, ARCHITECTURE, API, INSTALL - Exemples de widgets Glance (custom-api) - Script d'installation agents (squelette Phase 5) - Docker Compose + Dockerfile backend - .gitignore et CLAUDE.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
# Installation SentinelMesh
|
||||
|
||||
## Prérequis
|
||||
|
||||
- Docker + Docker Compose (recommandé)
|
||||
- ou Rust >= 1.82 pour une compilation locale
|
||||
|
||||
## Docker Compose (recommandé)
|
||||
|
||||
```bash
|
||||
git clone https://git.maison43gil.com/gilles/SentinelMesh.git
|
||||
cd SentinelMesh
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Le backend est accessible sur `http://localhost:8080`.
|
||||
|
||||
## Compilation locale
|
||||
|
||||
```bash
|
||||
# Backend
|
||||
cd backend && cargo build --release
|
||||
|
||||
# Agent découverte réseau
|
||||
cd agents/agent-scan-network && cargo build --release
|
||||
|
||||
# Agent métriques
|
||||
cd agents/agent-metric && cargo build --release
|
||||
```
|
||||
|
||||
## Installation des agents (Phase 5)
|
||||
|
||||
```bash
|
||||
curl -fsSL http://<backend>/install.sh | bash \
|
||||
--server http://<backend> \
|
||||
--token <token> \
|
||||
--agent-type scan-network
|
||||
|
||||
curl -fsSL http://<backend>/install.sh | bash \
|
||||
--server http://<backend> \
|
||||
--token <token> \
|
||||
--agent-type metric
|
||||
```
|
||||
|
||||
## Intégration Glance
|
||||
|
||||
Ajouter dans `glance.yml` :
|
||||
|
||||
```yaml
|
||||
- type: custom-api
|
||||
title: SentinelMesh — Réseau
|
||||
cache: 30s
|
||||
url: http://<backend>:8080/api/v1/widgets/network
|
||||
|
||||
- type: custom-api
|
||||
title: SentinelMesh — Métriques
|
||||
cache: 1s
|
||||
url: http://<backend>:8080/api/v1/widgets/metrics
|
||||
```
|
||||
Reference in New Issue
Block a user