Collapse the override-file matrix into a single docker-compose.yml holding the whole stack: drasl, minecraft, mc-backup, caddy, nmsr, uptime-kuma. Bring-up is now just `docker compose up -d --build`. Removed features (dead-ends for this deployment): - airgap / full asset mirror (mirror-airgap.sh, mirror-mods.sh, 20-mirror.caddy, caddy local-CA export, /ca.crt) - dnsmasq + avahi/mDNS + dns-records.sh + mdns-host-setup.sh + ENABLE_MDNS; DNS is now handled outside this repo (HOST_LAN_IP dropped) - Blessing Skin auth variant (compose + 00-core-blessingskin.caddy + BS_* env) - host-nginx-static variant (docker-compose.nginx.yml, nginx/ulicraft.conf.tmpl) - build-stack.sh and its run modes (online/airgap/core) Production ingress is the only path now: host nginx terminates TLS (LE certs) in front of caddy on a localhost-only port; caddy routes every vhost by Host header. Launcher downloads move mirror/launcher -> launcher/. Docs: README, deploy skill, and plan/ rewritten to match; obsolete plan docs (dnsmasq, blessing-skin, assets-mirror, full-airgap-mirror, dns-and-run-modes) deleted. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
34 lines
1.4 KiB
Bash
Executable File
34 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# render-pack.sh — render every pack template (pack/**/*.tmpl) by injecting
|
|
# ${BASE_DOMAIN}, then rebuild the packwiz index.
|
|
#
|
|
# Pack templates are domain-dependent build output (download URLs, skin API
|
|
# roots, …). This renderer needs ONLY ${BASE_DOMAIN}, so it can run while
|
|
# curating mods before the full deploy config exists.
|
|
# Both tooling/render-config.sh (deploy) and tooling/add-custom-mod.sh call it.
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.." # repo root
|
|
|
|
[ -f .env ] && { set -a; . ./.env; set +a; }
|
|
: "${BASE_DOMAIN:?BASE_DOMAIN unset (set in .env)}"
|
|
command -v envsubst >/dev/null 2>&1 || { echo "missing required tool: envsubst (gettext)" >&2; exit 1; }
|
|
command -v packwiz >/dev/null 2>&1 || { echo "missing required tool: packwiz" >&2; exit 1; }
|
|
[ -f pack/pack.toml ] || { echo "pack/pack.toml not found" >&2; exit 1; }
|
|
|
|
shopt -s globstar nullglob
|
|
tmpls=(pack/**/*.tmpl)
|
|
shopt -u globstar nullglob
|
|
|
|
for t in "${tmpls[@]}"; do
|
|
# Substitute ONLY ${BASE_DOMAIN} so any other literal $-syntax is preserved.
|
|
envsubst '${BASE_DOMAIN}' < "$t" > "${t%.tmpl}"
|
|
echo "rendered ${t%.tmpl}"
|
|
done
|
|
|
|
# index.toml is gitignored build output; seed a minimal one so packwiz refresh
|
|
# (which won't bootstrap a missing index) has something to populate.
|
|
[ -f pack/index.toml ] || printf 'hash-format = "sha256"\n' > pack/index.toml
|
|
( cd pack && packwiz refresh )
|
|
echo "packwiz index refreshed (${#tmpls[@]} template(s))"
|