Add deployments/kanrisha: a phased, self-contained deploy.sh for a custom app that runs on a ScoutFS filesystem. Alma/Rocky (RHEL family) only for now. Phase 1 (host prep) is complete and automated: EPEL + the host package set (git tar sparse mt-st mtx sg3_utils pciutils mbuffer wget curl zstd jq bash-completion sos lsof), Docker, and ScoutFS via setup-scoutfs.sh with a prompted-or-globals license key. It then prints a handoff: create + mount a ScoutFS filesystem, then re-run with SCOUTFS_PATH set. Phase 2 (deploy the stack behind Caddy/TLS) is wired but its compose/Caddyfile content is a clearly-marked STUB pending the real Kanrisha compose file. The script auto-selects the phase from whether SCOUTFS_PATH is a live ScoutFS mount; idempotent and re-runnable. Wiring: register kanrisha in automations.sh (DEPLOYMENTS + ask_deployment_vars), add SCOUTFS_LICENSE to globals.env.example, and document it in README (deployments table + Alma/Rocky-only note). No oslib.sh change needed -- os_detect already folds rocky into the rhel family. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
24 lines
1.4 KiB
Bash
24 lines
1.4 KiB
Bash
# Copy to .env and fill in. docker compose picks .env up automatically.
|
|
# deploy.sh (phase 2) seeds .env from this on first run; an existing .env is
|
|
# never overwritten.
|
|
|
|
# ─── Public hostname ────────────────────────────────────────────────────────
|
|
# Bare hostname (no scheme) where Kanrisha will be reached. DNS must point here
|
|
# and 80/443 be reachable before deploy, or the Let's Encrypt request fails.
|
|
KANRISHA_DOMAIN=kanrisha.example.com
|
|
|
|
# Email for Let's Encrypt registration / expiry notifications.
|
|
ACME_EMAIL=admin@example.com
|
|
|
|
# ─── ScoutFS ────────────────────────────────────────────────────────────────
|
|
# Absolute path to the mounted ScoutFS filesystem Kanrisha operates on. You
|
|
# create + mount this between phase 1 and phase 2 (see README). Bind-mounted
|
|
# into the Kanrisha container by docker-compose.yml.
|
|
SCOUTFS_PATH=/mnt/kanrisha
|
|
|
|
# ─── Image tags ─────────────────────────────────────────────────────────────
|
|
CADDY_TAG=2-alpine
|
|
# TODO (part two): set the real Kanrisha image + tag once the compose lands.
|
|
# KANRISHA_IMAGE=
|
|
# KANRISHA_TAG=latest
|