aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-16 10:26:14 +0100
committerGitHub Enterprise <[email protected]>2026-03-16 10:26:14 +0100
commit3c225938929205e8734bb63a50bbf5e65660affb (patch)
treeef0683a019b8003282423fc0beb8b3b608ca86b8 /xmake.lua
parentblock/file cloning support for macOS / Linux (#786) (diff)
downloadzen-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.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/xmake.lua b/xmake.lua
index 561f9f399..acab78600 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -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",