Deployer un service depuis le catalogue
Ce tutoriel montre comment deployer un service MCP EU en un clic via l'API du catalogue business.
Prerequis
- Chatbotaurus backend fonctionnel sur VPS1
- Podman installe et configure
- Acces au reseau
mgaas-network
Etape 1 : Consulter le catalogue
# Lister tous les serveurs disponibles
curl -s http://localhost:3000/api/v1/mcp/catalog-business | jq '.servers[] | {id, name, category}'
# Voir les details d'un serveur
curl -s http://localhost:3000/api/v1/mcp/catalog-business/odoo-eu | jq .
Etape 2 : Verifier la securite (Trivy)
Avant tout deploiement, un scan de securite est effectue automatiquement :
# Scan manuel (optionnel)
curl -s http://localhost:3000/api/v1/mcp/catalog-business/odoo-eu/security | jq .
Le deploiement est bloque si des vulnerabilites CRITICAL sont detectees.
Etape 3 : Deployer
# Deploiement one-click
curl -X POST http://localhost:3000/api/v1/mcp/catalog-business/odoo-eu/deploy \
-H "Content-Type: application/json" \
-d '{
"profile": "starter",
"env": {
"ADMIN_EMAIL": "admin@example.com"
}
}'
Etape 4 : Verifier le statut
# Statut du conteneur
curl -s http://localhost:3000/api/v1/mcp/catalog-business/odoo-eu/status | jq .
# Liste de tous les services deployes avec leur sante
curl -s http://localhost:3000/api/v1/mcp/catalog-business/deployed | jq .
Etape 5 : Gerer le cycle de vie
# Arreter
curl -X POST http://localhost:3000/api/v1/mcp/catalog-business/odoo-eu/stop
# Demarrer
curl -X POST http://localhost:3000/api/v1/mcp/catalog-business/odoo-eu/start
# Redemarrer
curl -X POST http://localhost:3000/api/v1/mcp/catalog-business/odoo-eu/restart
Deployer un profil complet
Plutot que de deployer service par service, utilisez les profils :
# Voir les profils disponibles
curl -s http://localhost:3000/api/v1/mcp/catalog-business/profiles | jq .
# Deployer le profil starter (5 services)
curl -X POST http://localhost:3000/api/v1/mcp/catalog-business/profiles/starter/deploy
| Profil | Services | Usage |
|---|---|---|
| starter | 5 | Demarrage rapide |
| business | 12 | Utilisation complete |
| enterprise | tous | Deploiement integral |
Configurer les secrets
# Injecter des secrets via Vault
curl -X POST http://localhost:3000/api/v1/mcp/catalog-business/odoo-eu/secrets \
-H "Content-Type: application/json" \
-d '{
"db_password": "mot-de-passe-securise",
"admin_password": "admin-securise"
}'
Voir aussi
- Deploiement Podman - Infrastructure complete
- Architecture - Vue d'ensemble du systeme