@mybase-dev/cli 1.0.10 → 1.0.11
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/dist/mybase.js +10 -3
- package/package.json +1 -1
package/dist/mybase.js
CHANGED
|
@@ -109,7 +109,7 @@ var package_default;
|
|
|
109
109
|
var init_package = __esm(() => {
|
|
110
110
|
package_default = {
|
|
111
111
|
name: "@mybase-dev/cli",
|
|
112
|
-
version: "1.0.
|
|
112
|
+
version: "1.0.11",
|
|
113
113
|
description: "The mybase CLI: projects, keys, cron, queues, cache, rate limits, analytics, docs, and agent setup for a self-hosted mybase.",
|
|
114
114
|
type: "module",
|
|
115
115
|
repository: {
|
|
@@ -2370,8 +2370,15 @@ function checkSandboxDocker(info, endpoint, platform = process.platform) {
|
|
|
2370
2370
|
throw new CliError("sandboxes support Linux amd64 and arm64 hosts only (use a 64-bit OS on a Raspberry Pi)");
|
|
2371
2371
|
if (!versionAtLeast(info.KernelVersion, "5.6.0"))
|
|
2372
2372
|
throw new CliError("gVisor requires Linux 5.6 or newer");
|
|
2373
|
-
|
|
2374
|
-
|
|
2373
|
+
const missing = [
|
|
2374
|
+
info.CgroupVersion !== "2" ? "cgroup v2" : null,
|
|
2375
|
+
!info.MemoryLimit ? "memory limits" : null,
|
|
2376
|
+
!info.SwapLimit ? "swap accounting" : null,
|
|
2377
|
+
info.CpuCfsQuota === false ? "CPU quotas" : null,
|
|
2378
|
+
!info.PidsLimit ? "process limits" : null
|
|
2379
|
+
].filter(Boolean);
|
|
2380
|
+
if (missing.length)
|
|
2381
|
+
throw new CliError(`sandboxes require working cgroup v2 resource controllers; missing: ${missing.join(", ")}. The host kernel/Docker configuration needs those enabled first`);
|
|
2375
2382
|
}
|
|
2376
2383
|
function gvisorChecksum(text) {
|
|
2377
2384
|
const match = /^([a-f0-9]{128})\s+\*?gvisor\.tar\.bz2\s*$/i.exec(text.trim());
|
package/package.json
CHANGED