@platforma-sdk/bootstrap 3.1.7 → 3.1.9
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +77 -71
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -89,16 +89,16 @@ const me = {
|
|
|
89
89
|
storage: v.string({
|
|
90
90
|
description: "specify path on host to be used as storage for all Platforma Backend data"
|
|
91
91
|
})
|
|
92
|
-
},
|
|
92
|
+
}, yr = {
|
|
93
93
|
"minio-presign-host": v.boolean({
|
|
94
94
|
description: "use 'minio' host instead of 'localhost' in presign URLs"
|
|
95
95
|
})
|
|
96
|
-
},
|
|
96
|
+
}, ye = {
|
|
97
97
|
mount: v.string({
|
|
98
98
|
multiple: !0,
|
|
99
99
|
description: "things to be mounted into platforma docker container. Targets will appear inside the container under the same absolute paths"
|
|
100
100
|
})
|
|
101
|
-
},
|
|
101
|
+
}, pe = {
|
|
102
102
|
"pl-log-file": v.file({
|
|
103
103
|
description: "specify path for Platforma Backend log file"
|
|
104
104
|
})
|
|
@@ -222,7 +222,7 @@ function Ur(a) {
|
|
|
222
222
|
if (r.Name === a)
|
|
223
223
|
return r;
|
|
224
224
|
}
|
|
225
|
-
const Oe = ["Python"],
|
|
225
|
+
const Oe = ["Python"], pr = ["Tengo", "Python"], Gr = N.union([N.literal("Tengo"), N.literal("Python")]), Jr = N.object({
|
|
226
226
|
npmOrgName: N.string().min(1),
|
|
227
227
|
orgName: N.string().min(1, { message: "Organization name must be provided" }),
|
|
228
228
|
blockName: N.string().min(1, { message: "Block name must be provided" }),
|
|
@@ -239,7 +239,7 @@ async function Hr(a) {
|
|
|
239
239
|
"platforma-block-boilerplate-main",
|
|
240
240
|
s
|
|
241
241
|
);
|
|
242
|
-
const i =
|
|
242
|
+
const i = pr.filter((o) => n.indexOf(o) < 0), c = Oe.length == i.length;
|
|
243
243
|
a.info(`Keep platforms '${n}', remove: '${i}'. Will remove all platforms? ${c}`);
|
|
244
244
|
for (const o of i)
|
|
245
245
|
await zr(s, o);
|
|
@@ -257,10 +257,16 @@ function Wr() {
|
|
|
257
257
|
'Write an organization name for npm. Default is "platforma-open": '
|
|
258
258
|
);
|
|
259
259
|
a === "" && (a = "platforma-open");
|
|
260
|
-
|
|
260
|
+
let e = "";
|
|
261
|
+
for (; e.length < 1; )
|
|
262
|
+
e = Z.question('Write an organization name, e.g. "my-org": ');
|
|
263
|
+
let t = "";
|
|
264
|
+
for (; t.length < 1; )
|
|
265
|
+
t = Z.question('Write a name of the block, e.g. "hello-world": ');
|
|
266
|
+
const r = Z.keyInYN("Create package for block's software?");
|
|
261
267
|
let n = ["Tengo"];
|
|
262
268
|
if (r)
|
|
263
|
-
for (; n.length <
|
|
269
|
+
for (; n.length < pr.length; ) {
|
|
264
270
|
const i = Z.keyInSelect(Oe, "Choose software platform:");
|
|
265
271
|
if (i < 0) break;
|
|
266
272
|
n.push(Oe[i]);
|
|
@@ -609,15 +615,15 @@ function X(a, e, t) {
|
|
|
609
615
|
}
|
|
610
616
|
}
|
|
611
617
|
function et(a, e) {
|
|
612
|
-
var w,
|
|
618
|
+
var w, y, P, S, k, p, $, le, Ge, Je, He, We, qe, ze, Ye, Ve, Ke, Qe, Xe, Ze, er, rr, tr, ar, nr, sr, ir, cr, or, lr;
|
|
613
619
|
const t = (e == null ? void 0 : e.localRoot) ?? u.instanceDir("default"), r = {
|
|
614
620
|
level: ((w = e == null ? void 0 : e.log) == null ? void 0 : w.level) ?? "info",
|
|
615
|
-
path: ((
|
|
621
|
+
path: ((y = e == null ? void 0 : e.log) == null ? void 0 : y.path) ?? `${t}/logs/platforma.log`
|
|
616
622
|
}, n = {
|
|
617
623
|
listen: ((P = e == null ? void 0 : e.grpc) == null ? void 0 : P.listen) ?? "localhost:6345",
|
|
618
624
|
tls: {
|
|
619
625
|
enable: de((k = (S = e == null ? void 0 : e.grpc) == null ? void 0 : S.tls) == null ? void 0 : k.enable, !1),
|
|
620
|
-
clientAuthMode: (($ = (
|
|
626
|
+
clientAuthMode: (($ = (p = e == null ? void 0 : e.grpc) == null ? void 0 : p.tls) == null ? void 0 : $.clientAuthMode) ?? "NoAuth",
|
|
621
627
|
certFile: ((Ge = (le = e == null ? void 0 : e.grpc) == null ? void 0 : le.tls) == null ? void 0 : Ge.certFile) ?? `${t}/certs/tls.cert`,
|
|
622
628
|
keyFile: ((He = (Je = e == null ? void 0 : e.grpc) == null ? void 0 : Je.tls) == null ? void 0 : He.keyFile) ?? `${t}/certs/tls.key`,
|
|
623
629
|
...(We = e == null ? void 0 : e.grpc) == null ? void 0 : We.tls
|
|
@@ -813,24 +819,24 @@ function st(a, e) {
|
|
|
813
819
|
return new Promise((o, d) => {
|
|
814
820
|
c.on("response", (g) => {
|
|
815
821
|
if (!g.statusCode) {
|
|
816
|
-
const
|
|
817
|
-
c.destroy(), d(
|
|
822
|
+
const y = new Error("failed to download archive: no HTTP status code in response from server");
|
|
823
|
+
c.destroy(), d(y);
|
|
818
824
|
return;
|
|
819
825
|
}
|
|
820
826
|
if (g.statusCode !== 200) {
|
|
821
|
-
const
|
|
822
|
-
c.destroy(), d(
|
|
827
|
+
const y = new Error(`failed to download archive: ${g.statusCode} ${g.statusMessage}`);
|
|
828
|
+
c.destroy(), d(y);
|
|
823
829
|
return;
|
|
824
830
|
}
|
|
825
831
|
const h = parseInt(g.headers["content-length"] || "0", 10);
|
|
826
832
|
let b = 0;
|
|
827
833
|
const w = f.createWriteStream(i);
|
|
828
|
-
g.pipe(w), g.on("data", (
|
|
829
|
-
b +=
|
|
834
|
+
g.pipe(w), g.on("data", (y) => {
|
|
835
|
+
b += y.length;
|
|
830
836
|
const P = b / h * 100;
|
|
831
837
|
r && process.stdout.write(` downloading: ${P.toFixed(2)}%\r`);
|
|
832
|
-
}), g.on("error", (
|
|
833
|
-
f.unlinkSync(i), a.error(`Failed to download Platforma Binary: ${
|
|
838
|
+
}), g.on("error", (y) => {
|
|
839
|
+
f.unlinkSync(i), a.error(`Failed to download Platforma Binary: ${y.message}`), c.destroy(), d(y);
|
|
834
840
|
}), w.on("finish", () => {
|
|
835
841
|
w.close(), a.info(" ... download done."), c.destroy(), o(i);
|
|
836
842
|
});
|
|
@@ -921,7 +927,7 @@ ${r}`);
|
|
|
921
927
|
return this.startInstance(e);
|
|
922
928
|
}
|
|
923
929
|
createLocal(e, t) {
|
|
924
|
-
var o, d, g, h, b, w,
|
|
930
|
+
var o, d, g, h, b, w, y, P, S, k;
|
|
925
931
|
const r = (t == null ? void 0 : t.binaryPath) ?? ct(t == null ? void 0 : t.version, "binaries", "platforma");
|
|
926
932
|
let n = t == null ? void 0 : t.configPath;
|
|
927
933
|
const s = (t == null ? void 0 : t.workdir) ?? (n ? process.cwd() : u.instanceDir(e));
|
|
@@ -939,17 +945,17 @@ ${r}`);
|
|
|
939
945
|
}
|
|
940
946
|
});
|
|
941
947
|
const i = et(this.getLastJwt(), t == null ? void 0 : t.configOptions);
|
|
942
|
-
this.logger.debug(" checking license..."), this.checkLicense((P = (
|
|
948
|
+
this.logger.debug(" checking license..."), this.checkLicense((P = (y = t == null ? void 0 : t.configOptions) == null ? void 0 : y.license) == null ? void 0 : P.value, (k = (S = t == null ? void 0 : t.configOptions) == null ? void 0 : S.license) == null ? void 0 : k.file);
|
|
943
949
|
const c = [
|
|
944
950
|
`${i.localRoot}/packages`,
|
|
945
951
|
`${i.localRoot}/packages-local`,
|
|
946
952
|
`${i.localRoot}/blocks-local`
|
|
947
953
|
];
|
|
948
954
|
i.storages.primary.type === "FS" && c.push(i.storages.primary.rootPath), i.storages.library.type === "FS" && (c.push(i.storages.library.rootPath), i.hacks.libraryDownloadable = !1), i.storages.work.type === "FS" && c.push(i.storages.work.rootPath), this.logger.debug(" creating pl state directories...");
|
|
949
|
-
for (const
|
|
950
|
-
f.existsSync(
|
|
951
|
-
for (const
|
|
952
|
-
|
|
955
|
+
for (const p of c)
|
|
956
|
+
f.existsSync(p) || (this.logger.debug(` '${p}'`), f.mkdirSync(p, { recursive: !0 }));
|
|
957
|
+
for (const p of i.core.auth.drivers)
|
|
958
|
+
p.driver === "htpasswd" && (f.existsSync(p.path) || (this.logger.debug(` installing default 'users.htpasswd' to ${p.path}...`), f.copyFileSync(Q("users.htpasswd"), p.path)));
|
|
953
959
|
return n || (n = m.join(i.localRoot, "config.yaml"), this.logger.debug(` rendering configuration '${n}'...`), f.writeFileSync(n, rt(i))), u.setInstanceInfo(e, {
|
|
954
960
|
type: "process",
|
|
955
961
|
upCommands: [
|
|
@@ -1058,8 +1064,8 @@ ${r}`);
|
|
|
1058
1064
|
this.logger.debug("creating platforma instance in 'docker s3' mode...");
|
|
1059
1065
|
const n = Q("compose-backend.yaml"), s = (r == null ? void 0 : r.image) ?? gr(r == null ? void 0 : r.version);
|
|
1060
1066
|
this.checkLicense(r == null ? void 0 : r.license, r == null ? void 0 : r.licenseFile);
|
|
1061
|
-
const i = (...
|
|
1062
|
-
const $ = i(
|
|
1067
|
+
const i = (...p) => m.join(t, ...p), c = (p) => {
|
|
1068
|
+
const $ = i(p);
|
|
1063
1069
|
return Se($, { mode: "0775" }), $;
|
|
1064
1070
|
}, o = i("logs", "platforma.log");
|
|
1065
1071
|
f.existsSync(o) || (f.mkdirSync(m.dirname(o), { recursive: !0 }), f.writeFileSync(o, ""));
|
|
@@ -1071,15 +1077,15 @@ ${r}`);
|
|
|
1071
1077
|
if (h.type !== "S3")
|
|
1072
1078
|
throw new Error(`${h.type} storage type is not supported for library storage`);
|
|
1073
1079
|
h.presignEndpoint = `http://${d}:9000`;
|
|
1074
|
-
const b = c("db"), w = c("work"),
|
|
1075
|
-
f.existsSync(
|
|
1080
|
+
const b = c("db"), w = c("work"), y = i("users.htpasswd");
|
|
1081
|
+
f.existsSync(y) || f.copyFileSync(Q("users.htpasswd"), y);
|
|
1076
1082
|
const P = i("compose.yaml");
|
|
1077
1083
|
f.existsSync(P) && this.logger.info(`replacing docker compose file ${P}`);
|
|
1078
1084
|
const S = [];
|
|
1079
|
-
for (const
|
|
1085
|
+
for (const p of (r == null ? void 0 : r.customMounts) ?? [])
|
|
1080
1086
|
S.push({
|
|
1081
|
-
hostPath:
|
|
1082
|
-
containerPath:
|
|
1087
|
+
hostPath: p.hostPath,
|
|
1088
|
+
containerPath: p.containerPath ?? p.hostPath
|
|
1083
1089
|
});
|
|
1084
1090
|
Ae(n, P, `pl-${e}`, /* @__PURE__ */ new Map([
|
|
1085
1091
|
["minio", {}],
|
|
@@ -1092,7 +1098,7 @@ ${r}`);
|
|
|
1092
1098
|
MINIO_IMAGE: "quay.io/minio/minio",
|
|
1093
1099
|
MINIO_STORAGE: c("minio"),
|
|
1094
1100
|
PL_IMAGE: s,
|
|
1095
|
-
PL_AUTH_HTPASSWD_PATH:
|
|
1101
|
+
PL_AUTH_HTPASSWD_PATH: y,
|
|
1096
1102
|
PL_LICENSE: r == null ? void 0 : r.license,
|
|
1097
1103
|
PL_LICENSE_FILE: r == null ? void 0 : r.licenseFile,
|
|
1098
1104
|
PL_LOG_LEVEL: (r == null ? void 0 : r.logLevel) ?? "info",
|
|
@@ -1109,8 +1115,8 @@ ${r}`);
|
|
|
1109
1115
|
...this.configureDockerStorage("library", h)
|
|
1110
1116
|
};
|
|
1111
1117
|
if (r != null && r.grpcAddr && (k.PL_GRPC_ADDR = r.grpcAddr), r != null && r.grpcPort && (k.PL_GRPC_PORT = r.grpcPort.toString()), r != null && r.monitoringAddr && (k.PL_MONITORING_ADDR = r.monitoringAddr), r != null && r.monitoringPort && (k.PL_MONITORING_PORT = r.monitoringPort.toString()), r != null && r.debugAddr && (k.PL_DEBUG_ADDR = r.debugAddr), r != null && r.debugPort && (k.PL_DEBUG_PORT = r.debugPort.toString()), r != null && r.auth && (r.auth.enabled && (k.PL_AUTH_ENABLED = "true"), r.auth.drivers)) {
|
|
1112
|
-
for (const
|
|
1113
|
-
|
|
1118
|
+
for (const p of r.auth.drivers)
|
|
1119
|
+
p.driver === "htpasswd" && (k.PL_AUTH_HTPASSWD_PATH = m.resolve(p.path), p.path = "/etc/platforma/users.htpasswd");
|
|
1114
1120
|
k.PL_AUTH_DRIVERS = JSON.stringify(r.auth.drivers);
|
|
1115
1121
|
}
|
|
1116
1122
|
return u.setInstanceInfo(e, {
|
|
@@ -1155,21 +1161,21 @@ ${r}`);
|
|
|
1155
1161
|
f.existsSync(o) || (f.mkdirSync(m.dirname(o), { recursive: !0 }), f.writeFileSync(o, ""));
|
|
1156
1162
|
const d = c("db"), g = c("primary"), h = c("library"), b = c("work"), w = i("users.htpasswd");
|
|
1157
1163
|
f.existsSync(w) || f.copyFileSync(Q("users.htpasswd"), w);
|
|
1158
|
-
const
|
|
1159
|
-
f.existsSync(
|
|
1164
|
+
const y = i("compose.yaml");
|
|
1165
|
+
f.existsSync(y) && this.logger.info(`replacing docker compose file ${y}`);
|
|
1160
1166
|
const P = [];
|
|
1161
1167
|
for (const $ of (r == null ? void 0 : r.customMounts) ?? [])
|
|
1162
1168
|
P.push({
|
|
1163
1169
|
hostPath: $.hostPath,
|
|
1164
1170
|
containerPath: $.containerPath ?? $.hostPath
|
|
1165
1171
|
});
|
|
1166
|
-
this.logger.debug(`Rendering docker compose file '${
|
|
1172
|
+
this.logger.debug(`Rendering docker compose file '${y}' using '${n}' as base template`), Ae(n, y, `pl-${e}`, /* @__PURE__ */ new Map([
|
|
1167
1173
|
["backend", {
|
|
1168
1174
|
platform: r == null ? void 0 : r.platformOverride,
|
|
1169
1175
|
mounts: P
|
|
1170
1176
|
}]
|
|
1171
1177
|
]));
|
|
1172
|
-
const S = X((r == null ? void 0 : r.primaryStorageURL) ?? `file:${g}`, "."), k = X((r == null ? void 0 : r.libraryStorageURL) ?? `file:${h}`, "."),
|
|
1178
|
+
const S = X((r == null ? void 0 : r.primaryStorageURL) ?? `file:${g}`, "."), k = X((r == null ? void 0 : r.libraryStorageURL) ?? `file:${h}`, "."), p = {
|
|
1173
1179
|
PL_IMAGE: s,
|
|
1174
1180
|
PL_AUTH_HTPASSWD_PATH: w,
|
|
1175
1181
|
PL_LICENSE: r == null ? void 0 : r.license,
|
|
@@ -1186,29 +1192,29 @@ ${r}`);
|
|
|
1186
1192
|
...this.configureDockerStorage("primary", S),
|
|
1187
1193
|
...this.configureDockerStorage("library", k)
|
|
1188
1194
|
};
|
|
1189
|
-
if (r != null && r.grpcAddr && (
|
|
1195
|
+
if (r != null && r.grpcAddr && (p.PL_GRPC_ADDR = r.grpcAddr), r != null && r.grpcPort && (p.PL_GRPC_PORT = r.grpcPort.toString()), r != null && r.monitoringAddr && (p.PL_MONITORING_ADDR = r.monitoringAddr), r != null && r.monitoringPort && (p.PL_MONITORING_PORT = r.monitoringPort.toString()), r != null && r.debugAddr && (p.PL_DEBUG_ADDR = r.debugAddr), r != null && r.debugPort && (p.PL_DEBUG_PORT = r.debugPort.toString()), r != null && r.auth && (r.auth.enabled && (p.PL_AUTH_ENABLED = "true"), r.auth.drivers)) {
|
|
1190
1196
|
for (const $ of r.auth.drivers)
|
|
1191
|
-
$.driver === "htpasswd" && (
|
|
1192
|
-
|
|
1197
|
+
$.driver === "htpasswd" && (p.PL_AUTH_HTPASSWD_PATH = m.resolve($.path), $.path = "/etc/platforma/users.htpasswd");
|
|
1198
|
+
p.PL_AUTH_DRIVERS = JSON.stringify(r.auth.drivers);
|
|
1193
1199
|
}
|
|
1194
1200
|
return u.setInstanceInfo(e, {
|
|
1195
1201
|
type: "docker",
|
|
1196
1202
|
upCommands: [{
|
|
1197
1203
|
cmd: "docker",
|
|
1198
|
-
args: ["compose", `--file=${
|
|
1199
|
-
envs:
|
|
1204
|
+
args: ["compose", `--file=${y}`, "up", "--detach", "--remove-orphans", "--pull=missing"],
|
|
1205
|
+
envs: p,
|
|
1200
1206
|
runOpts: { stdio: "inherit" }
|
|
1201
1207
|
}],
|
|
1202
1208
|
downCommands: [{
|
|
1203
1209
|
cmd: "docker",
|
|
1204
|
-
args: ["compose", `--file=${
|
|
1205
|
-
envs:
|
|
1210
|
+
args: ["compose", `--file=${y}`, "down"],
|
|
1211
|
+
envs: p,
|
|
1206
1212
|
runOpts: { stdio: "inherit" }
|
|
1207
1213
|
}],
|
|
1208
1214
|
cleanupCommands: [{
|
|
1209
1215
|
cmd: "docker",
|
|
1210
|
-
args: ["compose", `--file=${
|
|
1211
|
-
envs:
|
|
1216
|
+
args: ["compose", `--file=${y}`, "down", "--volumes", "--remove-orphans"],
|
|
1217
|
+
envs: p,
|
|
1212
1218
|
runOpts: { stdio: "inherit" }
|
|
1213
1219
|
}],
|
|
1214
1220
|
runInfo: {
|
|
@@ -1438,7 +1444,7 @@ let lt = (E = class extends L {
|
|
|
1438
1444
|
...he,
|
|
1439
1445
|
...U,
|
|
1440
1446
|
...M,
|
|
1441
|
-
...
|
|
1447
|
+
...ye,
|
|
1442
1448
|
...B,
|
|
1443
1449
|
...ce,
|
|
1444
1450
|
...ie,
|
|
@@ -1458,7 +1464,7 @@ let dt = (T = class extends L {
|
|
|
1458
1464
|
e["monitoring-listen"] ? b = e["monitoring-listen"] : e["monitoring-port"] && (b = `127.0.0.1:${e["monitoring-port"]}`);
|
|
1459
1465
|
let w = "127.0.0.1:9091";
|
|
1460
1466
|
e["debug-listen"] ? w = e["debug-listen"] : e["debug-port"] && (w = `127.0.0.1:${e["debug-port"]}`);
|
|
1461
|
-
const
|
|
1467
|
+
const y = {
|
|
1462
1468
|
binaryPath: g,
|
|
1463
1469
|
version: e.version,
|
|
1464
1470
|
configPath: e.config,
|
|
@@ -1477,8 +1483,8 @@ let dt = (T = class extends L {
|
|
|
1477
1483
|
work: { type: "FS", rootPath: e["storage-work"] }
|
|
1478
1484
|
}
|
|
1479
1485
|
}
|
|
1480
|
-
}, P = r.createLocal(n,
|
|
1481
|
-
|
|
1486
|
+
}, P = r.createLocal(n, y);
|
|
1487
|
+
y.binaryPath ? r.switchInstance(P) : ke(t, { version: e.version }).then(() => {
|
|
1482
1488
|
const S = r.switchInstance(P);
|
|
1483
1489
|
setTimeout(() => {
|
|
1484
1490
|
for (const k of S)
|
|
@@ -1500,7 +1506,7 @@ let dt = (T = class extends L {
|
|
|
1500
1506
|
...ce,
|
|
1501
1507
|
...ie,
|
|
1502
1508
|
...oe,
|
|
1503
|
-
...
|
|
1509
|
+
...pe,
|
|
1504
1510
|
...be,
|
|
1505
1511
|
...U
|
|
1506
1512
|
}), T);
|
|
@@ -1599,9 +1605,9 @@ let gt = (x = class extends L {
|
|
|
1599
1605
|
...he,
|
|
1600
1606
|
...U,
|
|
1601
1607
|
...M,
|
|
1602
|
-
...
|
|
1608
|
+
...ye,
|
|
1603
1609
|
...B,
|
|
1604
|
-
...
|
|
1610
|
+
...yr
|
|
1605
1611
|
}), x);
|
|
1606
1612
|
var D;
|
|
1607
1613
|
let ut = (D = class extends L {
|
|
@@ -1617,7 +1623,7 @@ let ut = (D = class extends L {
|
|
|
1617
1623
|
e["monitoring-listen"] ? b = e["monitoring-listen"] : e["monitoring-port"] && (b = `127.0.0.1:${e["monitoring-port"]}`);
|
|
1618
1624
|
let w = "127.0.0.1:9091";
|
|
1619
1625
|
e["debug-listen"] ? w = e["debug-listen"] : e["debug-port"] && (w = `127.0.0.1:${e["debug-port"]}`);
|
|
1620
|
-
const
|
|
1626
|
+
const y = {
|
|
1621
1627
|
binaryPath: g,
|
|
1622
1628
|
version: e.version,
|
|
1623
1629
|
configPath: e.config,
|
|
@@ -1640,8 +1646,8 @@ let ut = (D = class extends L {
|
|
|
1640
1646
|
work: { type: "FS", rootPath: e["storage-work"] }
|
|
1641
1647
|
}
|
|
1642
1648
|
}
|
|
1643
|
-
}, P = r.createLocalS3(n,
|
|
1644
|
-
|
|
1649
|
+
}, P = r.createLocalS3(n, y);
|
|
1650
|
+
y.binaryPath ? r.switchInstance(P) : ke(t, { version: e.version }).then(() => {
|
|
1645
1651
|
const S = r.switchInstance(P);
|
|
1646
1652
|
setTimeout(() => {
|
|
1647
1653
|
for (const k of S)
|
|
@@ -1664,7 +1670,7 @@ let ut = (D = class extends L {
|
|
|
1664
1670
|
...ce,
|
|
1665
1671
|
...ie,
|
|
1666
1672
|
...oe,
|
|
1667
|
-
...
|
|
1673
|
+
...pe,
|
|
1668
1674
|
...be,
|
|
1669
1675
|
...U
|
|
1670
1676
|
}), D);
|
|
@@ -1707,7 +1713,7 @@ l(z, "description", "Run Platforma Backend service as docker container on curren
|
|
|
1707
1713
|
...he,
|
|
1708
1714
|
...U,
|
|
1709
1715
|
...M,
|
|
1710
|
-
...
|
|
1716
|
+
...ye,
|
|
1711
1717
|
...B,
|
|
1712
1718
|
...ce,
|
|
1713
1719
|
...ie,
|
|
@@ -1728,8 +1734,8 @@ let ft = (R = class extends L {
|
|
|
1728
1734
|
e["grpc-listen"] ? b = e["grpc-listen"] : e["grpc-port"] && (b = `127.0.0.1:${e["grpc-port"]}`);
|
|
1729
1735
|
let w = "127.0.0.1:9090";
|
|
1730
1736
|
e["monitoring-listen"] ? w = e["monitoring-listen"] : e["monitoring-port"] && (w = `127.0.0.1:${e["monitoring-port"]}`);
|
|
1731
|
-
let
|
|
1732
|
-
e["debug-listen"] ?
|
|
1737
|
+
let y = "127.0.0.1:9091";
|
|
1738
|
+
e["debug-listen"] ? y = e["debug-listen"] : e["debug-port"] && (y = `127.0.0.1:${e["debug-port"]}`);
|
|
1733
1739
|
const P = {
|
|
1734
1740
|
binaryPath: h,
|
|
1735
1741
|
version: e.version,
|
|
@@ -1740,7 +1746,7 @@ let ft = (R = class extends L {
|
|
|
1740
1746
|
configOptions: {
|
|
1741
1747
|
grpc: { listen: b },
|
|
1742
1748
|
monitoring: { listen: w },
|
|
1743
|
-
debug: { listen:
|
|
1749
|
+
debug: { listen: y },
|
|
1744
1750
|
license: { value: e.license, file: e["license-file"] },
|
|
1745
1751
|
log: { path: o },
|
|
1746
1752
|
localRoot: c,
|
|
@@ -1754,7 +1760,7 @@ let ft = (R = class extends L {
|
|
|
1754
1760
|
r.info(`Instance '${s}' was created. To start it run 'up' command`);
|
|
1755
1761
|
return;
|
|
1756
1762
|
}
|
|
1757
|
-
ke(r, { version: e.version }).then(() => r.info(`Instance '${s}' was created. To start it run '
|
|
1763
|
+
ke(r, { version: e.version }).then(() => r.info(`Instance '${s}' was created. To start it run 'svc up' command`)).catch(function(S) {
|
|
1758
1764
|
r.error(S.message);
|
|
1759
1765
|
});
|
|
1760
1766
|
}
|
|
@@ -1770,7 +1776,7 @@ let ft = (R = class extends L {
|
|
|
1770
1776
|
...ce,
|
|
1771
1777
|
...ie,
|
|
1772
1778
|
...oe,
|
|
1773
|
-
...
|
|
1779
|
+
...pe,
|
|
1774
1780
|
...be,
|
|
1775
1781
|
...U
|
|
1776
1782
|
}), l(R, "args", {
|
|
@@ -1813,9 +1819,9 @@ l(Y, "description", "Run Platforma Backend service as docker container on curren
|
|
|
1813
1819
|
...he,
|
|
1814
1820
|
...U,
|
|
1815
1821
|
...M,
|
|
1816
|
-
...
|
|
1822
|
+
...ye,
|
|
1817
1823
|
...B,
|
|
1818
|
-
...
|
|
1824
|
+
...yr
|
|
1819
1825
|
}), l(Y, "args", {
|
|
1820
1826
|
name: K.string({ required: !0 })
|
|
1821
1827
|
});
|
|
@@ -1831,8 +1837,8 @@ const V = class V extends L {
|
|
|
1831
1837
|
e["grpc-listen"] ? b = e["grpc-listen"] : e["grpc-port"] && (b = `127.0.0.1:${e["grpc-port"]}`);
|
|
1832
1838
|
let w = "127.0.0.1:9090";
|
|
1833
1839
|
e["monitoring-listen"] ? w = e["monitoring-listen"] : e["monitoring-port"] && (w = `127.0.0.1:${e["monitoring-port"]}`);
|
|
1834
|
-
let
|
|
1835
|
-
e["debug-listen"] ?
|
|
1840
|
+
let y = "127.0.0.1:9091";
|
|
1841
|
+
e["debug-listen"] ? y = e["debug-listen"] : e["debug-port"] && (y = `127.0.0.1:${e["debug-port"]}`);
|
|
1836
1842
|
const P = {
|
|
1837
1843
|
binaryPath: h,
|
|
1838
1844
|
version: e.version,
|
|
@@ -1845,7 +1851,7 @@ const V = class V extends L {
|
|
|
1845
1851
|
configOptions: {
|
|
1846
1852
|
grpc: { listen: b },
|
|
1847
1853
|
monitoring: { listen: w },
|
|
1848
|
-
debug: { listen:
|
|
1854
|
+
debug: { listen: y },
|
|
1849
1855
|
license: { value: e.license, file: e["license-file"] },
|
|
1850
1856
|
log: { path: o },
|
|
1851
1857
|
localRoot: c,
|
|
@@ -1859,7 +1865,7 @@ const V = class V extends L {
|
|
|
1859
1865
|
r.info(`Instance '${s}' was created. To start it run 'up' command`);
|
|
1860
1866
|
return;
|
|
1861
1867
|
}
|
|
1862
|
-
ke(r, { version: e.version }).then(() => r.info(`Instance '${s}' was created. To start it run '
|
|
1868
|
+
ke(r, { version: e.version }).then(() => r.info(`Instance '${s}' was created. To start it run 'svc up' command`)).catch(function(S) {
|
|
1863
1869
|
r.error(S.message);
|
|
1864
1870
|
});
|
|
1865
1871
|
}
|
|
@@ -1877,7 +1883,7 @@ l(V, "description", "Run Platforma Backend service as local process on current h
|
|
|
1877
1883
|
...ce,
|
|
1878
1884
|
...ie,
|
|
1879
1885
|
...oe,
|
|
1880
|
-
...
|
|
1886
|
+
...pe,
|
|
1881
1887
|
...be,
|
|
1882
1888
|
...U
|
|
1883
1889
|
}), l(V, "args", {
|