1.3 KiB
1.3 KiB
Quick Git Deployment Test
✅ Verifikation ohne Container
Alle Dateien sind korrekt konfiguriert:
1. Entrypoint Script (docker/entrypoint.sh)
- ✅
GIT_REPOSITORY_URLCheck vorhanden (Zeile 30) - ✅ Git Clone/Pull Funktionalität implementiert
- ✅ Composer Install integriert
2. Docker Compose (deployment/stacks/application/docker-compose.yml)
- ✅
GIT_REPOSITORY_URLEnvironment Variable vorhanden (Zeile 17) - ✅
GIT_BRANCH,GIT_TOKEN,GIT_USERNAME,GIT_PASSWORDvorhanden
3. Ansible Template (deployment/ansible/templates/application.env.j2)
- ✅ Git-Variablen im Template definiert
4. Dockerfile (Dockerfile.production)
- ✅ Git installiert
- ✅ Composer installiert
- ✅ Entrypoint kopiert
🧪 Schneller Test (ohne Container-Start)
# Prüfen ob GIT_REPOSITORY_URL überall vorhanden ist
grep -c "GIT_REPOSITORY_URL" docker/entrypoint.sh
grep -c "GIT_REPOSITORY_URL" deployment/stacks/application/docker-compose.yml
grep -c "GIT_REPOSITORY_URL" deployment/ansible/templates/application.env.j2
Erwartetes Ergebnis: Alle sollten > 0 zurückgeben
🚀 Nächste Schritte zum Testen
- Image ist bereits gebaut ✅
- Git-Variablen in .env setzen (auf Production Server)
- Container neu starten und Logs prüfen
Siehe TEST_GIT_DEPLOYMENT.md für detaillierte Anleitung.