docs(reference): import Dune: Awakening server-manager references
All checks were successful
CI / backend-types (push) Successful in 10s
CI / frontend-build (push) Successful in 15s
CI / agent-tests (push) Successful in 39s
CI / integration (push) Successful in 22s

Phase 2 references for the host-agent Dune adapter, moved out of volatile /tmp
into docs/reference-repos/ (per Commander). Three upstream projects, .git +
node_modules + compiled binaries stripped (16MB source). Nested AI-instruction
files (.claude/, CLAUDE.md) removed so they don't pollute Corrosion sessions.

- icehunter/    dune-admin (Go+React) — 4 control planes; SETUP_DOCKER.md is the
                closest analog to our agent's Dune docker control plane (compose
                lifecycle, docker logs, RabbitMQ-via-exec, dune Postgres schema)
- adainrivers/  Rust/Tauri desktop — SSH+k8s BattleGroup control, maintenance
                daemon, in-game admin console (Rust idiom reference)
- the4rchangel/ Node web UI replacing battlegroup.bat — matches the Commander's
                Hyper-V self-host path + game-config schema

See docs/reference-repos/README.md for the full index + how we use each.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Vantz Stockwell
2026-06-11 21:08:05 -04:00
parent 0715492ddf
commit 651a35d4be
1334 changed files with 238971 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
#!/sbin/openrc-run
# Alpine OpenRC init script for the Dune server management service.
name="dune-server-service"
description="Dune server management service (Rust)"
command="/opt/dune-server-service/dune-server-service"
command_user="dune:dune"
pidfile="/run/dune-server-service.pid"
supervisor="supervise-daemon"
respawn_delay=10
respawn_max=0
# supervise-daemon redirects stdout/stderr to the file so we can read tracing
# output during boot/crash diagnosis.
supervise_daemon_args="--stdout /var/log/dune-server-service.log --stderr /var/log/dune-server-service.log"
depend() {
need net
after firewall
}
start_pre() {
checkpath --directory --owner dune:dune --mode 0755 /home/dune/.dune
checkpath --directory --owner dune:dune --mode 0700 /home/dune/.dune/state
checkpath --file --owner dune:dune --mode 0644 /var/log/dune-server-service.log
export DUNE_SERVICE_HOME="${DUNE_SERVICE_HOME:-/home/dune}"
export DUNE_DASHBOARD_PORT="${DUNE_DASHBOARD_PORT:-29187}"
if [ -f /etc/dune-server-service.env ]; then
set -a
# shellcheck disable=SC1091
. /etc/dune-server-service.env
set +a
fi
}