🌉 Network Bridge: Direkte Container-zu-Container Kommunikation
ci/woodpecker/push/woodpecker Pipeline was successful Details

 PROBLEM GELÖST:
 localhost:2224 → CI-Container konnte Production Environment nicht erreichen
 10.88.7.60:2222 → Direkte Container-IP-Kommunikation im podman-Netzwerk

🔧 NETWORK-KONFIGURATION:
- SSH: 10.88.7.60:2222 (Production Environment interne IP)
- HTTP Proxy: 10.88.7.60:8080 (Container Port 8080)
- Health API: 10.88.7.60:8082 (Container Port 8082)
- Log Viewer: 10.88.7.60:8081 (Container Port 8081)

🎮 ECHTER MINECRAFT TEST jetzt möglich:
1.  SSH-Verbindung: CI → Production Environment Container
2.  gameadm install mc --force (echte Installation)
3.  gameadm mc start mit Log-Auslesen (/tmp/mc_start.log)
4.  Log-Analyse: Server-Start-Pattern erkennen
5.  Container-Status: podman ps -a | grep minecraft
6.  Production Cleanup: Vollständige Deinstallation + Verifikation

🚀 Bereit für ECHTE Minecraft Integration Tests statt Fallback-Messages
This commit is contained in:
Automation Admin 2025-08-15 11:24:05 +00:00
parent afaab6cf1c
commit 498d3187a8
1 changed files with 10 additions and 10 deletions

View File

@ -133,7 +133,7 @@ steps:
- echo "Teste Erreichbarkeit des Production Environment vom CI-Runner"
- echo ""
- echo "1. SSH Port Check (2224)"
- if nc -z localhost 2224 2>/dev/null; then
- if nc -z 10.88.7.60 2222 2>/dev/null; then
- echo "✅ SSH Port 2224 ist erreichbar"
- SSH_REACHABLE=true
- else
@ -142,7 +142,7 @@ steps:
- fi
- echo ""
- echo "2. HTTP Proxy Port Check (8090)"
- if nc -z localhost 8090 2>/dev/null; then
- if nc -z 10.88.7.60 8080 2>/dev/null; then
- echo "✅ HTTP Proxy Port 8090 ist erreichbar"
- HTTP_REACHABLE=true
- else
@ -151,7 +151,7 @@ steps:
- fi
- echo ""
- echo "3. Health API Port Check (8092)"
- if nc -z localhost 8092 2>/dev/null; then
- if nc -z 10.88.7.60 8082 2>/dev/null; then
- echo "✅ Health API Port 8092 ist erreichbar"
- HEALTH_REACHABLE=true
- else
@ -160,7 +160,7 @@ steps:
- fi
- echo ""
- echo "4. Log Viewer Port Check (8091)"
- if nc -z localhost 8091 2>/dev/null; then
- if nc -z 10.88.7.60 8081 2>/dev/null; then
- echo "✅ Log Viewer Port 8091 ist erreichbar"
- LOG_REACHABLE=true
- else
@ -216,14 +216,14 @@ steps:
- echo "$PRODUCTION_SSH_KEY" > ~/.ssh/pp1l_prod_key
- chmod 600 ~/.ssh/pp1l_prod_key
- echo "Host prod-env" > ~/.ssh/config
- echo " HostName localhost" >> ~/.ssh/config
- echo " Port 2224" >> ~/.ssh/config
- echo " HostName 10.88.7.60" >> ~/.ssh/config
- echo " Port 2222" >> ~/.ssh/config
- echo " User prod" >> ~/.ssh/config
- echo " IdentityFile ~/.ssh/pp1l_prod_key" >> ~/.ssh/config
- echo " StrictHostKeyChecking no" >> ~/.ssh/config
- echo " ConnectTimeout 10" >> ~/.ssh/config
- chmod 600 ~/.ssh/config
- if nc -z localhost 2224 2>/dev/null; then
- if nc -z 10.88.7.60 2222 2>/dev/null; then
- if ssh prod-env 'echo "SSH OK"' 2>/dev/null; then
- echo "2. Minecraft Installation via gameadm"
- ssh prod-env 'curl -fsSL https://git.pp1l.de/pp1l/gameadm/raw/branch/main/install.sh | sudo bash'
@ -291,15 +291,15 @@ steps:
- echo "$PRODUCTION_SSH_KEY" > ~/.ssh/pp1l_prod_key
- chmod 600 ~/.ssh/pp1l_prod_key
- echo "Host prod-env" > ~/.ssh/config
- echo " HostName localhost" >> ~/.ssh/config
- echo " Port 2224" >> ~/.ssh/config
- echo " HostName 10.88.7.60" >> ~/.ssh/config
- echo " Port 2222" >> ~/.ssh/config
- echo " User prod" >> ~/.ssh/config
- echo " IdentityFile ~/.ssh/pp1l_prod_key" >> ~/.ssh/config
- echo " StrictHostKeyChecking no" >> ~/.ssh/config
- echo " ConnectTimeout 10" >> ~/.ssh/config
- chmod 600 ~/.ssh/config
- echo "Teste Production Environment Verbindung mit echtem SSH-Key"
- if nc -z localhost 2224 2>/dev/null; then
- if nc -z 10.88.7.60 2222 2>/dev/null; then
- echo "✅ Production Environment Port 2224 ist erreichbar"
- echo "Teste SSH-Verbindung zum Production Environment"
- if ssh prod-env 'echo "SSH-Verbindung erfolgreich - $(whoami)@$(hostname)"' 2>/dev/null; then