@platforma-sdk/bootstrap 3.3.1 → 3.4.0
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/assets/compose-backend.yaml +4 -1
- package/dist/index.js +23 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +78 -73
- package/dist/index.mjs.map +1 -1
- package/dist/templates/pl-config.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -102,11 +102,11 @@ const fe = {
|
|
|
102
102
|
"pl-log-file": w.file({
|
|
103
103
|
description: "specify path for Platforma Backend log file"
|
|
104
104
|
})
|
|
105
|
-
},
|
|
105
|
+
}, pe = {
|
|
106
106
|
"pl-workdir": w.file({
|
|
107
107
|
description: "specify working directory for Platforma Backend process"
|
|
108
108
|
})
|
|
109
|
-
},
|
|
109
|
+
}, be = {
|
|
110
110
|
"pl-binary": w.file({
|
|
111
111
|
description: "start given Platforma Backend binary instead of automatically downloaded version"
|
|
112
112
|
})
|
|
@@ -324,7 +324,7 @@ async function Vr(a, e) {
|
|
|
324
324
|
const t = await Kr(a);
|
|
325
325
|
for (const { from: r, to: n } of e)
|
|
326
326
|
for (const s of t)
|
|
327
|
-
await
|
|
327
|
+
await pr(s, r, n);
|
|
328
328
|
}
|
|
329
329
|
async function Kr(a) {
|
|
330
330
|
return (await _.readdir(a, {
|
|
@@ -336,11 +336,11 @@ async function Ue(a, e) {
|
|
|
336
336
|
const t = await _.readFile(a), r = e(t.toString());
|
|
337
337
|
await _.writeFile(a, r);
|
|
338
338
|
}
|
|
339
|
-
async function
|
|
339
|
+
async function pr(a, e, t) {
|
|
340
340
|
return await Ue(a, (r) => r.replaceAll(e, t));
|
|
341
341
|
}
|
|
342
342
|
async function ee(a, e) {
|
|
343
|
-
return await
|
|
343
|
+
return await pr(a, e, "");
|
|
344
344
|
}
|
|
345
345
|
const re = class re extends L {
|
|
346
346
|
async run() {
|
|
@@ -352,14 +352,14 @@ l(re, "description", "Helps to create a new block by downloading a block's templ
|
|
|
352
352
|
...A
|
|
353
353
|
});
|
|
354
354
|
let Ee = re;
|
|
355
|
-
function
|
|
355
|
+
function br(...a) {
|
|
356
356
|
return Lr(__dirname, "..", ...a);
|
|
357
357
|
}
|
|
358
358
|
function Q(...a) {
|
|
359
|
-
return
|
|
359
|
+
return br("assets", ...a);
|
|
360
360
|
}
|
|
361
361
|
function Se(...a) {
|
|
362
|
-
return f.readFileSync(
|
|
362
|
+
return f.readFileSync(br(...a));
|
|
363
363
|
}
|
|
364
364
|
function gr(a) {
|
|
365
365
|
return a || (a = ue()), `quay.io/milaboratories/platforma:${a}`;
|
|
@@ -523,10 +523,10 @@ function Le(a, e, t, r, n) {
|
|
|
523
523
|
if (o.platform && (g.platform = o.platform), o.envs) {
|
|
524
524
|
g.environment || (g.environment = []);
|
|
525
525
|
for (let d = 0; d < ((g == null ? void 0 : g.environment.length) ?? 0); ) {
|
|
526
|
-
const
|
|
527
|
-
if (o.envs[
|
|
528
|
-
const
|
|
529
|
-
|
|
526
|
+
const p = g.environment[d].split("=")[0];
|
|
527
|
+
if (o.envs[p]) {
|
|
528
|
+
const b = g.environment.pop();
|
|
529
|
+
b && g.environment.length !== d && (g.environment[d] = b);
|
|
530
530
|
} else
|
|
531
531
|
d++;
|
|
532
532
|
}
|
|
@@ -616,9 +616,9 @@ function X(a, e, t) {
|
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
function et(a, e) {
|
|
619
|
-
var
|
|
619
|
+
var b, y, P, $, S, v, k, le, Ge, Je, He, We, qe, ze, Ye, Ve, Ke, Qe, Xe, Ze, er, rr, tr, ar, nr, sr, ir, cr, or, lr;
|
|
620
620
|
const t = (e == null ? void 0 : e.localRoot) ?? u.instanceDir("default"), r = {
|
|
621
|
-
level: ((
|
|
621
|
+
level: ((b = e == null ? void 0 : e.log) == null ? void 0 : b.level) ?? "info",
|
|
622
622
|
path: ((y = e == null ? void 0 : e.log) == null ? void 0 : y.path) ?? `${t}/logs/platforma.log`
|
|
623
623
|
}, n = {
|
|
624
624
|
listen: ((P = e == null ? void 0 : e.grpc) == null ? void 0 : P.listen) ?? "localhost:6345",
|
|
@@ -666,13 +666,13 @@ function et(a, e) {
|
|
|
666
666
|
}, h = {
|
|
667
667
|
enabled: de((ir = e == null ? void 0 : e.debug) == null ? void 0 : ir.enabled, !0),
|
|
668
668
|
listen: ((cr = e == null ? void 0 : e.debug) == null ? void 0 : cr.listen) ?? "127.0.0.1:9091"
|
|
669
|
-
},
|
|
669
|
+
}, p = {
|
|
670
670
|
value: ((or = e == null ? void 0 : e.license) == null ? void 0 : or.value) ?? "",
|
|
671
671
|
file: ((lr = e == null ? void 0 : e.license) == null ? void 0 : lr.file) ?? ""
|
|
672
672
|
};
|
|
673
673
|
return {
|
|
674
674
|
localRoot: t,
|
|
675
|
-
license:
|
|
675
|
+
license: p,
|
|
676
676
|
log: r,
|
|
677
677
|
grpc: n,
|
|
678
678
|
core: s,
|
|
@@ -774,7 +774,12 @@ controllers:
|
|
|
774
774
|
packageLoader:
|
|
775
775
|
packagesRoot: '${a.localRoot}/packages'
|
|
776
776
|
|
|
777
|
-
workflows:
|
|
777
|
+
workflows:
|
|
778
|
+
features:
|
|
779
|
+
pureFutureFields: true
|
|
780
|
+
commandExpressions: true
|
|
781
|
+
workdirLimits: true
|
|
782
|
+
computeLimits: true
|
|
778
783
|
`;
|
|
779
784
|
}
|
|
780
785
|
function de(a, e) {
|
|
@@ -831,16 +836,16 @@ function st(a, e) {
|
|
|
831
836
|
return;
|
|
832
837
|
}
|
|
833
838
|
const h = parseInt(d.headers["content-length"] || "0", 10);
|
|
834
|
-
let
|
|
835
|
-
const
|
|
836
|
-
d.pipe(
|
|
837
|
-
|
|
838
|
-
const P =
|
|
839
|
+
let p = 0;
|
|
840
|
+
const b = f.createWriteStream(i);
|
|
841
|
+
d.pipe(b), d.on("data", (y) => {
|
|
842
|
+
p += y.length;
|
|
843
|
+
const P = p / h * 100;
|
|
839
844
|
r && process.stdout.write(` downloading: ${P.toFixed(2)}%\r`);
|
|
840
845
|
}), d.on("error", (y) => {
|
|
841
846
|
f.unlinkSync(i), a.error(`Failed to download Platforma Binary: ${y.message}`), c.destroy(), g(y);
|
|
842
|
-
}),
|
|
843
|
-
|
|
847
|
+
}), b.on("finish", () => {
|
|
848
|
+
b.close(), a.info(" ... download done."), c.destroy(), o(i);
|
|
844
849
|
});
|
|
845
850
|
});
|
|
846
851
|
});
|
|
@@ -925,7 +930,7 @@ ${r}`);
|
|
|
925
930
|
return this.startInstance(e);
|
|
926
931
|
}
|
|
927
932
|
createLocal(e, t) {
|
|
928
|
-
var g, d, h,
|
|
933
|
+
var g, d, h, p, b, y, P, $, S, v;
|
|
929
934
|
let r = ct(t == null ? void 0 : t.version, "binaries", "platforma");
|
|
930
935
|
t != null && t.sourcesPath && (r = m.join(D.tmpdir(), "platforma-custom-build")), t != null && t.binaryPath && (r = t.binaryPath);
|
|
931
936
|
let n = t == null ? void 0 : t.configPath;
|
|
@@ -939,8 +944,8 @@ ${r}`);
|
|
|
939
944
|
}), t != null && t.libraryURL && (t.configOptions = {
|
|
940
945
|
...t.configOptions,
|
|
941
946
|
storages: {
|
|
942
|
-
...(
|
|
943
|
-
library: X(t.libraryURL, s, (y = (
|
|
947
|
+
...(p = t.configOptions) == null ? void 0 : p.storages,
|
|
948
|
+
library: X(t.libraryURL, s, (y = (b = t.configOptions) == null ? void 0 : b.storages) == null ? void 0 : y.library)
|
|
944
949
|
}
|
|
945
950
|
});
|
|
946
951
|
const i = et(this.getLastJwt(), t == null ? void 0 : t.configOptions);
|
|
@@ -1074,7 +1079,7 @@ ${r}`);
|
|
|
1074
1079
|
if (h.type !== "S3")
|
|
1075
1080
|
throw new Error(`${h.type} storage type is not supported for library storage`);
|
|
1076
1081
|
h.presignEndpoint = `http://${g}:9000`;
|
|
1077
|
-
const
|
|
1082
|
+
const p = c("db"), b = c("work"), y = i("users.htpasswd");
|
|
1078
1083
|
f.existsSync(y) || f.copyFileSync(Q("users.htpasswd"), y);
|
|
1079
1084
|
const P = i("compose.yaml");
|
|
1080
1085
|
f.existsSync(P) && this.logger.info(`replacing docker compose file ${P}`);
|
|
@@ -1102,10 +1107,10 @@ ${r}`);
|
|
|
1102
1107
|
PL_LOG_DIR: m.dirname(o),
|
|
1103
1108
|
PL_LOG_ROTATION_ENABLED: "true",
|
|
1104
1109
|
PL_RUNNER_WD_CACHE_ON_FAILURE: "1h",
|
|
1105
|
-
PL_DATA_DB_ROOT:
|
|
1110
|
+
PL_DATA_DB_ROOT: p,
|
|
1106
1111
|
PL_DATA_PRIMARY_ROOT: c("primary"),
|
|
1107
1112
|
PL_DATA_LIBRARY_ROOT: c("library"),
|
|
1108
|
-
PL_DATA_WORKDIR_ROOT:
|
|
1113
|
+
PL_DATA_WORKDIR_ROOT: b,
|
|
1109
1114
|
// Mount packages storage as volume, because APFS is case-insensitive on Mac OS X and this breaks some pl software installation.
|
|
1110
1115
|
// PL_DATA_PACKAGE_ROOT: storageDir('packages'),
|
|
1111
1116
|
...this.configureDockerStorage("primary", d),
|
|
@@ -1141,9 +1146,9 @@ ${r}`);
|
|
|
1141
1146
|
apiAddr: r == null ? void 0 : r.grpcAddr,
|
|
1142
1147
|
logPath: o,
|
|
1143
1148
|
primary: d,
|
|
1144
|
-
work: { type: "FS", rootPath:
|
|
1149
|
+
work: { type: "FS", rootPath: b },
|
|
1145
1150
|
library: h,
|
|
1146
|
-
dbPath:
|
|
1151
|
+
dbPath: p
|
|
1147
1152
|
}
|
|
1148
1153
|
}), u.getInstanceInfo(e);
|
|
1149
1154
|
}
|
|
@@ -1156,8 +1161,8 @@ ${r}`);
|
|
|
1156
1161
|
return ke(le, { mode: "0775" }), le;
|
|
1157
1162
|
}, o = i("logs", "platforma.log");
|
|
1158
1163
|
f.existsSync(o) || (f.mkdirSync(m.dirname(o), { recursive: !0 }), f.writeFileSync(o, ""));
|
|
1159
|
-
const g = c("db"), d = c("primary"), h = c("library"),
|
|
1160
|
-
f.existsSync(
|
|
1164
|
+
const g = c("db"), d = c("primary"), h = c("library"), p = c("work"), b = i("users.htpasswd");
|
|
1165
|
+
f.existsSync(b) || f.copyFileSync(Q("users.htpasswd"), b);
|
|
1161
1166
|
const y = i("compose.yaml");
|
|
1162
1167
|
f.existsSync(y) && this.logger.info(`replacing docker compose file ${y}`);
|
|
1163
1168
|
const P = [];
|
|
@@ -1174,7 +1179,7 @@ ${r}`);
|
|
|
1174
1179
|
]));
|
|
1175
1180
|
const $ = X((r == null ? void 0 : r.primaryStorageURL) ?? `file:${d}`, "."), S = X((r == null ? void 0 : r.libraryStorageURL) ?? `file:${h}`, "."), v = {
|
|
1176
1181
|
PL_IMAGE: s,
|
|
1177
|
-
PL_AUTH_HTPASSWD_PATH:
|
|
1182
|
+
PL_AUTH_HTPASSWD_PATH: b,
|
|
1178
1183
|
PL_LICENSE: r == null ? void 0 : r.license,
|
|
1179
1184
|
PL_LICENSE_FILE: r == null ? void 0 : r.licenseFile,
|
|
1180
1185
|
PL_LOG_LEVEL: "info",
|
|
@@ -1184,7 +1189,7 @@ ${r}`);
|
|
|
1184
1189
|
PL_DATA_DB_ROOT: g,
|
|
1185
1190
|
PL_DATA_PRIMARY_ROOT: d,
|
|
1186
1191
|
PL_DATA_LIBRARY_ROOT: h,
|
|
1187
|
-
PL_DATA_WORKDIR_ROOT:
|
|
1192
|
+
PL_DATA_WORKDIR_ROOT: p,
|
|
1188
1193
|
PL_DATA_PACKAGE_ROOT: c("packages"),
|
|
1189
1194
|
...this.configureDockerStorage("primary", $),
|
|
1190
1195
|
...this.configureDockerStorage("library", S)
|
|
@@ -1219,7 +1224,7 @@ ${r}`);
|
|
|
1219
1224
|
apiAddr: r == null ? void 0 : r.grpcAddr,
|
|
1220
1225
|
logPath: o,
|
|
1221
1226
|
primary: $,
|
|
1222
|
-
work: { type: "FS", rootPath:
|
|
1227
|
+
work: { type: "FS", rootPath: p },
|
|
1223
1228
|
library: S,
|
|
1224
1229
|
dbPath: g
|
|
1225
1230
|
}
|
|
@@ -1457,9 +1462,9 @@ let dt = (T = class extends L {
|
|
|
1457
1462
|
e["grpc-listen"] ? d = e["grpc-listen"] : e["grpc-port"] && (d = `127.0.0.1:${e["grpc-port"]}`);
|
|
1458
1463
|
let h = "127.0.0.1:9090";
|
|
1459
1464
|
e["monitoring-listen"] ? h = e["monitoring-listen"] : e["monitoring-port"] && (h = `127.0.0.1:${e["monitoring-port"]}`);
|
|
1460
|
-
let
|
|
1461
|
-
e["debug-listen"] ?
|
|
1462
|
-
const
|
|
1465
|
+
let p = "127.0.0.1:9091";
|
|
1466
|
+
e["debug-listen"] ? p = e["debug-listen"] : e["debug-port"] && (p = `127.0.0.1:${e["debug-port"]}`);
|
|
1467
|
+
const b = {
|
|
1463
1468
|
sourcesPath: e["pl-sources"],
|
|
1464
1469
|
binaryPath: e["pl-binary"],
|
|
1465
1470
|
version: e.version,
|
|
@@ -1470,7 +1475,7 @@ let dt = (T = class extends L {
|
|
|
1470
1475
|
configOptions: {
|
|
1471
1476
|
grpc: { listen: d },
|
|
1472
1477
|
monitoring: { listen: h },
|
|
1473
|
-
debug: { listen:
|
|
1478
|
+
debug: { listen: p },
|
|
1474
1479
|
license: { value: e.license, file: e["license-file"] },
|
|
1475
1480
|
log: { path: c },
|
|
1476
1481
|
localRoot: i,
|
|
@@ -1479,8 +1484,8 @@ let dt = (T = class extends L {
|
|
|
1479
1484
|
work: { type: "FS", rootPath: e["storage-work"] }
|
|
1480
1485
|
}
|
|
1481
1486
|
}
|
|
1482
|
-
}, y = r.createLocal(n,
|
|
1483
|
-
|
|
1487
|
+
}, y = r.createLocal(n, b);
|
|
1488
|
+
b.binaryPath || b.sourcesPath ? r.switchInstance(y) : Pe(t, { version: e.version }).then(() => {
|
|
1484
1489
|
const P = r.switchInstance(y);
|
|
1485
1490
|
setTimeout(() => {
|
|
1486
1491
|
for (const $ of P)
|
|
@@ -1494,7 +1499,7 @@ let dt = (T = class extends L {
|
|
|
1494
1499
|
...A,
|
|
1495
1500
|
...C,
|
|
1496
1501
|
...j,
|
|
1497
|
-
...
|
|
1502
|
+
...be,
|
|
1498
1503
|
...we,
|
|
1499
1504
|
...ve,
|
|
1500
1505
|
...M,
|
|
@@ -1503,7 +1508,7 @@ let dt = (T = class extends L {
|
|
|
1503
1508
|
...ie,
|
|
1504
1509
|
...oe,
|
|
1505
1510
|
...ye,
|
|
1506
|
-
...
|
|
1511
|
+
...pe,
|
|
1507
1512
|
...U
|
|
1508
1513
|
}), T);
|
|
1509
1514
|
const H = class H extends L {
|
|
@@ -1573,8 +1578,8 @@ let gt = (x = class extends L {
|
|
|
1573
1578
|
enabled: s,
|
|
1574
1579
|
drivers: r.initAuthDriversList(e, ".")
|
|
1575
1580
|
} : void 0, c = e.storage ? m.join(".", e.storage) : u.instanceDir(n), o = [];
|
|
1576
|
-
for (const
|
|
1577
|
-
o.push({ hostPath:
|
|
1581
|
+
for (const p of e.mount ?? [])
|
|
1582
|
+
o.push({ hostPath: p });
|
|
1578
1583
|
const g = e.arch ? `linux/${e.arch}` : void 0, d = e["minio-presign-host"] ? "minio" : "localhost", h = r.createDockerS3(n, c, {
|
|
1579
1584
|
image: e.image,
|
|
1580
1585
|
version: e.version,
|
|
@@ -1615,9 +1620,9 @@ let ut = (F = class extends L {
|
|
|
1615
1620
|
e["grpc-listen"] ? d = e["grpc-listen"] : e["grpc-port"] && (d = `127.0.0.1:${e["grpc-port"]}`);
|
|
1616
1621
|
let h = "127.0.0.1:9090";
|
|
1617
1622
|
e["monitoring-listen"] ? h = e["monitoring-listen"] : e["monitoring-port"] && (h = `127.0.0.1:${e["monitoring-port"]}`);
|
|
1618
|
-
let
|
|
1619
|
-
e["debug-listen"] ?
|
|
1620
|
-
const
|
|
1623
|
+
let p = "127.0.0.1:9091";
|
|
1624
|
+
e["debug-listen"] ? p = e["debug-listen"] : e["debug-port"] && (p = `127.0.0.1:${e["debug-port"]}`);
|
|
1625
|
+
const b = {
|
|
1621
1626
|
sourcesPath: e["pl-sources"],
|
|
1622
1627
|
binaryPath: e["pl-binary"],
|
|
1623
1628
|
version: e.version,
|
|
@@ -1630,7 +1635,7 @@ let ut = (F = class extends L {
|
|
|
1630
1635
|
configOptions: {
|
|
1631
1636
|
grpc: { listen: d },
|
|
1632
1637
|
monitoring: { listen: h },
|
|
1633
|
-
debug: { listen:
|
|
1638
|
+
debug: { listen: p },
|
|
1634
1639
|
license: { value: e.license, file: e["license-file"] },
|
|
1635
1640
|
log: { path: c },
|
|
1636
1641
|
localRoot: i,
|
|
@@ -1641,8 +1646,8 @@ let ut = (F = class extends L {
|
|
|
1641
1646
|
work: { type: "FS", rootPath: e["storage-work"] }
|
|
1642
1647
|
}
|
|
1643
1648
|
}
|
|
1644
|
-
}, y = r.createLocalS3(n,
|
|
1645
|
-
|
|
1649
|
+
}, y = r.createLocalS3(n, b);
|
|
1650
|
+
b.binaryPath || b.sourcesPath ? r.switchInstance(y) : await Pe(t, { version: e.version }).then(() => {
|
|
1646
1651
|
const P = r.switchInstance(y), $ = [];
|
|
1647
1652
|
for (const S of P)
|
|
1648
1653
|
$.push(new Promise((v, k) => {
|
|
@@ -1658,7 +1663,7 @@ let ut = (F = class extends L {
|
|
|
1658
1663
|
...C,
|
|
1659
1664
|
...j,
|
|
1660
1665
|
...mr,
|
|
1661
|
-
...
|
|
1666
|
+
...be,
|
|
1662
1667
|
...we,
|
|
1663
1668
|
...ve,
|
|
1664
1669
|
...M,
|
|
@@ -1667,7 +1672,7 @@ let ut = (F = class extends L {
|
|
|
1667
1672
|
...ie,
|
|
1668
1673
|
...oe,
|
|
1669
1674
|
...ye,
|
|
1670
|
-
...
|
|
1675
|
+
...pe,
|
|
1671
1676
|
...U
|
|
1672
1677
|
}), F);
|
|
1673
1678
|
const z = class z extends L {
|
|
@@ -1726,10 +1731,10 @@ let ft = (E = class extends L {
|
|
|
1726
1731
|
const s = t.name, i = e["pl-workdir"] ?? ".", c = e.storage ? m.join(i, e.storage) : u.instanceDir(s), o = e["pl-log-file"] ? m.join(i, e["pl-log-file"]) : void 0, g = n.initAuthDriversList(e, i), d = e["auth-enabled"] ?? g !== void 0;
|
|
1727
1732
|
let h = "127.0.0.1:6345";
|
|
1728
1733
|
e["grpc-listen"] ? h = e["grpc-listen"] : e["grpc-port"] && (h = `127.0.0.1:${e["grpc-port"]}`);
|
|
1729
|
-
let
|
|
1730
|
-
e["monitoring-listen"] ?
|
|
1731
|
-
let
|
|
1732
|
-
e["debug-listen"] ?
|
|
1734
|
+
let p = "127.0.0.1:9090";
|
|
1735
|
+
e["monitoring-listen"] ? p = e["monitoring-listen"] : e["monitoring-port"] && (p = `127.0.0.1:${e["monitoring-port"]}`);
|
|
1736
|
+
let b = "127.0.0.1:9091";
|
|
1737
|
+
e["debug-listen"] ? b = e["debug-listen"] : e["debug-port"] && (b = `127.0.0.1:${e["debug-port"]}`);
|
|
1733
1738
|
const y = {
|
|
1734
1739
|
sourcesPath: e["pl-sources"],
|
|
1735
1740
|
binaryPath: e["pl-binary"],
|
|
@@ -1740,8 +1745,8 @@ let ft = (E = class extends L {
|
|
|
1740
1745
|
libraryURL: e["storage-library"],
|
|
1741
1746
|
configOptions: {
|
|
1742
1747
|
grpc: { listen: h },
|
|
1743
|
-
monitoring: { listen:
|
|
1744
|
-
debug: { listen:
|
|
1748
|
+
monitoring: { listen: p },
|
|
1749
|
+
debug: { listen: b },
|
|
1745
1750
|
license: { value: e.license, file: e["license-file"] },
|
|
1746
1751
|
log: { path: o },
|
|
1747
1752
|
localRoot: c,
|
|
@@ -1763,7 +1768,7 @@ let ft = (E = class extends L {
|
|
|
1763
1768
|
...A,
|
|
1764
1769
|
...C,
|
|
1765
1770
|
...j,
|
|
1766
|
-
...
|
|
1771
|
+
...be,
|
|
1767
1772
|
...we,
|
|
1768
1773
|
...ve,
|
|
1769
1774
|
...M,
|
|
@@ -1772,7 +1777,7 @@ let ft = (E = class extends L {
|
|
|
1772
1777
|
...ie,
|
|
1773
1778
|
...oe,
|
|
1774
1779
|
...ye,
|
|
1775
|
-
...
|
|
1780
|
+
...pe,
|
|
1776
1781
|
...U
|
|
1777
1782
|
}), l(E, "args", {
|
|
1778
1783
|
name: K.string({ required: !0 })
|
|
@@ -1785,8 +1790,8 @@ const Y = class Y extends L {
|
|
|
1785
1790
|
enabled: i,
|
|
1786
1791
|
drivers: n.initAuthDriversList(e, ".")
|
|
1787
1792
|
} : void 0, o = e.storage ? m.join(".", e.storage) : u.instanceDir(s), g = [];
|
|
1788
|
-
for (const
|
|
1789
|
-
g.push({ hostPath:
|
|
1793
|
+
for (const p of e.mount ?? [])
|
|
1794
|
+
g.push({ hostPath: p });
|
|
1790
1795
|
const d = e.arch ? `linux/${e.arch}` : void 0, h = e["minio-presign-host"] ? "minio" : "localhost";
|
|
1791
1796
|
n.createDockerS3(s, o, {
|
|
1792
1797
|
image: e.image,
|
|
@@ -1828,10 +1833,10 @@ const V = class V extends L {
|
|
|
1828
1833
|
const s = t.name, i = e["pl-workdir"] ?? ".", c = e.storage ? m.join(i, e.storage) : u.instanceDir(s), o = e["pl-log-file"] ? m.join(i, e["pl-log-file"]) : void 0, g = n.initAuthDriversList(e, i), d = e["auth-enabled"] ?? g !== void 0;
|
|
1829
1834
|
let h = "127.0.0.1:6345";
|
|
1830
1835
|
e["grpc-listen"] ? h = e["grpc-listen"] : e["grpc-port"] && (h = `127.0.0.1:${e["grpc-port"]}`);
|
|
1831
|
-
let
|
|
1832
|
-
e["monitoring-listen"] ?
|
|
1833
|
-
let
|
|
1834
|
-
e["debug-listen"] ?
|
|
1836
|
+
let p = "127.0.0.1:9090";
|
|
1837
|
+
e["monitoring-listen"] ? p = e["monitoring-listen"] : e["monitoring-port"] && (p = `127.0.0.1:${e["monitoring-port"]}`);
|
|
1838
|
+
let b = "127.0.0.1:9091";
|
|
1839
|
+
e["debug-listen"] ? b = e["debug-listen"] : e["debug-port"] && (b = `127.0.0.1:${e["debug-port"]}`);
|
|
1835
1840
|
const y = {
|
|
1836
1841
|
sourcesPath: e["pl-sources"],
|
|
1837
1842
|
binaryPath: e["pl-binary"],
|
|
@@ -1844,8 +1849,8 @@ const V = class V extends L {
|
|
|
1844
1849
|
minioConsolePort: e["s3-console-port"],
|
|
1845
1850
|
configOptions: {
|
|
1846
1851
|
grpc: { listen: h },
|
|
1847
|
-
monitoring: { listen:
|
|
1848
|
-
debug: { listen:
|
|
1852
|
+
monitoring: { listen: p },
|
|
1853
|
+
debug: { listen: b },
|
|
1849
1854
|
license: { value: e.license, file: e["license-file"] },
|
|
1850
1855
|
log: { path: o },
|
|
1851
1856
|
localRoot: c,
|
|
@@ -1869,7 +1874,7 @@ l(V, "description", "Run Platforma Backend service as local process on current h
|
|
|
1869
1874
|
...C,
|
|
1870
1875
|
...mr,
|
|
1871
1876
|
...j,
|
|
1872
|
-
...
|
|
1877
|
+
...be,
|
|
1873
1878
|
...we,
|
|
1874
1879
|
...ve,
|
|
1875
1880
|
...M,
|
|
@@ -1878,7 +1883,7 @@ l(V, "description", "Run Platforma Backend service as local process on current h
|
|
|
1878
1883
|
...ie,
|
|
1879
1884
|
...oe,
|
|
1880
1885
|
...ye,
|
|
1881
|
-
...
|
|
1886
|
+
...pe,
|
|
1882
1887
|
...U
|
|
1883
1888
|
}), l(V, "args", {
|
|
1884
1889
|
name: K.string({ required: !0 })
|