HF-13: port the OpenMRS/OpenELIS stack to labnuc #11

Merged
gmackie merged 2 commits from feat/HF-13-labnuc-products into main 2026-11-04 13:05:13 +00:00
Owner

HF-13 (Phase R): port the private synthetic OpenMRS O3 3.7.1 + OpenELIS 3.2.3.0 stack from hetzner-master to labnuc.

What changes

  • deploy/real/labnuc/: a host profile (host.env) for the shared hetzner-master scripts. It adds labnuc Compose overlays with a hard memory cap and no swap on every service (9.9 GiB total), the same ten pinned AMD64 digests, its own isolated Podman API root, systemd units (hospital-fabric-podman-api, hospital-fabric-stack, restart on failure), and push.sh/install.sh/run.sh.
  • Network: the products publish on 127.0.0.1 only, at the same ports as hetzner-master (18090/18091/18092/18093/18443). OpenMRS and the OpenELIS UI/API are published to the tailnet with tailscale serve (https://labnuc.tail1e1a32.ts.net:18090 and :18443). OpenELIS goes through a loopback Caddy hop (127.0.0.1:18444) that verifies the host CA. The unauthenticated HAPI stores stay on loopback. Nothing listens on the LAN address.
  • Shared scripts read HF_HOST/HF_BASE/HF_PRIVATE. When these are unset, the hetzner-master paths stay as they were.
  • Fresh-host fixes found on labnuc:
    • start.sh restarts the Podman API only after a CNI edit. Restarting it killed the Requires= stack unit.
    • provision-tls.py makes the keystore directory traversable for UID 8443 when no image copy-up happened.
    • New CAs carry keyUsage/basicConstraints and key identifiers, which Python 3.13+ strict verification requires.
    • The labnuc overlay starts the HAPI and webapp services only after Postgres is healthy.
  • check-compose.py --require-memory-limits; tests cover the labnuc overlays, pins, units and tailnet serves.
  • docs/REAL-SERVICES.md: labnuc deploy/probe section.

Not in scope: no worker adapter registration, and no change to the celld unit or its ports.

🤖 Generated with Claude Code

HF-13 (Phase R): port the private synthetic OpenMRS O3 3.7.1 + OpenELIS 3.2.3.0 stack from hetzner-master to labnuc. ## What changes - `deploy/real/labnuc/`: a host profile (`host.env`) for the shared `hetzner-master` scripts. It adds labnuc Compose overlays with a hard memory cap and no swap on every service (9.9 GiB total), the same ten pinned AMD64 digests, its own isolated Podman API root, systemd units (`hospital-fabric-podman-api`, `hospital-fabric-stack`, restart on failure), and `push.sh`/`install.sh`/`run.sh`. - Network: the products publish on 127.0.0.1 only, at the same ports as hetzner-master (18090/18091/18092/18093/18443). OpenMRS and the OpenELIS UI/API are published to the tailnet with `tailscale serve` (https://labnuc.tail1e1a32.ts.net:18090 and :18443). OpenELIS goes through a loopback Caddy hop (127.0.0.1:18444) that verifies the host CA. The unauthenticated HAPI stores stay on loopback. Nothing listens on the LAN address. - Shared scripts read `HF_HOST`/`HF_BASE`/`HF_PRIVATE`. When these are unset, the hetzner-master paths stay as they were. - Fresh-host fixes found on labnuc: - `start.sh` restarts the Podman API only after a CNI edit. Restarting it killed the `Requires=` stack unit. - `provision-tls.py` makes the keystore directory traversable for UID 8443 when no image copy-up happened. - New CAs carry `keyUsage`/`basicConstraints` and key identifiers, which Python 3.13+ strict verification requires. - The labnuc overlay starts the HAPI and webapp services only after Postgres is healthy. - `check-compose.py --require-memory-limits`; tests cover the labnuc overlays, pins, units and tailnet serves. - `docs/REAL-SERVICES.md`: labnuc deploy/probe section. Not in scope: no worker adapter registration, and no change to the celld unit or its ports. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
HF-13: port the OpenMRS/OpenELIS stack to labnuc
All checks were successful
Scaffold conformance / test (pull_request) Successful in 3m23s
forgegraph/ci CI passed
Scaffold conformance / forgegraph-report (pull_request) Successful in 12s
0928372993
deploy/real/labnuc/ is a host profile for the shared hetzner-master scripts:
labnuc overlays with hard no-swap memory caps (9.9 GiB total), the same ten
pinned digests, its own isolated Podman API root, systemd units, and
push/install/run scripts. Product UIs are published on the tailnet only via
tailscale serve (OpenELIS through a loopback Caddy hop that verifies the host
CA); the HAPI stores stay on loopback.

Shared scripts take HF_HOST/HF_BASE/HF_PRIVATE with hetzner-master defaults.
Fresh-host fixes found on labnuc: the Podman API is restarted only after a CNI
edit (restarting it killed the Requires= stack unit), the keystore directory is
made traversable for UID 8443 when no image copy-up happened, and new CAs carry
keyUsage/basicConstraints plus key identifiers for strict verifiers.
check-compose.py gains --require-memory-limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HF-13: record labnuc memory and first-boot timings
All checks were successful
Scaffold conformance / test (pull_request) Successful in 1m54s
Scaffold conformance / forgegraph-report (pull_request) Successful in 3s
fbbb97f72a
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
gmackie/hospital-fabric!11
No description provided.