Files
michaelschiemer/deployment/docs/tests/quick-test.md

1.3 KiB

Quick Git Deployment Test

Verifikation ohne Container

Alle Dateien sind korrekt konfiguriert:

1. Entrypoint Script (docker/entrypoint.sh)

  • GIT_REPOSITORY_URL Check vorhanden (Zeile 30)
  • Git Clone/Pull Funktionalität implementiert
  • Composer Install integriert

2. Docker Compose (deployment/stacks/application/docker-compose.yml)

  • GIT_REPOSITORY_URL Environment Variable vorhanden (Zeile 17)
  • GIT_BRANCH, GIT_TOKEN, GIT_USERNAME, GIT_PASSWORD vorhanden

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

  1. Image ist bereits gebaut
  2. Git-Variablen in .env setzen (auf Production Server)
  3. Container neu starten und Logs prüfen

Siehe TEST_GIT_DEPLOYMENT.md für detaillierte Anleitung.