Mettre à jour CyberChef v10.19.2 -> v10.22.1, IT Tools 2024.5.13 -> 2024.10.22, RSS-Bridge (vibe-kanban PIE-21)

This commit is contained in:
Pierre Martin
2026-02-19 12:51:54 +01:00
parent c9376996dd
commit e8b707468f
+28 -3
View File
@@ -82,15 +82,40 @@ Aucun service en erreur connu (vérifié 2026-02-19). `mail` tourne correctement
Voir `todo.txt` (format todo.txt standard) Voir `todo.txt` (format todo.txt standard)
## Mettre à jour une app CapRover
**TOUJOURS passer par l'API CapRover** — jamais via `docker service update` directement (CapRover ne le verrait pas).
### Procédure
1. **Login** (obtenir un token) :
```python
import urllib.request, json
data = json.dumps({'password': 'CAPROVER_PASSWORD'}).encode()
req = urllib.request.Request('https://captain.cloud.sans.pub/api/v2/login', data=data, headers={'Content-Type': 'application/json'}, method='POST')
with urllib.request.urlopen(req) as r:
token = json.loads(r.read().decode())['data']['token']
```
2. **Déployer une nouvelle image** :
```python
headers = {'Content-Type': 'application/json', 'x-captain-auth': token, 'x-namespace': 'captain'}
captain_def = json.dumps({'schemaVersion': 2, 'imageName': 'IMAGE:TAG'})
payload = json.dumps({'appName': 'NOM_APP', 'captainDefinitionContent': captain_def, 'gitHash': ''}).encode()
req = urllib.request.Request('https://captain.cloud.sans.pub/api/v2/user/apps/appData/NOM_APP', data=payload, headers=headers, method='POST')
with urllib.request.urlopen(req) as r:
print(r.read().decode()) # {"status":100,"description":"Deploy is done"}
```
> Note : `curl` a un problème d'encodage dans cet environnement — utiliser `python3` à la place.
## Commandes utiles ## Commandes utiles
```bash ```bash
# Voir les logs d'un service # Voir les logs d'un service
ssh cloud@sans.pub "docker service logs srv-captain--NOM --tail 100" ssh cloud@sans.pub "docker service logs srv-captain--NOM --tail 100"
# Redémarrer un service
ssh cloud@sans.pub "docker service update --force srv-captain--NOM"
# Espace disque des volumes # Espace disque des volumes
ssh cloud@sans.pub "docker system df -v" ssh cloud@sans.pub "docker system df -v"