mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Run the server headless on Linux, add Docker images for it
The server no longer stops when it has no console input on Linux: it reads its own dup of stdin (taken before OpenConsole(), which closes fd 0; Input() returns "" at EOF there), and SIGTERM/SIGINT stop it like "quit". Windows is unchanged. Docker/Compiler: PureBasic 6.41 on debian:trixie-slim (the archive is copied in by hand and git-ignored). Docker/Server: multi-stage, built with the C backend and the optimizer, run on debian:trixie-slim with libsodium and SQLite only, as user bakashrot; config /etc/bakashrot/server.ini, volume /var/lib/bakashrot, port 12345. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RwFeVQCBfcPDfAPqX8z2TF
This commit is contained in:
@@ -39,6 +39,9 @@ operations come before security hardening (`Notes.md`, "Threat model").
|
||||
|
||||
- `Release.ps1 [-Force]` builds the release with 6.40 into `Release\` and
|
||||
smoke-tests it (`-Force` replaces an existing folder of the same name).
|
||||
- Linux: same sources and flags (`-t`, `-e`, `-so` for the DLL), with
|
||||
`libsodium-dev`. `Docker/Compiler/` and `Docker/Server/` build the
|
||||
compiler and server images, see their Dockerfiles.
|
||||
|
||||
## Test
|
||||
|
||||
@@ -86,8 +89,9 @@ suite: they take a few minutes in all.
|
||||
`-File`.
|
||||
- **Bash tool heredocs collapse `\\`**, and PureBasic uses `\` for fields:
|
||||
write edit scripts to files, or use the Edit tool.
|
||||
- **The real server needs a console** (it stops at once without input):
|
||||
tests use `BenchServer.exe` and its stop file instead.
|
||||
- **The real server needs a console on Windows** (it stops at once without
|
||||
input): tests use `BenchServer.exe` and its stop file instead. On Linux
|
||||
it runs on without one, SIGTERM/SIGINT stop it.
|
||||
|
||||
## Working rules
|
||||
|
||||
|
||||
Reference in New Issue
Block a user