Files
archy/apps/qortal/health.sh
ssmithxandClaude Opus 5.5 b33b51100d WIP: qortal app — Core node manifest + rootless image
Qortal Core (v6.1.9) as a manifest-driven app. Upstream ships no image,
so apps/qortal/Dockerfile wraps the official release jar (SHA-256
pinned) on Temurin 17 JRE, uid 1000:100 (data_uid 100999:100099).

- API 12391 auth: open (Qortal Hub sends X-API-KEY, can't do cookie
  login); key is a generated secret written to apikey.txt by the
  entrypoint, which refuses to start with localAuthBypassEnabled.
- Gateway 12380 gated, launched as the main UI.
- P2P 12392 / QDN 12394 auth: none; review allowlists updated.
- qortal-health treats an in-progress bootstrap as healthy so the
  health monitor doesn't restart away a multi-GB download.

WIP: storage size and API whitelist pending the spike on
archy-x250-pa3; image not yet pushed to the mirror; catalog not
regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 00:29:20 +00:00

9 lines
429 B
Bash

#!/bin/sh
# Healthy when the API answers. While Core is still downloading or importing
# its bootstrap (tens of minutes on a fresh install) the API is not up yet;
# report healthy then too, or the health monitor restarts the container and
# throws the partial download away.
curl -fsS -m 5 -o /dev/null http://127.0.0.1:12391/admin/info && exit 0
tail -n 5 /qortal/qortal.log 2>/dev/null | grep -Eqi 'bootstrap' && exit 0
exit 1