@platforma-sdk/bootstrap 3.1.8 → 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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -70
- 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);
|
|
@@ -266,7 +266,7 @@ function Wr() {
|
|
|
266
266
|
const r = Z.keyInYN("Create package for block's software?");
|
|
267
267
|
let n = ["Tengo"];
|
|
268
268
|
if (r)
|
|
269
|
-
for (; n.length <
|
|
269
|
+
for (; n.length < pr.length; ) {
|
|
270
270
|
const i = Z.keyInSelect(Oe, "Choose software platform:");
|
|
271
271
|
if (i < 0) break;
|
|
272
272
|
n.push(Oe[i]);
|
|
@@ -615,15 +615,15 @@ function X(a, e, t) {
|
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
function et(a, e) {
|
|
618
|
-
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;
|
|
619
619
|
const t = (e == null ? void 0 : e.localRoot) ?? u.instanceDir("default"), r = {
|
|
620
620
|
level: ((w = e == null ? void 0 : e.log) == null ? void 0 : w.level) ?? "info",
|
|
621
|
-
path: ((
|
|
621
|
+
path: ((y = e == null ? void 0 : e.log) == null ? void 0 : y.path) ?? `${t}/logs/platforma.log`
|
|
622
622
|
}, n = {
|
|
623
623
|
listen: ((P = e == null ? void 0 : e.grpc) == null ? void 0 : P.listen) ?? "localhost:6345",
|
|
624
624
|
tls: {
|
|
625
625
|
enable: de((k = (S = e == null ? void 0 : e.grpc) == null ? void 0 : S.tls) == null ? void 0 : k.enable, !1),
|
|
626
|
-
clientAuthMode: (($ = (
|
|
626
|
+
clientAuthMode: (($ = (p = e == null ? void 0 : e.grpc) == null ? void 0 : p.tls) == null ? void 0 : $.clientAuthMode) ?? "NoAuth",
|
|
627
627
|
certFile: ((Ge = (le = e == null ? void 0 : e.grpc) == null ? void 0 : le.tls) == null ? void 0 : Ge.certFile) ?? `${t}/certs/tls.cert`,
|
|
628
628
|
keyFile: ((He = (Je = e == null ? void 0 : e.grpc) == null ? void 0 : Je.tls) == null ? void 0 : He.keyFile) ?? `${t}/certs/tls.key`,
|
|
629
629
|
...(We = e == null ? void 0 : e.grpc) == null ? void 0 : We.tls
|
|
@@ -819,24 +819,24 @@ function st(a, e) {
|
|
|
819
819
|
return new Promise((o, d) => {
|
|
820
820
|
c.on("response", (g) => {
|
|
821
821
|
if (!g.statusCode) {
|
|
822
|
-
const
|
|
823
|
-
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);
|
|
824
824
|
return;
|
|
825
825
|
}
|
|
826
826
|
if (g.statusCode !== 200) {
|
|
827
|
-
const
|
|
828
|
-
c.destroy(), d(
|
|
827
|
+
const y = new Error(`failed to download archive: ${g.statusCode} ${g.statusMessage}`);
|
|
828
|
+
c.destroy(), d(y);
|
|
829
829
|
return;
|
|
830
830
|
}
|
|
831
831
|
const h = parseInt(g.headers["content-length"] || "0", 10);
|
|
832
832
|
let b = 0;
|
|
833
833
|
const w = f.createWriteStream(i);
|
|
834
|
-
g.pipe(w), g.on("data", (
|
|
835
|
-
b +=
|
|
834
|
+
g.pipe(w), g.on("data", (y) => {
|
|
835
|
+
b += y.length;
|
|
836
836
|
const P = b / h * 100;
|
|
837
837
|
r && process.stdout.write(` downloading: ${P.toFixed(2)}%\r`);
|
|
838
|
-
}), g.on("error", (
|
|
839
|
-
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);
|
|
840
840
|
}), w.on("finish", () => {
|
|
841
841
|
w.close(), a.info(" ... download done."), c.destroy(), o(i);
|
|
842
842
|
});
|
|
@@ -927,7 +927,7 @@ ${r}`);
|
|
|
927
927
|
return this.startInstance(e);
|
|
928
928
|
}
|
|
929
929
|
createLocal(e, t) {
|
|
930
|
-
var o, d, g, h, b, w,
|
|
930
|
+
var o, d, g, h, b, w, y, P, S, k;
|
|
931
931
|
const r = (t == null ? void 0 : t.binaryPath) ?? ct(t == null ? void 0 : t.version, "binaries", "platforma");
|
|
932
932
|
let n = t == null ? void 0 : t.configPath;
|
|
933
933
|
const s = (t == null ? void 0 : t.workdir) ?? (n ? process.cwd() : u.instanceDir(e));
|
|
@@ -945,17 +945,17 @@ ${r}`);
|
|
|
945
945
|
}
|
|
946
946
|
});
|
|
947
947
|
const i = et(this.getLastJwt(), t == null ? void 0 : t.configOptions);
|
|
948
|
-
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);
|
|
949
949
|
const c = [
|
|
950
950
|
`${i.localRoot}/packages`,
|
|
951
951
|
`${i.localRoot}/packages-local`,
|
|
952
952
|
`${i.localRoot}/blocks-local`
|
|
953
953
|
];
|
|
954
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...");
|
|
955
|
-
for (const
|
|
956
|
-
f.existsSync(
|
|
957
|
-
for (const
|
|
958
|
-
|
|
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)));
|
|
959
959
|
return n || (n = m.join(i.localRoot, "config.yaml"), this.logger.debug(` rendering configuration '${n}'...`), f.writeFileSync(n, rt(i))), u.setInstanceInfo(e, {
|
|
960
960
|
type: "process",
|
|
961
961
|
upCommands: [
|
|
@@ -1064,8 +1064,8 @@ ${r}`);
|
|
|
1064
1064
|
this.logger.debug("creating platforma instance in 'docker s3' mode...");
|
|
1065
1065
|
const n = Q("compose-backend.yaml"), s = (r == null ? void 0 : r.image) ?? gr(r == null ? void 0 : r.version);
|
|
1066
1066
|
this.checkLicense(r == null ? void 0 : r.license, r == null ? void 0 : r.licenseFile);
|
|
1067
|
-
const i = (...
|
|
1068
|
-
const $ = i(
|
|
1067
|
+
const i = (...p) => m.join(t, ...p), c = (p) => {
|
|
1068
|
+
const $ = i(p);
|
|
1069
1069
|
return Se($, { mode: "0775" }), $;
|
|
1070
1070
|
}, o = i("logs", "platforma.log");
|
|
1071
1071
|
f.existsSync(o) || (f.mkdirSync(m.dirname(o), { recursive: !0 }), f.writeFileSync(o, ""));
|
|
@@ -1077,15 +1077,15 @@ ${r}`);
|
|
|
1077
1077
|
if (h.type !== "S3")
|
|
1078
1078
|
throw new Error(`${h.type} storage type is not supported for library storage`);
|
|
1079
1079
|
h.presignEndpoint = `http://${d}:9000`;
|
|
1080
|
-
const b = c("db"), w = c("work"),
|
|
1081
|
-
f.existsSync(
|
|
1080
|
+
const b = c("db"), w = c("work"), y = i("users.htpasswd");
|
|
1081
|
+
f.existsSync(y) || f.copyFileSync(Q("users.htpasswd"), y);
|
|
1082
1082
|
const P = i("compose.yaml");
|
|
1083
1083
|
f.existsSync(P) && this.logger.info(`replacing docker compose file ${P}`);
|
|
1084
1084
|
const S = [];
|
|
1085
|
-
for (const
|
|
1085
|
+
for (const p of (r == null ? void 0 : r.customMounts) ?? [])
|
|
1086
1086
|
S.push({
|
|
1087
|
-
hostPath:
|
|
1088
|
-
containerPath:
|
|
1087
|
+
hostPath: p.hostPath,
|
|
1088
|
+
containerPath: p.containerPath ?? p.hostPath
|
|
1089
1089
|
});
|
|
1090
1090
|
Ae(n, P, `pl-${e}`, /* @__PURE__ */ new Map([
|
|
1091
1091
|
["minio", {}],
|
|
@@ -1098,7 +1098,7 @@ ${r}`);
|
|
|
1098
1098
|
MINIO_IMAGE: "quay.io/minio/minio",
|
|
1099
1099
|
MINIO_STORAGE: c("minio"),
|
|
1100
1100
|
PL_IMAGE: s,
|
|
1101
|
-
PL_AUTH_HTPASSWD_PATH:
|
|
1101
|
+
PL_AUTH_HTPASSWD_PATH: y,
|
|
1102
1102
|
PL_LICENSE: r == null ? void 0 : r.license,
|
|
1103
1103
|
PL_LICENSE_FILE: r == null ? void 0 : r.licenseFile,
|
|
1104
1104
|
PL_LOG_LEVEL: (r == null ? void 0 : r.logLevel) ?? "info",
|
|
@@ -1115,8 +1115,8 @@ ${r}`);
|
|
|
1115
1115
|
...this.configureDockerStorage("library", h)
|
|
1116
1116
|
};
|
|
1117
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)) {
|
|
1118
|
-
for (const
|
|
1119
|
-
|
|
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");
|
|
1120
1120
|
k.PL_AUTH_DRIVERS = JSON.stringify(r.auth.drivers);
|
|
1121
1121
|
}
|
|
1122
1122
|
return u.setInstanceInfo(e, {
|
|
@@ -1161,21 +1161,21 @@ ${r}`);
|
|
|
1161
1161
|
f.existsSync(o) || (f.mkdirSync(m.dirname(o), { recursive: !0 }), f.writeFileSync(o, ""));
|
|
1162
1162
|
const d = c("db"), g = c("primary"), h = c("library"), b = c("work"), w = i("users.htpasswd");
|
|
1163
1163
|
f.existsSync(w) || f.copyFileSync(Q("users.htpasswd"), w);
|
|
1164
|
-
const
|
|
1165
|
-
f.existsSync(
|
|
1164
|
+
const y = i("compose.yaml");
|
|
1165
|
+
f.existsSync(y) && this.logger.info(`replacing docker compose file ${y}`);
|
|
1166
1166
|
const P = [];
|
|
1167
1167
|
for (const $ of (r == null ? void 0 : r.customMounts) ?? [])
|
|
1168
1168
|
P.push({
|
|
1169
1169
|
hostPath: $.hostPath,
|
|
1170
1170
|
containerPath: $.containerPath ?? $.hostPath
|
|
1171
1171
|
});
|
|
1172
|
-
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([
|
|
1173
1173
|
["backend", {
|
|
1174
1174
|
platform: r == null ? void 0 : r.platformOverride,
|
|
1175
1175
|
mounts: P
|
|
1176
1176
|
}]
|
|
1177
1177
|
]));
|
|
1178
|
-
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 = {
|
|
1179
1179
|
PL_IMAGE: s,
|
|
1180
1180
|
PL_AUTH_HTPASSWD_PATH: w,
|
|
1181
1181
|
PL_LICENSE: r == null ? void 0 : r.license,
|
|
@@ -1192,29 +1192,29 @@ ${r}`);
|
|
|
1192
1192
|
...this.configureDockerStorage("primary", S),
|
|
1193
1193
|
...this.configureDockerStorage("library", k)
|
|
1194
1194
|
};
|
|
1195
|
-
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)) {
|
|
1196
1196
|
for (const $ of r.auth.drivers)
|
|
1197
|
-
$.driver === "htpasswd" && (
|
|
1198
|
-
|
|
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);
|
|
1199
1199
|
}
|
|
1200
1200
|
return u.setInstanceInfo(e, {
|
|
1201
1201
|
type: "docker",
|
|
1202
1202
|
upCommands: [{
|
|
1203
1203
|
cmd: "docker",
|
|
1204
|
-
args: ["compose", `--file=${
|
|
1205
|
-
envs:
|
|
1204
|
+
args: ["compose", `--file=${y}`, "up", "--detach", "--remove-orphans", "--pull=missing"],
|
|
1205
|
+
envs: p,
|
|
1206
1206
|
runOpts: { stdio: "inherit" }
|
|
1207
1207
|
}],
|
|
1208
1208
|
downCommands: [{
|
|
1209
1209
|
cmd: "docker",
|
|
1210
|
-
args: ["compose", `--file=${
|
|
1211
|
-
envs:
|
|
1210
|
+
args: ["compose", `--file=${y}`, "down"],
|
|
1211
|
+
envs: p,
|
|
1212
1212
|
runOpts: { stdio: "inherit" }
|
|
1213
1213
|
}],
|
|
1214
1214
|
cleanupCommands: [{
|
|
1215
1215
|
cmd: "docker",
|
|
1216
|
-
args: ["compose", `--file=${
|
|
1217
|
-
envs:
|
|
1216
|
+
args: ["compose", `--file=${y}`, "down", "--volumes", "--remove-orphans"],
|
|
1217
|
+
envs: p,
|
|
1218
1218
|
runOpts: { stdio: "inherit" }
|
|
1219
1219
|
}],
|
|
1220
1220
|
runInfo: {
|
|
@@ -1444,7 +1444,7 @@ let lt = (E = class extends L {
|
|
|
1444
1444
|
...he,
|
|
1445
1445
|
...U,
|
|
1446
1446
|
...M,
|
|
1447
|
-
...
|
|
1447
|
+
...ye,
|
|
1448
1448
|
...B,
|
|
1449
1449
|
...ce,
|
|
1450
1450
|
...ie,
|
|
@@ -1464,7 +1464,7 @@ let dt = (T = class extends L {
|
|
|
1464
1464
|
e["monitoring-listen"] ? b = e["monitoring-listen"] : e["monitoring-port"] && (b = `127.0.0.1:${e["monitoring-port"]}`);
|
|
1465
1465
|
let w = "127.0.0.1:9091";
|
|
1466
1466
|
e["debug-listen"] ? w = e["debug-listen"] : e["debug-port"] && (w = `127.0.0.1:${e["debug-port"]}`);
|
|
1467
|
-
const
|
|
1467
|
+
const y = {
|
|
1468
1468
|
binaryPath: g,
|
|
1469
1469
|
version: e.version,
|
|
1470
1470
|
configPath: e.config,
|
|
@@ -1483,8 +1483,8 @@ let dt = (T = class extends L {
|
|
|
1483
1483
|
work: { type: "FS", rootPath: e["storage-work"] }
|
|
1484
1484
|
}
|
|
1485
1485
|
}
|
|
1486
|
-
}, P = r.createLocal(n,
|
|
1487
|
-
|
|
1486
|
+
}, P = r.createLocal(n, y);
|
|
1487
|
+
y.binaryPath ? r.switchInstance(P) : ke(t, { version: e.version }).then(() => {
|
|
1488
1488
|
const S = r.switchInstance(P);
|
|
1489
1489
|
setTimeout(() => {
|
|
1490
1490
|
for (const k of S)
|
|
@@ -1506,7 +1506,7 @@ let dt = (T = class extends L {
|
|
|
1506
1506
|
...ce,
|
|
1507
1507
|
...ie,
|
|
1508
1508
|
...oe,
|
|
1509
|
-
...
|
|
1509
|
+
...pe,
|
|
1510
1510
|
...be,
|
|
1511
1511
|
...U
|
|
1512
1512
|
}), T);
|
|
@@ -1605,9 +1605,9 @@ let gt = (x = class extends L {
|
|
|
1605
1605
|
...he,
|
|
1606
1606
|
...U,
|
|
1607
1607
|
...M,
|
|
1608
|
-
...
|
|
1608
|
+
...ye,
|
|
1609
1609
|
...B,
|
|
1610
|
-
...
|
|
1610
|
+
...yr
|
|
1611
1611
|
}), x);
|
|
1612
1612
|
var D;
|
|
1613
1613
|
let ut = (D = class extends L {
|
|
@@ -1623,7 +1623,7 @@ let ut = (D = class extends L {
|
|
|
1623
1623
|
e["monitoring-listen"] ? b = e["monitoring-listen"] : e["monitoring-port"] && (b = `127.0.0.1:${e["monitoring-port"]}`);
|
|
1624
1624
|
let w = "127.0.0.1:9091";
|
|
1625
1625
|
e["debug-listen"] ? w = e["debug-listen"] : e["debug-port"] && (w = `127.0.0.1:${e["debug-port"]}`);
|
|
1626
|
-
const
|
|
1626
|
+
const y = {
|
|
1627
1627
|
binaryPath: g,
|
|
1628
1628
|
version: e.version,
|
|
1629
1629
|
configPath: e.config,
|
|
@@ -1646,8 +1646,8 @@ let ut = (D = class extends L {
|
|
|
1646
1646
|
work: { type: "FS", rootPath: e["storage-work"] }
|
|
1647
1647
|
}
|
|
1648
1648
|
}
|
|
1649
|
-
}, P = r.createLocalS3(n,
|
|
1650
|
-
|
|
1649
|
+
}, P = r.createLocalS3(n, y);
|
|
1650
|
+
y.binaryPath ? r.switchInstance(P) : ke(t, { version: e.version }).then(() => {
|
|
1651
1651
|
const S = r.switchInstance(P);
|
|
1652
1652
|
setTimeout(() => {
|
|
1653
1653
|
for (const k of S)
|
|
@@ -1670,7 +1670,7 @@ let ut = (D = class extends L {
|
|
|
1670
1670
|
...ce,
|
|
1671
1671
|
...ie,
|
|
1672
1672
|
...oe,
|
|
1673
|
-
...
|
|
1673
|
+
...pe,
|
|
1674
1674
|
...be,
|
|
1675
1675
|
...U
|
|
1676
1676
|
}), D);
|
|
@@ -1713,7 +1713,7 @@ l(z, "description", "Run Platforma Backend service as docker container on curren
|
|
|
1713
1713
|
...he,
|
|
1714
1714
|
...U,
|
|
1715
1715
|
...M,
|
|
1716
|
-
...
|
|
1716
|
+
...ye,
|
|
1717
1717
|
...B,
|
|
1718
1718
|
...ce,
|
|
1719
1719
|
...ie,
|
|
@@ -1734,8 +1734,8 @@ let ft = (R = class extends L {
|
|
|
1734
1734
|
e["grpc-listen"] ? b = e["grpc-listen"] : e["grpc-port"] && (b = `127.0.0.1:${e["grpc-port"]}`);
|
|
1735
1735
|
let w = "127.0.0.1:9090";
|
|
1736
1736
|
e["monitoring-listen"] ? w = e["monitoring-listen"] : e["monitoring-port"] && (w = `127.0.0.1:${e["monitoring-port"]}`);
|
|
1737
|
-
let
|
|
1738
|
-
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"]}`);
|
|
1739
1739
|
const P = {
|
|
1740
1740
|
binaryPath: h,
|
|
1741
1741
|
version: e.version,
|
|
@@ -1746,7 +1746,7 @@ let ft = (R = class extends L {
|
|
|
1746
1746
|
configOptions: {
|
|
1747
1747
|
grpc: { listen: b },
|
|
1748
1748
|
monitoring: { listen: w },
|
|
1749
|
-
debug: { listen:
|
|
1749
|
+
debug: { listen: y },
|
|
1750
1750
|
license: { value: e.license, file: e["license-file"] },
|
|
1751
1751
|
log: { path: o },
|
|
1752
1752
|
localRoot: c,
|
|
@@ -1760,7 +1760,7 @@ let ft = (R = class extends L {
|
|
|
1760
1760
|
r.info(`Instance '${s}' was created. To start it run 'up' command`);
|
|
1761
1761
|
return;
|
|
1762
1762
|
}
|
|
1763
|
-
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) {
|
|
1764
1764
|
r.error(S.message);
|
|
1765
1765
|
});
|
|
1766
1766
|
}
|
|
@@ -1776,7 +1776,7 @@ let ft = (R = class extends L {
|
|
|
1776
1776
|
...ce,
|
|
1777
1777
|
...ie,
|
|
1778
1778
|
...oe,
|
|
1779
|
-
...
|
|
1779
|
+
...pe,
|
|
1780
1780
|
...be,
|
|
1781
1781
|
...U
|
|
1782
1782
|
}), l(R, "args", {
|
|
@@ -1819,9 +1819,9 @@ l(Y, "description", "Run Platforma Backend service as docker container on curren
|
|
|
1819
1819
|
...he,
|
|
1820
1820
|
...U,
|
|
1821
1821
|
...M,
|
|
1822
|
-
...
|
|
1822
|
+
...ye,
|
|
1823
1823
|
...B,
|
|
1824
|
-
...
|
|
1824
|
+
...yr
|
|
1825
1825
|
}), l(Y, "args", {
|
|
1826
1826
|
name: K.string({ required: !0 })
|
|
1827
1827
|
});
|
|
@@ -1837,8 +1837,8 @@ const V = class V extends L {
|
|
|
1837
1837
|
e["grpc-listen"] ? b = e["grpc-listen"] : e["grpc-port"] && (b = `127.0.0.1:${e["grpc-port"]}`);
|
|
1838
1838
|
let w = "127.0.0.1:9090";
|
|
1839
1839
|
e["monitoring-listen"] ? w = e["monitoring-listen"] : e["monitoring-port"] && (w = `127.0.0.1:${e["monitoring-port"]}`);
|
|
1840
|
-
let
|
|
1841
|
-
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"]}`);
|
|
1842
1842
|
const P = {
|
|
1843
1843
|
binaryPath: h,
|
|
1844
1844
|
version: e.version,
|
|
@@ -1851,7 +1851,7 @@ const V = class V extends L {
|
|
|
1851
1851
|
configOptions: {
|
|
1852
1852
|
grpc: { listen: b },
|
|
1853
1853
|
monitoring: { listen: w },
|
|
1854
|
-
debug: { listen:
|
|
1854
|
+
debug: { listen: y },
|
|
1855
1855
|
license: { value: e.license, file: e["license-file"] },
|
|
1856
1856
|
log: { path: o },
|
|
1857
1857
|
localRoot: c,
|
|
@@ -1865,7 +1865,7 @@ const V = class V extends L {
|
|
|
1865
1865
|
r.info(`Instance '${s}' was created. To start it run 'up' command`);
|
|
1866
1866
|
return;
|
|
1867
1867
|
}
|
|
1868
|
-
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) {
|
|
1869
1869
|
r.error(S.message);
|
|
1870
1870
|
});
|
|
1871
1871
|
}
|
|
@@ -1883,7 +1883,7 @@ l(V, "description", "Run Platforma Backend service as local process on current h
|
|
|
1883
1883
|
...ce,
|
|
1884
1884
|
...ie,
|
|
1885
1885
|
...oe,
|
|
1886
|
-
...
|
|
1886
|
+
...pe,
|
|
1887
1887
|
...be,
|
|
1888
1888
|
...U
|
|
1889
1889
|
}), l(V, "args", {
|