recovery: recuperation commit local orphelin (master jamais pousse) - git-push-depuis-mcp-nas.md
This commit is contained in:
parent
800a5bbe8e
commit
35ac47ae26
|
|
@ -0,0 +1,36 @@
|
||||||
|
# GIT PUSH depuis le container mcp-nas
|
||||||
|
|
||||||
|
**Date** : 2026-06-15
|
||||||
|
**Contexte** : git push Gitea depuis mcp-nas (container Docker sur NAS DS920+)
|
||||||
|
|
||||||
|
## Problème
|
||||||
|
`git push http://bolbol:PASSWORD@192.168.100.33:3232/...` → **timeout systématique**
|
||||||
|
L'IP 192.168.100.33 est inaccessible depuis l'intérieur du container mcp-nas.
|
||||||
|
|
||||||
|
## Solution validée
|
||||||
|
Utiliser **172.17.0.1** (gateway Docker bridge) à la place :
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd /mnt/docker/<repo>
|
||||||
|
GIT_TERMINAL_PROMPT=0 git push http://bolbol:PASSWORD@172.17.0.1:3232/bolbol/<repo>.git main
|
||||||
|
```
|
||||||
|
|
||||||
|
## Vérifier l'accessibilité Gitea avant un push
|
||||||
|
```bash
|
||||||
|
curl -s --max-time 8 http://172.17.0.1:3232/api/v1/repos/bolbol/<repo> \
|
||||||
|
-H "Authorization: basic $(echo -n 'bolbol:PASSWORD' | base64)" \
|
||||||
|
-o /dev/null -w "%{http_code}"
|
||||||
|
# Doit retourner 200
|
||||||
|
```
|
||||||
|
|
||||||
|
## Règle générale réseau mcp-nas
|
||||||
|
| Depuis mcp-nas | À ne JAMAIS utiliser | À utiliser |
|
||||||
|
|---|---|---|
|
||||||
|
| Gitea | 192.168.100.33:3232 | 172.17.0.1:3232 |
|
||||||
|
| SSH NAS | 192.168.100.33:22222 | 172.17.0.1:22222 |
|
||||||
|
| NyoraNotes | 192.168.100.33:8787 | 172.17.0.1:8787 |
|
||||||
|
| n8n | 192.168.100.33:5678 | 172.17.0.1:5678 |
|
||||||
|
|
||||||
|
## Ce qui NE fonctionne PAS
|
||||||
|
- `192.168.100.33` depuis mcp-nas : timeout sur tous les ports
|
||||||
|
- `git push` sans `GIT_TERMINAL_PROMPT=0` peut bloquer en attente de saisie
|
||||||
Loading…
Reference in New Issue