@wenathlan/saddle 2.1.6 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +170 -66
- package/LICENSE +0 -0
- package/README.md +73 -58
- package/alternatives.ts +0 -0
- package/biome.jsonc +134 -0
- package/boards.json +2 -2
- package/browser.ts +482 -0
- package/cli.ts +274 -0
- package/compute.ts +4 -4
- package/cores.json +2 -2
- package/distribution.ts +731 -0
- package/docker.config +37 -9
- package/docs/.gitkeep +0 -0
- package/docs/actionrecorder.md +0 -0
- package/docs/actionsincident.md +0 -0
- package/docs/alternatives.md +0 -0
- package/docs/architecture.md +0 -0
- package/docs/{architecture-1.8.19.md → architecture1819.md} +0 -0
- package/docs/{architecture-1.8.19.mmd → architecture1819.mmd} +0 -0
- package/docs/artifactavailability.md +2 -2
- package/docs/{artifactresearch-1.8.9.md → artifactresearch189.md} +0 -0
- package/docs/{batches-1816-1820.md → batches1816to1820.md} +0 -0
- package/docs/{brancharchive-2026-08-18.md → brancharchive20260818.md} +0 -0
- package/docs/branchaudit.md +0 -0
- package/docs/browser.md +18 -1
- package/docs/capabilityreport.md +0 -0
- package/docs/comparativeaudit.md +0 -0
- package/docs/consolidation.md +0 -0
- package/docs/{containerplatforms-1.8.17.md → containerplatforms1817.md} +0 -0
- package/docs/{containerplatforms-2.1.0.md → containerplatforms210.md} +1 -1
- package/docs/{documentmap-1.8.12.md → documentmap1812.md} +1 -1
- package/docs/{e2ugh-engine.md → e2ughengine.md} +0 -0
- package/docs/ecosystemplan.md +0 -0
- package/docs/enginearchitecture.md +0 -0
- package/docs/extension.md +13 -2
- package/docs/featureaudit.md +0 -0
- package/docs/{flatbuildresearch-1.8.11.md → flatbuildresearch1811.md} +0 -0
- package/docs/gapmatrix.md +0 -0
- package/docs/hardware.md +0 -0
- package/docs/libraryapi.md +1 -1
- package/docs/{licenseaudit-1.8.12.md → licenseaudit1812.md} +0 -0
- package/docs/logs/examplesession.json +54 -0
- package/docs/memoryengine.md +0 -0
- package/docs/{mobileconversionresearch-1.8.10.md → mobileconversionresearch1810.md} +0 -0
- package/docs/modes.md +0 -0
- package/docs/{nativeidentityresearch-1.8.11.md → nativeidentityresearch1811.md} +0 -0
- package/docs/{native-wrappers.md → nativewrappers.md} +0 -0
- package/docs/ninetymodalities.md +191 -0
- package/docs/optimization.md +0 -0
- package/docs/packageaudit185.md +0 -0
- package/docs/performance.md +0 -0
- package/docs/{planning.1.8.18.md → planning1818.md} +0 -0
- package/docs/{planning.1.8.19.md → planning1819.md} +0 -0
- package/docs/planningengine.md +186 -0
- package/docs/planningninety.md +391 -0
- package/docs/platformpipelineaudit.md +0 -0
- package/docs/platformpipelines.md +0 -0
- package/docs/productindex.md +0 -0
- package/docs/registryresearch.md +0 -0
- package/docs/release.md +0 -0
- package/docs/release17notes.md +0 -0
- package/docs/release181notes.md +0 -0
- package/docs/release182notes.md +0 -0
- package/docs/release184notes.md +0 -0
- package/docs/release185notes.md +0 -0
- package/docs/release18notes.md +0 -0
- package/docs/releaseassets.md +0 -0
- package/docs/{releasenotes-1.8.12.md → releasenotes1812.md} +0 -0
- package/docs/{releasenotes-1.8.13.md → releasenotes1813.md} +2 -2
- package/docs/{releasenotes-1.8.14.md → releasenotes1814.md} +1 -1
- package/docs/{releasenotes-1.8.15.md → releasenotes1815.md} +0 -0
- package/docs/{releasenotes-1.8.16.md → releasenotes1816.md} +0 -0
- package/docs/{releasenotes-1.8.17.md → releasenotes1817.md} +0 -0
- package/docs/{releasenotes-1.8.18.md → releasenotes1818.md} +0 -0
- package/docs/{releasenotes-1.8.19.md → releasenotes1819.md} +0 -0
- package/docs/{reorganization-1.8.8.md → reorganization188.md} +0 -0
- package/docs/{reorganization-1.8.9.md → reorganization189.md} +0 -0
- package/docs/{repo-analysis-1.8.21.json → repoanalysis1821.json} +0 -0
- package/docs/{repo-candidates-1.8.21.jsonl → repocandidates1821.jsonl} +0 -0
- package/docs/{repo-research-1.8.16.md → reporesearch1816.md} +0 -0
- package/docs/{repo-research-1.8.21.md → reporesearch1821.md} +0 -0
- package/docs/{repo-selected-1.8.21.json → reposelected1821.json} +0 -0
- package/docs/{repo-synthesis-1.8.16.md → reposynthesis1816.md} +1 -1
- package/docs/{repo-synthesis-1.8.21.md → reposynthesis1821.md} +0 -0
- package/docs/{research-1.8.18-isolation.md → research1818isolation.md} +0 -0
- package/docs/{research-1.8.19-virtual-browser.md → research1819virtualbrowser.md} +0 -0
- package/docs/roadmapp2p3.md +0 -0
- package/docs/s3compatible.md +0 -0
- package/docs/{scanningresearch-1.8.11.md → scanningresearch1811.md} +0 -0
- package/docs/security.md +0 -0
- package/docs/{securityaudit-1.8.7.md → securityaudit187.md} +0 -0
- package/docs/{securityreferences-1.8.11.md → securityreferences1811.md} +0 -0
- package/docs/{securityresearch-1.8.11.md → securityresearch1811.md} +0 -0
- package/docs/{signingresearch-1.8.12.md → signingresearch1812.md} +0 -0
- package/docs/signingwithoutcertificates.md +0 -0
- package/docs/signpathapplication.md +0 -0
- package/docs/sitemap.md +0 -0
- package/docs/{tauri-glib-risk-1.8.11.md → tauriglibrisk1811.md} +0 -0
- package/docs/todo.md +2 -2
- package/docs/{todo-1.8.15.md → todo1815.md} +1 -1
- package/docs/{todo-1.8.16.md → todo1816.md} +5 -5
- package/docs/{todo-1.8.18.md → todo1818.md} +0 -0
- package/docs/{todo-1.8.19.md → todo1819.md} +0 -0
- package/docs/{toolchainresearch-1.8.9.md → toolchainresearch189.md} +0 -0
- package/docs/toolchains.md +0 -0
- package/docs/usage.md +0 -0
- package/docs/viability.md +0 -0
- package/docs/virtualization.md +0 -0
- package/docs/{web-duplicatecleanup.md → webduplicatecleanup.md} +0 -0
- package/docs/{web-ideas.md → webideas.md} +0 -0
- package/docs/{workflowimprovements-2026-08-19.md → workflowimprovements20260819.md} +0 -0
- package/docs/workflowinputs.md +0 -0
- package/docs/workflowoperations.md +0 -0
- package/docs/workloadlaw.md +104 -0
- package/execution.ts +677 -0
- package/foundation.ts +314 -0
- package/gpumonitor.cpp +0 -0
- package/gpus.json +1 -1
- package/index.ts +38 -29
- package/isolation.ts +84 -0
- package/modalityregistry.ts +1493 -0
- package/{dist/modes.js → modes.ts} +79 -62
- package/mttg.config +1 -1
- package/orchestrator.ts +54 -17
- package/package.json +245 -146
- package/passage.config +0 -0
- package/performance.ts +0 -0
- package/processors.json +1 -1
- package/qemu.config +2 -2
- package/qemubridge.py +0 -0
- package/quantum.ts +0 -0
- package/render.ts +0 -0
- package/sandbox.ts +2035 -0
- package/scheduler.ts +1 -1
- package/security.ts +0 -0
- package/server.ts +52 -0
- package/tiers.ts +9 -3
- package/tsconfig.json +22 -13
- package/virtual.ts +1105 -0
- package/virtualcpu.ts +1 -0
- package/virtualgpu.ts +2 -1
- package/virtualhardware.c +0 -0
- package/virtualhardware.json +2 -2
- package/virtualization.ts +1 -1
- package/virtualizationcore.cpp +0 -0
- package/virtualmemory.ts +0 -0
- package/vm.config.json +2 -2
- package/workloadlaw.ts +293 -0
- package/biome.json +0 -151
- package/dist/acquisition.d.ts +0 -359
- package/dist/acquisition.d.ts.map +0 -1
- package/dist/acquisition.js +0 -629
- package/dist/acquisition.js.map +0 -1
- package/dist/alternatives.d.ts +0 -509
- package/dist/alternatives.d.ts.map +0 -1
- package/dist/alternatives.js +0 -951
- package/dist/alternatives.js.map +0 -1
- package/dist/automation.d.ts +0 -426
- package/dist/automation.d.ts.map +0 -1
- package/dist/automation.js +0 -561
- package/dist/automation.js.map +0 -1
- package/dist/browser.d.ts +0 -562
- package/dist/browser.d.ts.map +0 -1
- package/dist/browser.js +0 -1057
- package/dist/browser.js.map +0 -1
- package/dist/cli.d.ts +0 -17
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -169
- package/dist/cli.js.map +0 -1
- package/dist/communication.d.ts +0 -192
- package/dist/communication.d.ts.map +0 -1
- package/dist/communication.js +0 -418
- package/dist/communication.js.map +0 -1
- package/dist/compute.d.ts +0 -1161
- package/dist/compute.d.ts.map +0 -1
- package/dist/compute.js +0 -2273
- package/dist/compute.js.map +0 -1
- package/dist/distribution.d.ts +0 -529
- package/dist/distribution.d.ts.map +0 -1
- package/dist/distribution.js +0 -811
- package/dist/distribution.js.map +0 -1
- package/dist/docs/example-localjob.d.ts +0 -2
- package/dist/docs/example-localjob.d.ts.map +0 -1
- package/dist/docs/example-localjob.js +0 -15
- package/dist/docs/example-localjob.js.map +0 -1
- package/dist/docs/example-publicapi.d.ts +0 -2
- package/dist/docs/example-publicapi.d.ts.map +0 -1
- package/dist/docs/example-publicapi.js +0 -7
- package/dist/docs/example-publicapi.js.map +0 -1
- package/dist/execution.d.ts +0 -530
- package/dist/execution.d.ts.map +0 -1
- package/dist/execution.js +0 -761
- package/dist/execution.js.map +0 -1
- package/dist/format.d.ts +0 -19
- package/dist/format.d.ts.map +0 -1
- package/dist/format.js +0 -60
- package/dist/format.js.map +0 -1
- package/dist/foundation.d.ts +0 -176
- package/dist/foundation.d.ts.map +0 -1
- package/dist/foundation.js +0 -309
- package/dist/foundation.js.map +0 -1
- package/dist/index.d.ts +0 -735
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1020
- package/dist/index.js.map +0 -1
- package/dist/integration.d.ts +0 -236
- package/dist/integration.d.ts.map +0 -1
- package/dist/integration.js +0 -236
- package/dist/integration.js.map +0 -1
- package/dist/intelligence.d.ts +0 -94
- package/dist/intelligence.d.ts.map +0 -1
- package/dist/intelligence.js +0 -145
- package/dist/intelligence.js.map +0 -1
- package/dist/isolation.d.ts +0 -129
- package/dist/isolation.d.ts.map +0 -1
- package/dist/isolation.js +0 -96
- package/dist/isolation.js.map +0 -1
- package/dist/media.d.ts +0 -344
- package/dist/media.d.ts.map +0 -1
- package/dist/media.js +0 -986
- package/dist/media.js.map +0 -1
- package/dist/modes.d.ts +0 -359
- package/dist/modes.d.ts.map +0 -1
- package/dist/modes.js.map +0 -1
- package/dist/operations.d.ts +0 -67
- package/dist/operations.d.ts.map +0 -1
- package/dist/operations.js +0 -94
- package/dist/operations.js.map +0 -1
- package/dist/orchestrator.d.ts +0 -1339
- package/dist/orchestrator.d.ts.map +0 -1
- package/dist/orchestrator.js +0 -4308
- package/dist/orchestrator.js.map +0 -1
- package/dist/packager/targetcli.js +0 -4
- package/dist/performance.d.ts +0 -416
- package/dist/performance.d.ts.map +0 -1
- package/dist/performance.js +0 -827
- package/dist/performance.js.map +0 -1
- package/dist/quantum.d.ts +0 -810
- package/dist/quantum.d.ts.map +0 -1
- package/dist/quantum.js +0 -2073
- package/dist/quantum.js.map +0 -1
- package/dist/render.d.ts +0 -381
- package/dist/render.d.ts.map +0 -1
- package/dist/render.js +0 -1073
- package/dist/render.js.map +0 -1
- package/dist/scheduler.d.ts +0 -596
- package/dist/scheduler.d.ts.map +0 -1
- package/dist/scheduler.js +0 -1259
- package/dist/scheduler.js.map +0 -1
- package/dist/security.d.ts +0 -501
- package/dist/security.d.ts.map +0 -1
- package/dist/security.js +0 -1170
- package/dist/security.js.map +0 -1
- package/dist/server.d.ts +0 -21
- package/dist/server.d.ts.map +0 -1
- package/dist/server.js +0 -52
- package/dist/server.js.map +0 -1
- package/dist/tiers.d.ts +0 -1002
- package/dist/tiers.d.ts.map +0 -1
- package/dist/tiers.js +0 -2165
- package/dist/tiers.js.map +0 -1
- package/dist/virtual.d.ts +0 -641
- package/dist/virtual.d.ts.map +0 -1
- package/dist/virtual.js +0 -1285
- package/dist/virtual.js.map +0 -1
- package/dist/virtualcpu.d.ts +0 -316
- package/dist/virtualcpu.d.ts.map +0 -1
- package/dist/virtualcpu.js +0 -1180
- package/dist/virtualcpu.js.map +0 -1
- package/dist/virtualgpu.d.ts +0 -345
- package/dist/virtualgpu.d.ts.map +0 -1
- package/dist/virtualgpu.js +0 -1000
- package/dist/virtualgpu.js.map +0 -1
- package/dist/virtualization.d.ts +0 -607
- package/dist/virtualization.d.ts.map +0 -1
- package/dist/virtualization.js +0 -1187
- package/dist/virtualization.js.map +0 -1
- package/dist/virtualmemory.d.ts +0 -818
- package/dist/virtualmemory.d.ts.map +0 -1
- package/dist/virtualmemory.js +0 -1796
- package/dist/virtualmemory.js.map +0 -1
- package/dist/vitest.config.d.ts +0 -3
- package/dist/vitest.config.d.ts.map +0 -1
- package/dist/vitest.config.js +0 -26
- package/dist/vitest.config.js.map +0 -1
- package/dist/webscrape.d.ts +0 -720
- package/dist/webscrape.d.ts.map +0 -1
- package/dist/webscrape.js +0 -2697
- package/dist/webscrape.js.map +0 -1
- package/docs/CONVERSA.txt +0 -1523
- package/docs/architecture-1.8.19.png +0 -0
- package/docs/assets/architecture.svg +0 -45
- package/docs/assets/saddlemark.svg +0 -13
- package/docs/example-localjob.ts +0 -15
- package/docs/example-publicapi.ts +0 -7
- package/docs/saddle.archive.1.8.17.tar.gz.gpg +0 -0
- package/media.ts +0 -1337
- package/web/manifest.json +0 -30
- package/web/readme.md +0 -383
- package/web/tsconfig.json +0 -25
package/Dockerfile
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
# syntax=docker/dockerfile:1
|
|
2
2
|
# saddle v2.0.0 grand merge — THE ONE CONTAINER FILE.
|
|
3
3
|
#
|
|
4
|
+
# build context: this file COPYs from two trees (saddle/ and the
|
|
5
|
+
# engine-ownership sibling vault/), so every build runs from the
|
|
6
|
+
# repository root with an explicit -f: docker build -f saddle/Dockerfile .
|
|
7
|
+
# (add --target saddle-runtime for the node service or --target
|
|
8
|
+
# qemu-runtime for the guest runner). building from inside saddle/
|
|
9
|
+
# breaks the vault COPY - the sibling rides the context beside this
|
|
10
|
+
# directory, never inside it.
|
|
11
|
+
#
|
|
4
12
|
# this Dockerfile carries BOTH container surfaces of the merged repository:
|
|
5
13
|
# 1. the saddle virtual-hardware engine image (the five stages below:
|
|
6
14
|
# builder, python-bridge, qemu, qemu-runtime, runtime) — the default
|
|
7
15
|
# build target, published as ghcr.io/wenathlan/saddle:vhe-<version>
|
|
8
|
-
# across three profiles and
|
|
16
|
+
# across three profiles and eleven architectures;
|
|
9
17
|
# 2. the saddle node-engine image (the saddle-build and saddle-runtime
|
|
10
18
|
# stages at the end of this file, folded from the former
|
|
11
19
|
# dockerfile.saddle) — an explicit build target
|
|
12
20
|
# (`docker build --target saddle-runtime .`), the node 26 storage and
|
|
13
21
|
# compute service published as ghcr.io/wenathlan/saddle:<version>
|
|
14
|
-
# across the
|
|
22
|
+
# across the eleven-arch family standard (amd64, amd64/v2, arm64,
|
|
23
|
+
# arm/v7, arm/v6, ppc64le, s390x, riscv64, 386, mips64le, loong64
|
|
15
24
|
# — the trixie slim base line; the stage also builds the web SPA so
|
|
16
|
-
# the image serves the self-hosted console via `node /app/
|
|
25
|
+
# the image serves the self-hosted console via `node /app/webserver.ts`).
|
|
17
26
|
#
|
|
18
27
|
# saddle v2 (grand merge) - virtual hardware engine, multi-stage, multi-arch image.
|
|
19
28
|
#
|
|
@@ -53,17 +62,22 @@
|
|
|
53
62
|
# build target (docker build / the engine docker run
|
|
54
63
|
# recipe below).
|
|
55
64
|
#
|
|
56
|
-
# platforms: linux/amd64, linux/
|
|
57
|
-
#
|
|
65
|
+
# platforms: linux/amd64, linux/amd64/v2, linux/arm64, linux/arm/v7,
|
|
66
|
+
# linux/arm/v6, linux/ppc64le, linux/s390x, linux/riscv64, linux/386,
|
|
67
|
+
# linux/mips64le and linux/loong64 through buildx --platform (the
|
|
68
|
+
# eleven-arch registry surface — the complete linux platform list
|
|
69
|
+
# docker/buildx carries, the owner's law: eleven OS architectures for
|
|
70
|
+
# every container of every application); every
|
|
58
71
|
# stage compiles for the portable baseline of its target architecture
|
|
59
|
-
# by default (x86-64 / armv8-a / power8 / z196
|
|
60
|
-
#
|
|
61
|
-
#
|
|
72
|
+
# by default (x86-64 / i686 / armv8-a / armv7-a / armv6 / power8 / z196 /
|
|
73
|
+
# rv64gc / mips64r2 / loongarch64, resolved from
|
|
74
|
+
# TARGETARCH and TARGETVARIANT) so the layers stay valid on every host
|
|
75
|
+
# and every gha-cached runner cpu; pass --build-arg VHE_MARCH=native for
|
|
62
76
|
# host-tuned local builds, or an explicit -march value when
|
|
63
77
|
# cross-building for a known deployment target.
|
|
64
78
|
#
|
|
65
79
|
# profiles: the three profiles (max, balanced, lite) are all built for
|
|
66
|
-
# all
|
|
80
|
+
# all eleven architectures; each profile carries a distinct virtual CPU
|
|
67
81
|
# identity (model name, vcpus, threads, ram) baked into /etc/virtual.
|
|
68
82
|
#
|
|
69
83
|
# the one container file (the gateway 1.1.5 standard): the compose stack
|
|
@@ -94,7 +108,7 @@
|
|
|
94
108
|
# -v vmdata:/data/vmdata -v webdata:/data/web \
|
|
95
109
|
# -v ./vm.config.json:/engine/vm.config.json:ro \
|
|
96
110
|
# -e PORT=8080 -e NODE_ENV=production -p 31280:8080 \
|
|
97
|
-
# ghcr.io/wenathlan/saddle:vhe-2.
|
|
111
|
+
# ghcr.io/wenathlan/saddle:vhe-2.0.154
|
|
98
112
|
#
|
|
99
113
|
# vheqemu (the guest runner; build it first with
|
|
100
114
|
# docker build --target qemu-runtime -t saddle/qemu:11.1.0 . because the
|
|
@@ -128,7 +142,7 @@
|
|
|
128
142
|
# -e VHE_GPU_PROFILE=b200 -e VHE_GPUS=8 -e VHE_MIG=1 \
|
|
129
143
|
# -e VHE_SMI_DRIVER=575.57.08 -e VHE_SMI_CUDA=12.9 \
|
|
130
144
|
# -e VHE_SMI_INTERVAL=30 -e VHE_SKIP_XVFB=1 -e VHE_SKIP_VALIDATE=1 \
|
|
131
|
-
# ghcr.io/wenathlan/saddle:vhe-2.
|
|
145
|
+
# ghcr.io/wenathlan/saddle:vhe-2.0.154 /bin/bash -c '
|
|
132
146
|
# while true; do
|
|
133
147
|
# /usr/local/bin/nvidia-smi "$VHE_GPU_PROFILE" "$VHE_GPUS" || true
|
|
134
148
|
# sleep "$VHE_SMI_INTERVAL"
|
|
@@ -145,7 +159,7 @@
|
|
|
145
159
|
# -v qemudata:/data/qemudata \
|
|
146
160
|
# -v ./qemubridge.py:/engine/qemubridge.py:ro \
|
|
147
161
|
# -e QMP_SOCKET=/run/vhe/vm.qmp -e PYTHONUNBUFFERED=1 \
|
|
148
|
-
# ghcr.io/wenathlan/saddle:vhe-2.
|
|
162
|
+
# ghcr.io/wenathlan/saddle:vhe-2.0.154 \
|
|
149
163
|
# python3 /engine/qemubridge.py --socket /run/vhe/vm.qmp status
|
|
150
164
|
#
|
|
151
165
|
# saddle-node (the node-engine service, the former compose.yml
|
|
@@ -159,7 +173,7 @@
|
|
|
159
173
|
# --log-driver json-file --log-opt max-size=50m --log-opt max-file=5 \
|
|
160
174
|
# --tmpfs /tmp:size=2g,mode=1777 \
|
|
161
175
|
# -e SADDLE_MEMORY_ENGINE=ram -e SBOT_PLATFORM= -e SBOT_CDN_URL= \
|
|
162
|
-
# ghcr.io/wenathlan/saddle:2.
|
|
176
|
+
# ghcr.io/wenathlan/saddle:2.0.154 \
|
|
163
177
|
# node dist/cli.js plan
|
|
164
178
|
#
|
|
165
179
|
# observability (the former prometheus scraper of the full profile)
|
|
@@ -175,7 +189,7 @@
|
|
|
175
189
|
# ever binds a hardcoded address.
|
|
176
190
|
|
|
177
191
|
# Base image contract (the gateway family policy): tags only, never a
|
|
178
|
-
# @sha256: digest. A single digest cannot serve the
|
|
192
|
+
# @sha256: digest. A single digest cannot serve the eleven-architecture
|
|
179
193
|
# matrix this image ships (the registry resolves the tag per platform),
|
|
180
194
|
# and a digest written here would be a hardcoded hash - the checksums
|
|
181
195
|
# that exist are generated by the GitHub runners and published as
|
|
@@ -204,12 +218,15 @@ ARG QEMU_VERSION="11.1.0"
|
|
|
204
218
|
FROM ${UBUNTU} AS builder
|
|
205
219
|
ARG TARGETPLATFORM
|
|
206
220
|
ARG TARGETARCH
|
|
221
|
+
ARG TARGETVARIANT
|
|
207
222
|
ARG BUILDARCH
|
|
208
223
|
ARG LLVM_VERSION
|
|
209
224
|
ARG NODE_VERSION
|
|
210
225
|
ARG MESA_VERSION
|
|
211
|
-
# empty = portable baseline resolved from TARGETARCH
|
|
212
|
-
#
|
|
226
|
+
# empty = portable baseline resolved from TARGETARCH (and TARGETVARIANT
|
|
227
|
+
# for the 32-bit arm legs) at the compile step (x86-64 / i686 / armv8-a /
|
|
228
|
+
# armv7-a / armv6 / power8 / z196 / rv64gc / mips64r2 / loongarch64);
|
|
229
|
+
# "native" is the opt-in for host-tuned local builds.
|
|
213
230
|
ARG VHE_MARCH=""
|
|
214
231
|
# NOTE: the VHE_PROFILE_* build-args are deliberately NOT declared in the
|
|
215
232
|
# builder stage. The builder compiles mesa/node/native shims which are
|
|
@@ -287,15 +304,18 @@ RUN set -eux; \
|
|
|
287
304
|
# it off, the build is rust-free.
|
|
288
305
|
|
|
289
306
|
# node 26.7.0 (current line, v8 14.6, temporal api, NODE_MODULE_VERSION 147).
|
|
290
|
-
# amd64 and arm64 install the pinned nodesource
|
|
291
|
-
# nodesource apt repo does not carry
|
|
292
|
-
#
|
|
307
|
+
# amd64 (with its amd64/v2 variant) and arm64 install the pinned nodesource
|
|
308
|
+
# deb; every architecture the nodesource apt repo does not carry (ppc64le,
|
|
309
|
+
# s390x, riscv64, loong64, mips64le, arm and 386 - the eleven-arch law's
|
|
310
|
+
# non-nodesource legs) falls back to the official nodejs.org binary tarball
|
|
311
|
+
# (mapped to the nodejs.org arch spellings: x64, armv7l, mips64el, x86),
|
|
312
|
+
# extracted straight into /usr so bin/node, include/node and
|
|
293
313
|
# lib/node_modules land exactly where the nodesource package (and the runtime
|
|
294
314
|
# stage COPY --from=builder directives) expect them. the node headers
|
|
295
315
|
# (/usr/include/node) are required by the ADDON build mode of gpumonitor.cpp.
|
|
296
316
|
RUN set -eux; \
|
|
297
317
|
nodesrc_ok="1"; \
|
|
298
|
-
case "${TARGETARCH}" in ppc64le|s390x|riscv64|loongarch64) nodesrc_ok="0" ;; esac; \
|
|
318
|
+
case "${TARGETARCH}" in ppc64le|s390x|riscv64|loong64|loongarch64|mips64le|arm|386) nodesrc_ok="0" ;; esac; \
|
|
299
319
|
if [ "$nodesrc_ok" = "1" ]; then \
|
|
300
320
|
# the version-line setup script (setup_26.x) is the nodesource
|
|
301
321
|
# distribution contract: no hardcoded digest in this file. The
|
|
@@ -312,7 +332,14 @@ RUN set -eux; \
|
|
|
312
332
|
"nodejs=${NODE_VERSION}-1nodesource1" \
|
|
313
333
|
|| apt-get install -y --no-install-recommends nodejs; \
|
|
314
334
|
else \
|
|
315
|
-
|
|
335
|
+
case "${TARGETARCH}" in \
|
|
336
|
+
amd64) nodearch="x64" ;; \
|
|
337
|
+
386|i386) nodearch="x86" ;; \
|
|
338
|
+
arm) nodearch="armv7l" ;; \
|
|
339
|
+
mips64le) nodearch="mips64el" ;; \
|
|
340
|
+
*) nodearch="${TARGETARCH}" ;; \
|
|
341
|
+
esac; \
|
|
342
|
+
tarball="node-v${NODE_VERSION}-linux-${nodearch}.tar.xz"; \
|
|
316
343
|
curl -fsSL --retry 5 --retry-all-errors -o "/tmp/${tarball}" \
|
|
317
344
|
"https://nodejs.org/dist/v${NODE_VERSION}/${tarball}"; \
|
|
318
345
|
tar -xJf "/tmp/${tarball}" -C /usr --strip-components=1; \
|
|
@@ -323,9 +350,11 @@ RUN set -eux; \
|
|
|
323
350
|
# (nodesource node 26.7.0 ships npm 11.19.0) and surgically refresh
|
|
324
351
|
# the four nested dependencies whose bundled versions carry the CVEs
|
|
325
352
|
# the trivy release gate rejects (brace-expansion CVE-2026-14257 /
|
|
326
|
-
# CVE-2026-69152
|
|
327
|
-
# CVE-2026-
|
|
328
|
-
# CVE-2026-
|
|
353
|
+
# CVE-2026-69152 / CVE-2026-102276 / CVE-2026-102278, ip-address
|
|
354
|
+
# CVE-2026-69192 / CVE-2026-54272 / CVE-2026-69198, tar
|
|
355
|
+
# CVE-2026-73566, undici CVE-2026-16728 / CVE-2026-16729 /
|
|
356
|
+
# CVE-2026-15157 / CVE-2026-109383 / CVE-2026-109869 /
|
|
357
|
+
# CVE-2026-19534 / CVE-2026-87018). published npm tarballs freeze
|
|
329
358
|
# their bundled node_modules at publish time, so the swap alone
|
|
330
359
|
# still ships brace-expansion 5.0.7; each fixed release is packed
|
|
331
360
|
# separately and extracted over the nested path, then asserted: the
|
|
@@ -358,10 +387,10 @@ RUN set -eux; \
|
|
|
358
387
|
fi; \
|
|
359
388
|
echo "npm tree $fname $fgot"; \
|
|
360
389
|
}; \
|
|
361
|
-
fixdep brace-expansion 5.0.
|
|
390
|
+
fixdep brace-expansion 5.0.11; \
|
|
362
391
|
fixdep ip-address 10.3.1; \
|
|
363
392
|
fixdep tar 7.5.21; \
|
|
364
|
-
fixdep undici 6.
|
|
393
|
+
fixdep undici 6.29.1; \
|
|
365
394
|
rm -rf /root/.npm 2>/dev/null || true
|
|
366
395
|
|
|
367
396
|
# mesa 26.2.1 from source (the "build" arm of the PPA-or-build policy):
|
|
@@ -454,17 +483,25 @@ RUN set -eux; \
|
|
|
454
483
|
# without one). virtualizationcore.cpp additionally builds its selftest
|
|
455
484
|
# binary and runs it: the stage fails if a single assert trips.
|
|
456
485
|
WORKDIR /src
|
|
457
|
-
COPY virtualhardware.c gpumonitor.cpp virtualizationcore.cpp /src/libs/
|
|
486
|
+
COPY saddle/virtualhardware.c saddle/gpumonitor.cpp saddle/virtualizationcore.cpp /src/libs/
|
|
458
487
|
RUN set -eux; \
|
|
459
488
|
# portable baseline per architecture, with the ARCH FLAG the compiler
|
|
460
489
|
# family actually accepts: x86 and arm speak -march; the ppc64le gcc
|
|
461
490
|
# port rejects '-march=power8' ('did you mean -mcpu=power8?') so that
|
|
462
|
-
# architecture selects the -mcpu spelling; s390x accepts -march=z196
|
|
491
|
+
# architecture selects the -mcpu spelling; s390x accepts -march=z196;
|
|
492
|
+
# the eleven-arch law's remaining legs resolve their own baselines
|
|
493
|
+
# (armv7-a / armv6 by TARGETVARIANT, rv64gc, loongarch64, mips64r2,
|
|
494
|
+
# i686 for the 386 leg).
|
|
463
495
|
archflag="-march"; \
|
|
464
496
|
case "${TARGETARCH}" in \
|
|
465
497
|
arm64|aarch64) march="armv8-a" ;; \
|
|
498
|
+
arm) if [ "${TARGETVARIANT}" = "v7" ]; then march="armv7-a"; else march="armv6"; fi ;; \
|
|
466
499
|
ppc64le) march="power8"; archflag="-mcpu" ;; \
|
|
467
500
|
s390x) march="z196" ;; \
|
|
501
|
+
riscv64) march="rv64gc" ;; \
|
|
502
|
+
loong64|loongarch64) march="loongarch64" ;; \
|
|
503
|
+
mips64le) march="mips64r2" ;; \
|
|
504
|
+
386|i386) march="i686" ;; \
|
|
468
505
|
*) march="x86-64" ;; \
|
|
469
506
|
esac; \
|
|
470
507
|
if [ -n "${VHE_MARCH}" ]; then march="${VHE_MARCH}"; archflag="-march"; fi; \
|
|
@@ -536,7 +573,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
|
536
573
|
# (qemu-bridge/cffi wheels) because the bridge talks raw QMP over a unix
|
|
537
574
|
# socket without any native binding. the py_compile run is the syntax gate
|
|
538
575
|
# (error catcher: a bridge that does not compile fails the image build).
|
|
539
|
-
COPY qemubridge.py /bridge/qemubridge.py
|
|
576
|
+
COPY saddle/qemubridge.py /bridge/qemubridge.py
|
|
540
577
|
RUN set -eux; \
|
|
541
578
|
python3 -m py_compile /bridge/qemubridge.py; \
|
|
542
579
|
python3 /bridge/qemubridge.py --help >/dev/null; \
|
|
@@ -641,29 +678,44 @@ ENTRYPOINT ["/usr/bin/tini", "--", "qemu-system-x86_64"]
|
|
|
641
678
|
# ---------------------------------------------------------------------------
|
|
642
679
|
# saddle-build: the node-engine build stage (defined here, before the
|
|
643
680
|
# vhe runtime, so BOTH container surfaces can consume its output: the
|
|
644
|
-
# vhe runtime copies the built web SPA
|
|
645
|
-
# the saddle-runtime stage copies the engine dist plus the
|
|
646
|
-
#
|
|
647
|
-
# QEMU): its outputs are platform-independent static/js
|
|
681
|
+
# vhe runtime copies the built web SPA beside the console server at
|
|
682
|
+
# /engine and the saddle-runtime stage copies the engine dist plus the
|
|
683
|
+
# same staged SPA - one build, two consumers). The stage runs native
|
|
684
|
+
# (never under QEMU): its outputs are platform-independent static/js
|
|
685
|
+
# payloads.
|
|
648
686
|
|
|
649
687
|
# the build stage pins to the native build platform ($BUILDPLATFORM): its
|
|
650
688
|
# outputs (the engine dist, pure js, and the web SPA, static assets) are
|
|
651
689
|
# architecture-independent, while the tailwind/lightningcss pipeline only
|
|
652
690
|
# ships native bindings for the builder platforms - the per-arch legs never
|
|
653
|
-
# run it under QEMU.
|
|
654
|
-
|
|
691
|
+
# run it under QEMU. The base rides the family tag contract (tags only,
|
|
692
|
+
# never a @sha256: digest - a single digest cannot serve the
|
|
693
|
+
# eleven-architecture matrix the registry resolves per platform).
|
|
694
|
+
FROM --platform=$BUILDPLATFORM node:26.13.0-slim AS saddle-build
|
|
655
695
|
|
|
656
|
-
ARG SADDLE_VERSION
|
|
696
|
+
ARG SADDLE_VERSION=2.0.154
|
|
657
697
|
WORKDIR /app
|
|
658
698
|
|
|
659
699
|
ENV NPM_CONFIG_LEGACY_PEER_DEPS=true
|
|
660
700
|
|
|
661
|
-
COPY package.json package-lock.json ./
|
|
701
|
+
COPY saddle/package.json saddle/package-lock.json ./
|
|
662
702
|
RUN npm ci --ignore-scripts --legacy-peer-deps
|
|
663
|
-
COPY
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
703
|
+
COPY saddle/ .
|
|
704
|
+
# the engine-ownership sibling: the saddle labels resolve
|
|
705
|
+
# ../vault/labelstore.ts (the node-side fork reads the source file raw),
|
|
706
|
+
# so the vault sources ride the context beside the saddle and land at
|
|
707
|
+
# /vault where the import resolves (the family context fix).
|
|
708
|
+
COPY vault/ /vault
|
|
709
|
+
RUN npm run web:build:pages \
|
|
710
|
+
# the theme build emits the hashed SPA bundles straight at the app
|
|
711
|
+
# root (the family static-first vite contract): stage them into a
|
|
712
|
+
# clean folder so the runtime stages copy exactly the console
|
|
713
|
+
# surface - the shell, the hashed js/css bundles and the icon and
|
|
714
|
+
# manifest assets the shell references. the extension popup
|
|
715
|
+
# stylesheet is the one root css that never belongs to the spa.
|
|
716
|
+
&& mkdir -p /out/spa \
|
|
717
|
+
&& cp index.html *.js *.css *.svg *.webmanifest /out/spa/ \
|
|
718
|
+
&& rm -f /out/spa/popup.css
|
|
667
719
|
|
|
668
720
|
FROM ${UBUNTU} AS runtime
|
|
669
721
|
ARG TARGETARCH
|
|
@@ -895,19 +947,30 @@ COPY --from=python-bridge /bridge/qemubridge.py /engine/qemubridge.py
|
|
|
895
947
|
# the engine sources and the specification files consumed at runtime
|
|
896
948
|
# (docker.config "final" stage copies the whole tree; the flat layout
|
|
897
949
|
# keeps that a single COPY layer).
|
|
898
|
-
COPY
|
|
899
|
-
COPY processors.json gpus.json cores.json boards.json vm.config.json virtualhardware.json /engine/
|
|
900
|
-
COPY qemu.config mttg.config passage.config docker.config /engine/
|
|
950
|
+
COPY saddle/*.ts saddle/package.json saddle/tsconfig.json saddle/biome.jsonc /engine/
|
|
951
|
+
COPY saddle/processors.json saddle/gpus.json saddle/cores.json saddle/boards.json saddle/vm.config.json saddle/virtualhardware.json /engine/
|
|
952
|
+
COPY saddle/qemu.config saddle/mttg.config saddle/passage.config saddle/docker.config saddle/mime.types /engine/
|
|
953
|
+
# the engine-ownership sibling: db.ts pulls labels.ts whose
|
|
954
|
+
# ../vault/labelstore.ts import resolves at /vault - the vault source
|
|
955
|
+
# rides the context beside the saddle and lands at /vault where the
|
|
956
|
+
# import resolves (the same family context fix as the saddle-build
|
|
957
|
+
# stage), so the engine webserver below finds the label store.
|
|
958
|
+
COPY vault/labelstore.ts /vault/labelstore.ts
|
|
901
959
|
|
|
902
960
|
# the web node ships inside the main container: the mesh edition (auth,
|
|
903
961
|
# sqlite database, dashboard and the browser sandbox pages) runs from the
|
|
904
962
|
# same image, so one container serves the engine AND the web surface.
|
|
905
|
-
# run it with: docker run ghcr.io/wenathlan/saddle node /engine/
|
|
906
|
-
COPY
|
|
907
|
-
#
|
|
908
|
-
#
|
|
909
|
-
#
|
|
910
|
-
|
|
963
|
+
# run it with: docker run ghcr.io/wenathlan/saddle node /engine/webserver.ts
|
|
964
|
+
# (the console server is a root engine source - the COPY *.ts line above
|
|
965
|
+
# already lands it at /engine together with its console stack, and the
|
|
966
|
+
# extension denylist of its static resolver keeps every .ts/.json/.sql
|
|
967
|
+
# source unreachable).
|
|
968
|
+
# the built web SPA (vite, staged by saddle-build): the theme build emits
|
|
969
|
+
# the hashed bundles straight at the app root, so the staged spa lands
|
|
970
|
+
# beside the console server at /engine and webserver.ts serves it from
|
|
971
|
+
# its own module directory - the unified React interface that absorbed
|
|
972
|
+
# the former static pages.
|
|
973
|
+
COPY --from=saddle-build /out/spa /engine/
|
|
911
974
|
|
|
912
975
|
RUN set -eux; \
|
|
913
976
|
chmod 0755 /usr/local/bin/nvidia-smi /usr/local/bin/aetherforge; \
|
|
@@ -916,8 +979,13 @@ RUN set -eux; \
|
|
|
916
979
|
mkdir -p /etc/OpenCL/vendors; \
|
|
917
980
|
case "${TARGETARCH}" in \
|
|
918
981
|
arm64|aarch64) ln -sf lvp_icd.aarch64.json /usr/share/vulkan/icd.d/lvp_icd.json ;; \
|
|
982
|
+
arm) ln -sf lvp_icd.arm.json /usr/share/vulkan/icd.d/lvp_icd.json ;; \
|
|
919
983
|
ppc64le) ln -sf lvp_icd.ppc64le.json /usr/share/vulkan/icd.d/lvp_icd.json ;; \
|
|
920
984
|
s390x) ln -sf lvp_icd.s390x.json /usr/share/vulkan/icd.d/lvp_icd.json ;; \
|
|
985
|
+
riscv64) ln -sf lvp_icd.riscv64.json /usr/share/vulkan/icd.d/lvp_icd.json ;; \
|
|
986
|
+
loong64|loongarch64) ln -sf lvp_icd.loongarch64.json /usr/share/vulkan/icd.d/lvp_icd.json ;; \
|
|
987
|
+
mips64le) ln -sf lvp_icd.mips64.json /usr/share/vulkan/icd.d/lvp_icd.json ;; \
|
|
988
|
+
386|i386) ln -sf lvp_icd.x86.json /usr/share/vulkan/icd.d/lvp_icd.json ;; \
|
|
921
989
|
*) ln -sf lvp_icd.x86_64.json /usr/share/vulkan/icd.d/lvp_icd.json ;; \
|
|
922
990
|
esac; \
|
|
923
991
|
ldconfig; \
|
|
@@ -1271,7 +1339,7 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --start-interval=5s
|
|
|
1271
1339
|
# OCI labels for registry introspection.
|
|
1272
1340
|
LABEL org.opencontainers.image.title="saddle virtual-hardware engine (the grand merge)" \
|
|
1273
1341
|
org.opencontainers.image.description="100% software virtual hardware: per-profile CPU/memory spoofing via LD_PRELOAD (max/balanced/lite), mesa 26.2.1 llvmpipe/lavapipe/rusticl, QEMU 11.1.0 TCG/MTTCG, virtual nvidia-smi adapter + NVML/CUDA shims, node 26.7.0, python bridge" \
|
|
1274
|
-
org.opencontainers.image.version="2.
|
|
1342
|
+
org.opencontainers.image.version="2.0.154" \
|
|
1275
1343
|
org.opencontainers.image.licenses="MIT" \
|
|
1276
1344
|
org.opencontainers.image.source="https://github.com/wenathlan/saddle" \
|
|
1277
1345
|
org.opencontainers.image.documentation="https://github.com/wenathlan/saddle/blob/main/README.md" \
|
|
@@ -1302,6 +1370,14 @@ VOLUME /data /cache/mesa_shader_cache
|
|
|
1302
1370
|
# pid 1.
|
|
1303
1371
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
1304
1372
|
|
|
1373
|
+
# the engine service command: without a CMD the entrypoint exec "$@"
|
|
1374
|
+
# fell back to /bin/bash and the engine recipe (host 31280 -> container
|
|
1375
|
+
# 8080) bound nothing. the webserver is the console server the COPY
|
|
1376
|
+
# above landed at /engine: the default command starts it, and the
|
|
1377
|
+
# entrypoint exports PORT (8080 unless -e PORT overrides) before the
|
|
1378
|
+
# exec, so the service answers on 8080 out of the box.
|
|
1379
|
+
CMD ["node", "/engine/webserver.ts"]
|
|
1380
|
+
|
|
1305
1381
|
# ══════════════════════════════════════════════════════════════════════
|
|
1306
1382
|
# saddle node-engine stages — the storage/compute node service of the
|
|
1307
1383
|
# grand merge (folded verbatim from the former dockerfile.saddle: the
|
|
@@ -1310,9 +1386,9 @@ ENTRYPOINT ["/entrypoint.sh"]
|
|
|
1310
1386
|
# docker build --target saddle-runtime -t saddle:<version> .
|
|
1311
1387
|
# ══════════════════════════════════════════════════════════════════════
|
|
1312
1388
|
|
|
1313
|
-
FROM node:26.
|
|
1389
|
+
FROM node:26.13.0-slim AS saddle-runtime
|
|
1314
1390
|
|
|
1315
|
-
ARG SADDLE_VERSION
|
|
1391
|
+
ARG SADDLE_VERSION=2.0.154
|
|
1316
1392
|
LABEL org.opencontainers.image.title="Saddle" \
|
|
1317
1393
|
org.opencontainers.image.description="Storage-backed browser and compute engine (the grand-merge node service)" \
|
|
1318
1394
|
org.opencontainers.image.source="https://github.com/wenathlan/saddle" \
|
|
@@ -1335,17 +1411,23 @@ RUN apt-get update \
|
|
|
1335
1411
|
&& rm -rf /var/lib/apt/lists/* \
|
|
1336
1412
|
&& npm install --global npm@12.0.2 \
|
|
1337
1413
|
&& tempdir="$(mktemp -d)" \
|
|
1338
|
-
&& npm pack brace-expansion@5.0.
|
|
1339
|
-
&& mkdir -p /usr/local/lib/node_modules/npm/node_modules/brace-expansion /usr/local/lib/node_modules/npm/node_modules/ip-address /usr/local/lib/node_modules/npm/node_modules/tar \
|
|
1340
|
-
&& tar -xzf "$tempdir/brace-expansion-5.0.
|
|
1414
|
+
&& npm pack brace-expansion@5.0.11 ip-address@10.3.1 tar@7.5.22 undici@6.29.1 --pack-destination "$tempdir" \
|
|
1415
|
+
&& mkdir -p /usr/local/lib/node_modules/npm/node_modules/brace-expansion /usr/local/lib/node_modules/npm/node_modules/ip-address /usr/local/lib/node_modules/npm/node_modules/tar /usr/local/lib/node_modules/npm/node_modules/undici \
|
|
1416
|
+
&& tar -xzf "$tempdir/brace-expansion-5.0.11.tgz" --strip-components=1 -C /usr/local/lib/node_modules/npm/node_modules/brace-expansion \
|
|
1341
1417
|
&& tar -xzf "$tempdir/ip-address-10.3.1.tgz" --strip-components=1 -C /usr/local/lib/node_modules/npm/node_modules/ip-address \
|
|
1342
1418
|
# the npm@12.0.2 tarball freezes its bundled node_modules at publish
|
|
1343
1419
|
# time (the same lesson as the vhe builder's fixdep): its tar@7.5.19
|
|
1344
1420
|
# carries CVE-2026-73566 (long-path DoS), fixed in 7.5.21+. The
|
|
1345
1421
|
# lockfile already resolves app tar to 7.5.22 - the global npm tree
|
|
1346
1422
|
# gets the same treatment and the version is asserted after install.
|
|
1423
|
+
# The same freeze ships brace-expansion 5.0.9 (CVE-2026-102276 /
|
|
1424
|
+
# CVE-2026-102278, fixed in 5.0.10+) and undici 6.28.0 (CVE-2026-109383
|
|
1425
|
+
# / CVE-2026-109869 / CVE-2026-19534 / CVE-2026-87018, fixed in
|
|
1426
|
+
# 6.29.1+): both carriers ride the swap and the assert proves it.
|
|
1347
1427
|
&& tar -xzf "$tempdir/tar-7.5.22.tgz" --strip-components=1 -C /usr/local/lib/node_modules/npm/node_modules/tar \
|
|
1428
|
+
&& tar -xzf "$tempdir/undici-6.29.1.tgz" --strip-components=1 -C /usr/local/lib/node_modules/npm/node_modules/undici \
|
|
1348
1429
|
&& test "$(node -p "require('/usr/local/lib/node_modules/npm/node_modules/tar/package.json').version")" = "7.5.22" \
|
|
1430
|
+
&& test "$(node -p "require('/usr/local/lib/node_modules/npm/node_modules/undici/package.json').version")" = "6.29.1" \
|
|
1349
1431
|
&& rm -rf "$tempdir" \
|
|
1350
1432
|
&& npm ci --omit=dev --ignore-scripts --legacy-peer-deps \
|
|
1351
1433
|
# prune the vendored build toolchains of optional native deps: the
|
|
@@ -1356,17 +1438,39 @@ RUN apt-get update \
|
|
|
1356
1438
|
# degrades to a no-op at runtime - the sources are dead weight.
|
|
1357
1439
|
&& rm -rf node_modules/cpu-features/deps \
|
|
1358
1440
|
&& find node_modules -type f -name Dockerfile -delete
|
|
1359
|
-
|
|
1360
|
-
#
|
|
1361
|
-
#
|
|
1362
|
-
#
|
|
1363
|
-
#
|
|
1364
|
-
#
|
|
1365
|
-
|
|
1441
|
+
# the web service surface (self-hosted console): the staged spa plus the
|
|
1442
|
+
# pure-node server stack - zero npm dependencies, the node 26 runtime
|
|
1443
|
+
# carries everything (node:sqlite, node:crypto, native type stripping
|
|
1444
|
+
# for the .ts sources). the console set closes the whole import graph:
|
|
1445
|
+
# webserver.ts pulls modalityregistry.ts, edgeplane.ts and
|
|
1446
|
+
# workloadlaw.ts; edgeplane.ts pulls foundation.ts and the edgelandes
|
|
1447
|
+
# family (edgelandes.ts, edgelandeshost.ts, edgelandesinproc.ts,
|
|
1448
|
+
# edgelandesvirtual.ts, edgelandesninety.ts); db.ts pulls labels.ts
|
|
1449
|
+
# whose ../vault/labelstore.ts import resolves at /vault (the family
|
|
1450
|
+
# context fix - the vault source lands beside /app the same way the
|
|
1451
|
+
# saddle-build stage lands it). with the graph closed, node
|
|
1452
|
+
# webserver.ts starts clean; before the fix the container crashed at
|
|
1453
|
+
# boot with module-not-found.
|
|
1454
|
+
# run the console with: docker run saddle:<version> node webserver.ts
|
|
1455
|
+
COPY --from=saddle-build /app/webserver.ts /app/db.ts /app/labels.ts /app/auth.ts /app/mesh.ts /app/sandbox.ts /app/sandboxprofile.ts /app/sandboxenvprofile.ts /app/sandboxquota.ts /app/modalityregistry.ts /app/edgeplane.ts /app/workloadlaw.ts /app/foundation.ts /app/edgelandes.ts /app/edgelandeshost.ts /app/edgelandesinproc.ts /app/edgelandesvirtual.ts /app/edgelandesninety.ts /app/mime.types /app/init.sql /app/schema.prisma ./
|
|
1456
|
+
# the label store of the console stack: labels.ts (pulled by db.ts)
|
|
1457
|
+
# resolves ../vault/labelstore.ts at /vault - the same family context
|
|
1458
|
+
# fix the saddle-build stage applies.
|
|
1459
|
+
COPY --from=saddle-build /vault/labelstore.ts /vault/labelstore.ts
|
|
1460
|
+
COPY --from=saddle-build /out/spa ./
|
|
1366
1461
|
|
|
1367
1462
|
USER node
|
|
1368
1463
|
|
|
1369
|
-
|
|
1464
|
+
# the console service doors: the webserver answers the engine api and the
|
|
1465
|
+
# staged spa on the saddle port (the source-is-library law runs the .ts
|
|
1466
|
+
# graph natively - node 26 strips the types, zero npm dependencies).
|
|
1467
|
+
ENV SADDLE_PORT=8080 \
|
|
1468
|
+
SADDLE_HOST=0.0.0.0
|
|
1469
|
+
|
|
1470
|
+
EXPOSE 8080
|
|
1471
|
+
|
|
1472
|
+
# the health probe rides the public /health route the webserver answers
|
|
1473
|
+
# (node fetch, zero wget dependency on the slim debian base).
|
|
1474
|
+
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 CMD ["node", "-e", "fetch('http://127.0.0.1:8080/health').then((r)=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"]
|
|
1370
1475
|
|
|
1371
|
-
ENTRYPOINT ["node", "
|
|
1372
|
-
CMD ["help"]
|
|
1476
|
+
ENTRYPOINT ["node", "webserver.ts"]
|
package/LICENSE
CHANGED
|
File without changes
|