refactor/alpine-nginx #1

Zusammengeführt
rev hat 6 Commits von refactor/alpine-nginx nach main 2026-11-20 22:16:08 +01:00 zusammengeführt
Besitzer
Keine Beschreibung angegeben.
rev hat 6 Commits 2026-11-20 22:14:59 +01:00 hinzugefügt
refactor: Alpine + nginx + php-fpm image, drop Apache/Python/PostgreSQL/SQLite
Einige Prüfungen sind fehlgeschlagen
Check / patch (push) Successful in 20s
Check / runtime (push) Failing after 6s
Check / lint (push) Successful in 28s
Image / vorbereiten (push) Successful in 2s
Image / image (push) Successful in 32s
77db1cda8e
- Alpine 3.22 (digest-pinned) with php84 packages: nothing is compiled
- two-stage Dockerfile: stage 1 downloads and patches webtrees, stage 2
  is the runtime; code root-owned, only data/ and modules_v4/ writable
- runtime user webtrees uid/gid 33 (same as www-data before), so existing
  volumes keep working
- webtrees-entrypoint (sh) supervises nginx + php-fpm; webtrees-init.php
  generates server blocks/PHP limits from the environment, runs the setup
  wizard and keeps config.ini.php in sync (replaces the Python script)
- nginx rules equivalent to the webtrees .htaccess; /healthz via php-fpm
  ping, works in every HTTPS mode
- compose: read_only root fs with tmpfs /tmp, init: true; clear_env keeps
  passwords out of webtrees' server information page
- install-module.sh downloads on the host and streams into the container
- check.yml: runtime job in Alpine (php -l, config for all modes, nginx -t,
  php-fpm -t, entrypoint start + /healthz); runs on branch pushes
- image.yml: branch pushes build test images (br-<branch>, never latest or
  the webtrees version tag)
- removed dev/, Apache configs, Python entrypoint, build.sh, the patch for
  webtrees < 2.1.19 and UPGRADE_PATCH_VERSION; README rewritten

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(image): log through a FIFO owned by uid 33
Alle Prüfungen waren erfolgreich
Check / patch (push) Successful in 12s
Check / lint (push) Successful in 21s
Check / runtime (push) Successful in 8s
Image / vorbereiten (push) Successful in 3s
Image / image (push) Successful in 26s
1ff10b18b8
nginx and php-fpm reopen /dev/stderr and /proc/self/fd/2, which belong to
the container runtime (uid 0 inside the container), so opening them as
uid 33 fails with EACCES. The entrypoint now creates /tmp/webtrees/log as
a FIFO, copies it to its inherited stderr with a background cat, and
supervises that cat like nginx and php-fpm. Supervision sleep shortened
to 1 s (dash does not interrupt wait for trapped signals).

check.yml: nginx -t uses the same log path and prints it on failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fixed permissions
Alle Prüfungen waren erfolgreich
Check / patch (push) Successful in 13s
Check / lint (push) Successful in 21s
Check / runtime (push) Successful in 8s
Image / vorbereiten (push) Successful in 3s
Image / image (push) Successful in 27s
28fd3f1b91
feat(image): add curl for debugging in the container
Alle Prüfungen waren erfolgreich
Check / patch (push) Successful in 13s
Check / lint (push) Successful in 21s
Check / runtime (push) Successful in 8s
Image / vorbereiten (push) Successful in 2s
Image / image (push) Successful in 29s
6882831771
busybox wget (Alpine base, used by the healthcheck) is very limited;
curl is handy in `make shell-app`. libcurl is already pulled in by
php84-curl, so the binary adds only a few hundred KB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: volume ownership for uid 33 (make fix-perms, checks at start)
Alle Prüfungen waren erfolgreich
Check / patch (push) Successful in 13s
Check / runtime (push) Successful in 8s
Check / lint (push) Successful in 23s
Image / vorbereiten (push) Successful in 3s
Image / image (push) Successful in 27s
53fc3d513e
Podman copies owner and content from the image only into a new, empty
named volume. Volumes created by an older image or by `podman volume
create` (restore.sh) stay owned by root, so uid 33 cannot write there -
installing a module failed with "Permission denied".

- scripts/fix-permissions.sh / make fix-perms: chown both volumes to
  33:33 via a throwaway container of the app image (works with rootless
  podman and podman machine)
- restore.sh fixes the owner after importing the volumes
- install-module.sh checks write access first and points to the fix
- webtrees-init.php: data/ not writable -> clear error at start,
  modules_v4/ not writable -> warning

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs: shorten README and comments
Alle Prüfungen waren erfolgreich
Check / patch (push) Successful in 12s
Check / lint (push) Successful in 21s
Check / runtime (push) Successful in 8s
Image / vorbereiten (push) Successful in 3s
Image / image (push) Successful in 24s
Check / patch (pull_request) Successful in 13s
Check / lint (pull_request) Successful in 20s
Check / runtime (pull_request) Successful in 8s
9321f69529
README 412 -> 203 lines, .env.example 128 -> 62; shorter header and
inline comments in Dockerfile, compose, workflows, scripts and image
config. No code changes apart from a README anchor in check.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rev hat Commit 69e4ded4e9 in main 2026-11-20 22:16:08 +01:00 zusammengeführt
rev referenzierte diesen Pull-Request aus einem Commit 2026-11-20 22:16:10 +01:00
rev referenzierte diesen Pull-Request aus einem Commit 2026-11-20 22:25:31 +01:00
rev referenzierte diesen Pull-Request aus einem Commit 2026-11-20 22:25:31 +01:00
rev referenzierte diesen Pull-Request aus einem Commit 2026-11-20 22:37:00 +01:00
rev referenzierte diesen Pull-Request aus einem Commit 2026-11-20 22:37:00 +01:00
rev referenzierte diesen Pull-Request aus einem Commit 2026-11-20 22:38:44 +01:00
rev referenzierte diesen Pull-Request aus einem Commit 2026-11-20 22:38:44 +01:00
Anmelden, um an der Diskussion teilzunehmen.
Keine Prüfer
Keine Label
Kein Meilenstein
Kein Projekt
Niemand zuständig
1 Beteiligter
Benachrichtigungen
Fällig am
Das Fälligkeitsdatum ist ungültig oder außerhalb des zulässigen Bereichs. Bitte verwende das Format „JJJJ-MM-TT“.

Kein Fälligkeitsdatum gesetzt.

Abhängigkeiten

Keine Abhängigkeiten gesetzt

Referenz
rev/webtrees-docker!1
Keine Beschreibung angegeben.