83 lines
2.2 KiB
Markdown
83 lines
2.2 KiB
Markdown
|
|
# Migration vers Debian 13
|
||
|
|
|
||
|
|
**Date**: 2026-01-14
|
||
|
|
**Statut**: ✅ **TERMINÉ**
|
||
|
|
|
||
|
|
## Changements Effectués
|
||
|
|
|
||
|
|
Tous les scripts de déploiement ont été mis à jour pour utiliser **Debian 13 (trixie)** au lieu d'Ubuntu 22.04.
|
||
|
|
|
||
|
|
### Fichiers Modifiés
|
||
|
|
|
||
|
|
1. **config/incus/deploy-service-native.sh**
|
||
|
|
- Ligne 73: `images:ubuntu/22.04` → `images:debian/13`
|
||
|
|
|
||
|
|
2. **config/incus/deploy-service.sh**
|
||
|
|
- Ligne 45: `images:ubuntu/22.04` → `images:debian/13`
|
||
|
|
|
||
|
|
3. **Makefile**
|
||
|
|
- Ligne 466: `images:ubuntu/22.04` → `images:debian/13`
|
||
|
|
|
||
|
|
## État Actuel
|
||
|
|
|
||
|
|
### Conteneurs Déployés avec Debian 13
|
||
|
|
|
||
|
|
✅ **4/6 conteneurs déployés** :
|
||
|
|
- `veza-infra` (10.10.10.10) - Debian 13 ✅
|
||
|
|
- `veza-backend-api` (10.10.10.2) - Debian 13 ✅
|
||
|
|
- `veza-web` (10.10.10.5) - Debian 13 ✅
|
||
|
|
- `veza-haproxy` (10.10.10.6) - Debian 13 ✅
|
||
|
|
|
||
|
|
❌ **2 conteneurs manquants** :
|
||
|
|
- `veza-chat-server` (10.10.10.3) - Binaire non compilé (erreurs Rust)
|
||
|
|
- `veza-stream-server` (10.10.10.4) - Binaire non compilé (erreurs Rust)
|
||
|
|
|
||
|
|
### Vérification OS
|
||
|
|
|
||
|
|
Tous les conteneurs déployés utilisent bien Debian 13 :
|
||
|
|
```bash
|
||
|
|
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
|
||
|
|
VERSION="13 (trixie)"
|
||
|
|
VERSION_CODENAME=trixie
|
||
|
|
```
|
||
|
|
|
||
|
|
## Prochaines Étapes
|
||
|
|
|
||
|
|
1. **Finaliser l'infrastructure** :
|
||
|
|
- Attendre la fin de l'installation de PostgreSQL et Redis
|
||
|
|
- Configurer et démarrer les services
|
||
|
|
|
||
|
|
2. **Démarrer les services** :
|
||
|
|
- Backend API
|
||
|
|
- Apache (Web)
|
||
|
|
- HAProxy
|
||
|
|
|
||
|
|
3. **Corriger les erreurs de compilation Rust** pour déployer chat-server et stream-server
|
||
|
|
|
||
|
|
## Commandes Utiles
|
||
|
|
|
||
|
|
### Vérifier l'OS d'un conteneur
|
||
|
|
```bash
|
||
|
|
incus exec veza-infra -- cat /etc/os-release | grep PRETTY_NAME
|
||
|
|
```
|
||
|
|
|
||
|
|
### Vérifier tous les conteneurs
|
||
|
|
```bash
|
||
|
|
for container in $(incus list -c n --format csv | grep veza-); do
|
||
|
|
echo "--- $container ---"
|
||
|
|
incus exec $container -- cat /etc/os-release | grep PRETTY_NAME
|
||
|
|
done
|
||
|
|
```
|
||
|
|
|
||
|
|
### Redéployer un conteneur avec Debian 13
|
||
|
|
```bash
|
||
|
|
incus delete veza-<service> --force
|
||
|
|
./config/incus/deploy-service-native.sh <service>
|
||
|
|
```
|
||
|
|
|
||
|
|
## Notes
|
||
|
|
|
||
|
|
- Debian 13 (trixie) est la version de développement actuelle de Debian
|
||
|
|
- Les packages peuvent être différents d'Ubuntu 22.04
|
||
|
|
- Certaines commandes peuvent nécessiter des ajustements pour Debian 13
|