diff options
| author | Stefan Boberg <[email protected]> | 2026-03-16 10:26:14 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-16 10:26:14 +0100 |
| commit | 3c225938929205e8734bb63a50bbf5e65660affb (patch) | |
| tree | ef0683a019b8003282423fc0beb8b3b608ca86b8 /xmake.lua | |
| parent | block/file cloning support for macOS / Linux (#786) (diff) | |
| download | zen-3c225938929205e8734bb63a50bbf5e65660affb.tar.xz zen-3c225938929205e8734bb63a50bbf5e65660affb.zip | |
Add Docker image build for compute workers (#837)
Adds a Dockerfile (Ubuntu 24.04 + WineHQ) and an `xmake docker` task to build and optionally push a zenserver-compute Docker image, enabling Linux deployment of compute workers that run Windows executables via Wine.
Diffstat (limited to 'xmake.lua')
| -rw-r--r-- | xmake.lua | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -382,6 +382,23 @@ task("bundle") bundle() end) +task("docker") + set_menu { + usage = "xmake docker [--push] [--no-wine] [--win-binary PATH] [--tag TAG] [--registry REGISTRY]", + description = "Build Docker image for zenserver compute workers", + options = { + {nil, "push", "k", nil, "Push the image after building"}, + {nil, "no-wine", "k", nil, "Build without Wine (smaller image, Linux-only workers)"}, + {nil, "win-binary", "v", nil, "Path to Windows zenserver.exe to include in image"}, + {nil, "tag", "v", nil, "Override image tag (default: version from VERSION.txt)"}, + {nil, "registry", "v", nil, "Registry prefix (e.g. ghcr.io/epicgames)"}, + } + } + on_run(function () + import("scripts.docker") + docker() + end) + task("kill") set_menu { usage = "xmake kill", |