1
0
Fork 0
Commit graph

22 commits

Author SHA1 Message Date
2b5f274886 fix(docker): pass NEXT_PUBLIC_ARENA_URL into the production build
Coolify marks this variable build-time and passes it as a build arg, but
the builder stage never declared it, so `next build` saw an empty value
and inlined nothing. The client transport reads
`process.env.NEXT_PUBLIC_ARENA_URL` with dot access, so an empty build
value silently left every install on the HTTP fallback path.

Declare the arg and forward it through ENV before the build, the same way
the GIT_* build args are handled.
2026-10-19 14:05:43 -04:00
d82e8057ba fix(docker): keep runner as the final stage, move runner-arena above it
Coolify builds Main Website without --target (dockerfile_target_build is
null), so Docker takes the LAST stage as the web image. The previous
commit appended runner-arena at the end, and the resulting auto-deploy
(16:33) built the arena image for the web app; it failed its health
check and Coolify kept the old container, so prod never went down.

Reorder: base -> prod-deps -> builder -> runner-arena -> runner (last).
Adds a warning comment at the runner stage so future stages are never
appended after it. The arena service sets an explicit build target.
2026-10-19 12:39:06 -04:00
394db6dfa1 feat(arena): websocket match replication for Ordnance Disposal
Adds a dedicated Node 22 + ws arena server (src/arena) that owns live
Ordnance Disposal matches: drift-corrected 20Hz tick loop with capped
catch-up and tick-drift logging, per-socket snapshot fan-out, 30s jose
ticket auth, and awards via the idempotent results callback route.

Client gains a transport abstraction (transport.ts): WsTransport first
when NEXT_PUBLIC_ARENA_URL is baked into the bundle, HttpTransport
(today's actions + SSE + guarded poll, behavior unchanged) as automatic
fallback after two connection failures or a 5s setup timeout; absent
env var means pure HTTP (kill switch / rollback path). Next actions
proxy the match lifecycle to the arena when ARENA_SECRET +
ARENA_INTERNAL_URL are set; the in-process registry stays untouched as
the default backend.

Deploy wiring: runner-arena Dockerfile target, compose service, env
docs, DEPLOYMENT.md checklist. Tests: arena module suite (19), live
server WS suite (3), prediction harness ws-grade latency scenario.
2026-10-19 12:27:17 -04:00
bcbfa09d68 fix(deploy): ship CHANGELOG.md in the runtime image for /changelog 2026-10-11 16:26:00 -04:00
b226e010ac fix(deploy): copy bun patches into docker install stages
package.json now declares patchedDependencies, so bun install --frozen-lockfile requires patches/ to exist when the prod-deps and builder stages install. The v0.2.56 Coolify build failed with "Couldn't find patch file" because only package.json and bun.lock were COPY-ed. Verified by reproducing the failure without patches/ and a clean frozen-lockfile install (patch applied) with them.
2026-09-30 15:07:19 -04:00
8cb6590ce6 chore(deploy): mount a persistent tiles volume and refresh deploy docs
Create /app/public/tiles in the runner image, bind-mount it in compose, and document the Coolify volume plus upload steps; restructure .gitignore (test artifacts, /public/tiles, backups).

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-09-22 17:58:31 -04:00
962607b90e feat(voiceover): transcode submissions to mp3 via ffmpeg
Normalize every submission to mono 96 kbps MP3 so takes play everywhere regardless of the recording codec; falls back to storing the original file when ffmpeg is unavailable or fails.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-09-07 04:37:10 -04:00
5982781c9e fix(docker): enable healthcheck in Dockerfile with updated parameters 2026-08-28 18:55:05 -04:00
3e99a7f47d chore(docker): disable HEALTHCHECK for easier management with Coolify 2026-08-28 00:54:37 -04:00
10560c1446 fix(version): resolve git metadata from env/SOURCE_COMMIT for Coolify builds
Coolify strips .git from the build context, so git CLI calls in
generate:version-info fail during Docker builds. The script now
resolves metadata in priority order: GIT_* env overrides, then
SOURCE_COMMIT (Coolify's injected build arg, shortened to 7 chars),
then git CLI fallback for local builds. Dockerfile passes the ARGs
through as ENV before the build; DEPLOYMENT.md documents the required
'Include Source Commit in Build' setting.
2026-08-16 18:46:21 -04:00
9dd3226c0a feat(docker): implement retry logic for Bun installation to handle flaky downloads 2026-08-15 16:57:31 -04:00
3685644c74 feat(docker): update deployment documentation and entrypoint script for Node-only runtime 2026-08-15 16:26:35 -04:00
2cbd04af48 feat(docker): update Bun installation to avoid path issues and ensure compatibility 2026-08-15 15:40:25 -04:00
a17ec0a0fd feat(docker): simplify Bun installation and environment variable setup in Dockerfile 2026-08-15 15:32:09 -04:00
40a8f837a7 feat(docker): configure Bun environment variables for interactive shells in Dockerfile 2026-08-15 15:31:06 -04:00
548095308a chore: set bash as the default shell in Dockerfile for improved script execution 2026-08-15 15:26:37 -04:00
38d304974f feat(docker): add curl to Dockerfile and warn about missing AVX2 support in entrypoint 2026-08-15 15:24:22 -04:00
a03842ca3d chore: add bash to Dockerfile for improved script compatibility 2026-08-15 15:19:20 -04:00
937b2cf1fb chore: Use bun install script in Dockerfile (attempted fix for CPU support) 2026-08-15 15:16:11 -04:00
6c97b1a41c feat(docker): gate Discord bot on DISCORD_TOKEN presence in container entrypoint 2026-08-13 20:04:27 -04:00
c08015ed9f chore(deploy): add Coolify-ready Dockerfile and compose stack 2026-08-12 23:10:49 -04:00
Z8MB1E
e4a367489f feat: initial commit 2025-10-15 14:03:31 -04:00