mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-19 19:25:56 +00:00
feat: Docker runtime backend for Linux (start, stop, status)
A server folder with Settings/docker.json is a Docker installation: MySQL, the auth server and the world server run in containers controlled through the docker command line. Every other folder is a repack and goes through the unchanged Windows code. driver::run, process::observe and layout::scan check for the marker first and hand over to coa_core::docker. - start: network, runtime image (libraries only, binaries are mounted from Core/), database healthy, world listening, then auth. A container that stops while starting reports the cause found in its log (DatabaseNotRunning, PortInUse, ...). New error code DockerUnavailable (docker missing, stopped, or not usable by this user). - stop: world (180 s to save), auth, database; exit code 0 observed. - observe: container state, health and port readiness mapped to the existing ServiceState. Readiness is a connection that stays open, because Docker's proxy accepts connections before the server inside listens. - passwords go by environment, never on a command line; the remote console is published on 127.0.0.1 only; the server's own database updater is turned off (it needs a mysql client the image does not have and stops the server). Tested: 18 new tests with an in-memory Docker, and a real run through examples/drive: database, world (ready in 11 s) and auth started from a package-shaped folder, stopped with exit code 0 and restarted. Not included: installation, database setup, backups and SQL through the container, updates, firewall/exposure, the client under Wine/Proton.
This commit is contained in:
1 parent
1bcef5f8c2
commit
3da9628b79
12 files changed
+1263
-4
No files matched your search
@@ -104,6 +104,8 @@ const en = {
|
||||
"err.operation_in_progress.message": "The server is busy starting or stopping. Wait a moment and try again.",
|
||||
"err.startup_failed.title": "Server could not start",
|
||||
"err.startup_failed.message": "A service stopped while starting. Check the details for the cause.",
|
||||
"err.docker_unavailable.title": "Docker is not available",
|
||||
"err.docker_unavailable.message": "This server runs in Docker. Install Docker, start it, and make sure your user account may use it, then try again.",
|
||||
"err.hash_mismatch.title": "A downloaded file is damaged",
|
||||
"err.hash_mismatch.message": "The file did not match its checksum and was not used.",
|
||||
"err.path_rejected.title": "That location is not allowed",
|
||||
|
||||
Reference in new issue
Block a user