kundencenter/ops/test/Dockerfile
Claude (KI) 8eb8c54aab Testumgebung und CI: ein Befehl mit Docker, Forgejo-Workflow (#96, #14)
- ops/test/run.sh: Compose mit Wegwerf-MariaDB (tmpfs) und Test-Image
  (Node 24, pnpm, mysqldump/gpg/age/rclone), Dummy-Schlüssel.
- ops/test/ci.sh: install --frozen-lockfile → build → Plattform-,
  Connector- und API-Tests; bricht beim ersten Fehler ab.
- .forgejo/workflows/ci.yml: gleicher Ablauf, braucht einen Runner (docker).
- API-Tests löschen kundencenter_test nur mit KC_TEST_DB_RESET=1.

Lokal verifiziert: 154 Tests grün.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 11:30:52 +02:00

7 lines
451 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Test-Image für CI und lokale Testläufe: Node 24 + pnpm + die Werkzeuge, die Backup/Restore aufrufen
# (mysqldump/mysql, gpg, age, tar). Enthält keinen Code und keine Geheimnisse – das Repo wird eingebunden.
FROM node:24-bookworm
RUN apt-get update \
&& apt-get install -y --no-install-recommends mariadb-client gnupg age rclone openssh-client \
&& rm -rf /var/lib/apt/lists/* \
&& corepack enable && corepack prepare pnpm@10.14.0 --activate