lakutata 2.0.6 → 2.0.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/com/docker.d.ts +19 -0
- package/package.json +1 -1
- package/src/components/docker/Docker.cjs +30 -27
- package/src/components/docker/Docker.mjs +4 -1
- package/src/components/docker/lib/DockerContainer.cjs +38 -32
- package/src/components/docker/lib/DockerContainer.mjs +6 -0
- package/src/components/docker/options/container/ContainerSettingOptions.cjs +6 -0
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +6 -0
- package/src/decorators/orm/Column.cjs +14 -14
- package/src/decorators/orm/PrimaryColumn.cjs +1 -1
- package/vendor/Package.14.cjs +18 -20
package/com/docker.d.ts
CHANGED
|
@@ -3056,6 +3056,22 @@ declare class ContainerSettingOptions extends DTO {
|
|
|
3056
3056
|
* Kernel capabilities
|
|
3057
3057
|
*/
|
|
3058
3058
|
capabilities?: ContainerCapability[];
|
|
3059
|
+
/**
|
|
3060
|
+
* Cgroup to use for the container.
|
|
3061
|
+
*/
|
|
3062
|
+
cgroup?: string;
|
|
3063
|
+
/**
|
|
3064
|
+
* Path to cgroups under which the container's cgroup is created.
|
|
3065
|
+
* If the path is not absolute, the path is considered to be relative to the cgroups path of the init process.
|
|
3066
|
+
* Cgroups are created if they do not already exist.
|
|
3067
|
+
*/
|
|
3068
|
+
cgroupParent?: string;
|
|
3069
|
+
/**
|
|
3070
|
+
* Set the PID (Process) Namespace mode for the container. It can be either:
|
|
3071
|
+
* "container:<name|id>": joins another container's PID namespace
|
|
3072
|
+
* "host": use the host's PID namespace inside the container
|
|
3073
|
+
*/
|
|
3074
|
+
pidMode?: string;
|
|
3059
3075
|
}
|
|
3060
3076
|
|
|
3061
3077
|
type ContainerState = {
|
|
@@ -3353,6 +3369,9 @@ declare class DockerContainer extends Provider {
|
|
|
3353
3369
|
binds: ContainerBind[];
|
|
3354
3370
|
devices: ContainerDevice[];
|
|
3355
3371
|
networks: ContainerNetwork[];
|
|
3372
|
+
cgroup: string | undefined;
|
|
3373
|
+
cgroupParent: string | undefined;
|
|
3374
|
+
pidMode: string | undefined;
|
|
3356
3375
|
createdAt: Time;
|
|
3357
3376
|
/**
|
|
3358
3377
|
* Initializer
|
package/package.json
CHANGED
|
@@ -299,9 +299,9 @@ function A() {
|
|
|
299
299
|
|
|
300
300
|
var F = typeof process !== "undefined" && typeof process.nextTick === "function" ? process.nextTick.bind(process) : A();
|
|
301
301
|
|
|
302
|
-
const
|
|
302
|
+
const M = x.getDefaultExportFromCjs(F);
|
|
303
303
|
|
|
304
|
-
var
|
|
304
|
+
var B = class FixedFIFO {
|
|
305
305
|
constructor(e) {
|
|
306
306
|
if (!(e > 0) || (e - 1 & e) !== 0) throw new Error("Max size for a FixedFIFO should be a power of two");
|
|
307
307
|
this.buffer = new Array(e);
|
|
@@ -336,9 +336,9 @@ var M = class FixedFIFO {
|
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
338
|
|
|
339
|
-
const z = x.getDefaultExportFromCjs(
|
|
339
|
+
const z = x.getDefaultExportFromCjs(B);
|
|
340
340
|
|
|
341
|
-
const R =
|
|
341
|
+
const R = B;
|
|
342
342
|
|
|
343
343
|
var W = class FastFIFO {
|
|
344
344
|
constructor(e) {
|
|
@@ -479,9 +479,9 @@ const Ae = 8 << 18;
|
|
|
479
479
|
|
|
480
480
|
const Fe = 16 << 18;
|
|
481
481
|
|
|
482
|
-
const
|
|
482
|
+
const Me = 32 << 18;
|
|
483
483
|
|
|
484
|
-
const
|
|
484
|
+
const Be = 64 << 18;
|
|
485
485
|
|
|
486
486
|
const ze = 128 << 18;
|
|
487
487
|
|
|
@@ -507,7 +507,7 @@ const Ye = re | Ee;
|
|
|
507
507
|
|
|
508
508
|
const Xe = J ^ Ye;
|
|
509
509
|
|
|
510
|
-
const Qe = de |
|
|
510
|
+
const Qe = de | Me;
|
|
511
511
|
|
|
512
512
|
const Ze = Q | Z | X;
|
|
513
513
|
|
|
@@ -537,7 +537,7 @@ const ht = Ze | ue | de;
|
|
|
537
537
|
|
|
538
538
|
const dt = ie | et | pe | ne;
|
|
539
539
|
|
|
540
|
-
const pt = et | We |
|
|
540
|
+
const pt = et | We | Me;
|
|
541
541
|
|
|
542
542
|
const ft = Ae | Fe;
|
|
543
543
|
|
|
@@ -551,9 +551,9 @@ const bt = Ne | Ee;
|
|
|
551
551
|
|
|
552
552
|
const yt = Ee | Re;
|
|
553
553
|
|
|
554
|
-
const xt = et | We | _t |
|
|
554
|
+
const xt = et | We | _t | Me;
|
|
555
555
|
|
|
556
|
-
const St = Fe | Ze | We |
|
|
556
|
+
const St = Fe | Ze | We | Me;
|
|
557
557
|
|
|
558
558
|
const kt = Le | et | ze | Ne;
|
|
559
559
|
|
|
@@ -574,7 +574,7 @@ class WritableState {
|
|
|
574
574
|
this.afterUpdateNextTick = Ot.bind(this);
|
|
575
575
|
}
|
|
576
576
|
get ended() {
|
|
577
|
-
return (this.stream._duplexState &
|
|
577
|
+
return (this.stream._duplexState & Me) !== 0;
|
|
578
578
|
}
|
|
579
579
|
push(e) {
|
|
580
580
|
if (this.map !== null) e = this.map(e);
|
|
@@ -851,7 +851,7 @@ function jt(e) {
|
|
|
851
851
|
const t = this.stream;
|
|
852
852
|
if (e) t.destroy(e);
|
|
853
853
|
if ((t._duplexState & Ze) === 0) {
|
|
854
|
-
t._duplexState |=
|
|
854
|
+
t._duplexState |= Me;
|
|
855
855
|
t.emit("finish");
|
|
856
856
|
}
|
|
857
857
|
if ((t._duplexState & tt) === Qe) {
|
|
@@ -883,7 +883,7 @@ function Pt(e) {
|
|
|
883
883
|
if (this.drains !== null) Tt(this.drains);
|
|
884
884
|
if ((t._duplexState & mt) === Fe) {
|
|
885
885
|
t._duplexState &= Ve;
|
|
886
|
-
if ((t._duplexState &
|
|
886
|
+
if ((t._duplexState & Be) === Be) {
|
|
887
887
|
t.emit("drain");
|
|
888
888
|
}
|
|
889
889
|
}
|
|
@@ -955,7 +955,7 @@ function Lt(e) {
|
|
|
955
955
|
}
|
|
956
956
|
if (this._writableState !== null) {
|
|
957
957
|
if (e === "drain") {
|
|
958
|
-
this._duplexState |=
|
|
958
|
+
this._duplexState |= Be;
|
|
959
959
|
this._writableState.updateNextTick();
|
|
960
960
|
}
|
|
961
961
|
}
|
|
@@ -1020,7 +1020,7 @@ class Stream extends H {
|
|
|
1020
1020
|
let Nt = class Readable extends Stream {
|
|
1021
1021
|
constructor(e) {
|
|
1022
1022
|
super(e);
|
|
1023
|
-
this._duplexState |= Y |
|
|
1023
|
+
this._duplexState |= Y | Me | _e;
|
|
1024
1024
|
this._readableState = new ReadableState(this, e);
|
|
1025
1025
|
if (e) {
|
|
1026
1026
|
if (this._readableState.readAhead === false) this._duplexState &= Te;
|
|
@@ -1292,14 +1292,14 @@ function Ft(e, t) {
|
|
|
1292
1292
|
r(null);
|
|
1293
1293
|
}
|
|
1294
1294
|
|
|
1295
|
-
function
|
|
1296
|
-
return new Promise(((t, r) =>
|
|
1295
|
+
function Mt(...e) {
|
|
1296
|
+
return new Promise(((t, r) => Bt(...e, (e => {
|
|
1297
1297
|
if (e) return r(e);
|
|
1298
1298
|
t();
|
|
1299
1299
|
}))));
|
|
1300
1300
|
}
|
|
1301
1301
|
|
|
1302
|
-
function
|
|
1302
|
+
function Bt(e, ...t) {
|
|
1303
1303
|
const r = Array.isArray(e) ? [ ...e, ...t ] : [ e, ...t ];
|
|
1304
1304
|
const i = r.length && typeof r[r.length - 1] === "function" ? r.pop() : null;
|
|
1305
1305
|
if (r.length < 2) throw new Error("Pipeline requires at least 2 streams");
|
|
@@ -1384,8 +1384,8 @@ function Gt(e) {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
1386
|
var Jt = {
|
|
1387
|
-
pipeline:
|
|
1388
|
-
pipelinePromise:
|
|
1387
|
+
pipeline: Bt,
|
|
1388
|
+
pipelinePromise: Mt,
|
|
1389
1389
|
isStream: zt,
|
|
1390
1390
|
isStreamx: Rt,
|
|
1391
1391
|
getStreamError: Wt,
|
|
@@ -1570,9 +1570,9 @@ const Ar = Ir.from([ 32, 0 ]);
|
|
|
1570
1570
|
|
|
1571
1571
|
const Fr = 4095;
|
|
1572
1572
|
|
|
1573
|
-
const
|
|
1573
|
+
const Mr = 257;
|
|
1574
1574
|
|
|
1575
|
-
const
|
|
1575
|
+
const Br = 263;
|
|
1576
1576
|
|
|
1577
1577
|
var zr = vr.decodeLongPath = function e(t, r) {
|
|
1578
1578
|
return ii(t, 0, t.length, r);
|
|
@@ -1629,8 +1629,8 @@ var Ur = vr.encode = function e(t) {
|
|
|
1629
1629
|
Ir.write(r, Qr(t.mtime.getTime() / 1e3 | 0, 11), 136);
|
|
1630
1630
|
r[156] = Cr + Jr(t.type);
|
|
1631
1631
|
if (t.linkname) Ir.write(r, t.linkname, 157);
|
|
1632
|
-
Ir.copy(Er, r,
|
|
1633
|
-
Ir.copy(Lr, r,
|
|
1632
|
+
Ir.copy(Er, r, Mr);
|
|
1633
|
+
Ir.copy(Lr, r, Br);
|
|
1634
1634
|
if (t.uname) Ir.write(r, t.uname, 265);
|
|
1635
1635
|
if (t.gname) Ir.write(r, t.gname, 297);
|
|
1636
1636
|
Ir.write(r, Qr(t.devmajor || 0, 6), 329);
|
|
@@ -1683,11 +1683,11 @@ var Hr = vr.decode = function e(t, r, i) {
|
|
|
1683
1683
|
};
|
|
1684
1684
|
|
|
1685
1685
|
function Kr(e) {
|
|
1686
|
-
return Ir.equals(Er, e.subarray(
|
|
1686
|
+
return Ir.equals(Er, e.subarray(Mr, Mr + 6));
|
|
1687
1687
|
}
|
|
1688
1688
|
|
|
1689
1689
|
function Vr(e) {
|
|
1690
|
-
return Ir.equals(Nr, e.subarray(
|
|
1690
|
+
return Ir.equals(Nr, e.subarray(Mr, Mr + 6)) && Ir.equals(Ar, e.subarray(Br, Br + 2));
|
|
1691
1691
|
}
|
|
1692
1692
|
|
|
1693
1693
|
function $r(e, t, r) {
|
|
@@ -2761,7 +2761,10 @@ exports.Docker = class Docker extends t.Component {
|
|
|
2761
2761
|
PortBindings: n,
|
|
2762
2762
|
Binds: s,
|
|
2763
2763
|
Devices: a,
|
|
2764
|
-
CapAdd: r.capabilities
|
|
2764
|
+
CapAdd: r.capabilities,
|
|
2765
|
+
Cgroup: r.cgroup,
|
|
2766
|
+
CgroupParent: r.cgroupParent,
|
|
2767
|
+
PidMode: r.pidMode
|
|
2765
2768
|
},
|
|
2766
2769
|
NetworkingConfig: {
|
|
2767
2770
|
EndpointsConfig: o
|
|
@@ -2757,7 +2757,10 @@ let qr = class Docker extends i {
|
|
|
2757
2757
|
PortBindings: n,
|
|
2758
2758
|
Binds: s,
|
|
2759
2759
|
Devices: a,
|
|
2760
|
-
CapAdd: i.capabilities
|
|
2760
|
+
CapAdd: i.capabilities,
|
|
2761
|
+
Cgroup: i.cgroup,
|
|
2762
|
+
CgroupParent: i.cgroupParent,
|
|
2763
|
+
PidMode: i.pidMode
|
|
2761
2764
|
},
|
|
2762
2765
|
NetworkingConfig: {
|
|
2763
2766
|
EndpointsConfig: o
|
|
@@ -12,9 +12,9 @@ const r = require("../../../decorators/di/Lifetime.cjs");
|
|
|
12
12
|
|
|
13
13
|
const i = require("../../../decorators/di/Configurable.cjs");
|
|
14
14
|
|
|
15
|
-
const
|
|
15
|
+
const o = require("../../../../vendor/Package.2.cjs");
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const n = require("../../../lib/helpers/IsAbortError.cjs");
|
|
18
18
|
|
|
19
19
|
const s = require("../../../lib/core/Time.cjs");
|
|
20
20
|
|
|
@@ -50,9 +50,9 @@ const j = require("../options/container/ContainerExecOptions.cjs");
|
|
|
50
50
|
|
|
51
51
|
const _ = require("../options/container/ContainerExportDirectoryOptions.cjs");
|
|
52
52
|
|
|
53
|
-
const
|
|
53
|
+
const P = require("stream/promises");
|
|
54
54
|
|
|
55
|
-
const
|
|
55
|
+
const w = require("node:fs");
|
|
56
56
|
|
|
57
57
|
require("../../../../vendor/Package.3.cjs");
|
|
58
58
|
|
|
@@ -290,7 +290,7 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
|
|
|
290
290
|
if (e.ipv6) r.push(`[${e.ipv6}]`);
|
|
291
291
|
}));
|
|
292
292
|
const i = [];
|
|
293
|
-
const
|
|
293
|
+
const o = new Map;
|
|
294
294
|
this.image.config.ports?.forEach((e => {
|
|
295
295
|
r.forEach((t => {
|
|
296
296
|
const r = [];
|
|
@@ -298,50 +298,50 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
|
|
|
298
298
|
if (e.udp) r.push("udp");
|
|
299
299
|
r.forEach((r => {
|
|
300
300
|
const i = `${t}_${e.port}_${r}`;
|
|
301
|
-
if (!
|
|
301
|
+
if (!o.has(i)) o.set(i, []);
|
|
302
302
|
}));
|
|
303
303
|
}));
|
|
304
304
|
}));
|
|
305
305
|
if (e.NetworkSettings.Ports) {
|
|
306
306
|
Object.keys(e.NetworkSettings.Ports).forEach((t => {
|
|
307
307
|
const i = t.split("/");
|
|
308
|
-
const
|
|
308
|
+
const n = parseInt(i[0]);
|
|
309
309
|
const s = a.As(i[1].toLowerCase());
|
|
310
310
|
e.NetworkSettings.Ports[t]?.forEach((e => {
|
|
311
311
|
r.forEach((t => {
|
|
312
|
-
const r = `${t}_${
|
|
313
|
-
if (!
|
|
314
|
-
const i =
|
|
312
|
+
const r = `${t}_${n}_${s}`;
|
|
313
|
+
if (!o.has(r)) o.set(r, []);
|
|
314
|
+
const i = o.get(r);
|
|
315
315
|
i.push(parseInt(e.HostPort));
|
|
316
|
-
|
|
316
|
+
o.set(r, i);
|
|
317
317
|
}));
|
|
318
318
|
}));
|
|
319
319
|
}));
|
|
320
320
|
}
|
|
321
|
-
|
|
321
|
+
o.forEach(((e, t) => {
|
|
322
322
|
const r = t.split("_");
|
|
323
|
-
const
|
|
324
|
-
const
|
|
323
|
+
const o = r[0];
|
|
324
|
+
const n = parseInt(r[1]);
|
|
325
325
|
const s = a.As(r[2]);
|
|
326
326
|
i.push({
|
|
327
|
-
host:
|
|
328
|
-
port:
|
|
327
|
+
host: o,
|
|
328
|
+
port: n,
|
|
329
329
|
type: s,
|
|
330
330
|
hostPorts: e
|
|
331
331
|
});
|
|
332
332
|
}));
|
|
333
333
|
this.ports = i;
|
|
334
|
-
const
|
|
334
|
+
const n = [];
|
|
335
335
|
e.Mounts.forEach((e => {
|
|
336
336
|
if (e.Type === "bind") {
|
|
337
|
-
|
|
337
|
+
n.push({
|
|
338
338
|
hostPath: e.Source,
|
|
339
339
|
containerPath: e.Destination,
|
|
340
340
|
rw: e.RW
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
343
|
}));
|
|
344
|
-
this.binds =
|
|
344
|
+
this.binds = n;
|
|
345
345
|
this.devices = e.HostConfig.Devices ? a.As(e.HostConfig.Devices).map((e => ({
|
|
346
346
|
hostPath: e.PathOnHost,
|
|
347
347
|
containerPath: e.PathInContainer,
|
|
@@ -350,6 +350,9 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
|
|
|
350
350
|
this.memoryLimit = e.HostConfig.Memory ? e.HostConfig.Memory : 0;
|
|
351
351
|
this.privileged = !!e.HostConfig.Privileged;
|
|
352
352
|
this.restartPolicy = e.HostConfig.RestartPolicy?.Name ? a.As(e.HostConfig.RestartPolicy.Name) : "";
|
|
353
|
+
this.cgroup = e.HostConfig.Cgroup;
|
|
354
|
+
this.cgroupParent = e.HostConfig.CgroupParent;
|
|
355
|
+
this.pidMode = e.HostConfig.PidMode;
|
|
353
356
|
const c = e.HostConfig.CpusetCpus ? e.HostConfig.CpusetCpus : "";
|
|
354
357
|
const p = c.split(",");
|
|
355
358
|
const u = p.map((e => {
|
|
@@ -371,7 +374,7 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
|
|
|
371
374
|
this.env = h.ParseEnvToRecord(e.Config.Env);
|
|
372
375
|
this.capabilities = e.HostConfig.CapAdd ? e.HostConfig.CapAdd : [];
|
|
373
376
|
} catch (e) {
|
|
374
|
-
if (!
|
|
377
|
+
if (!n.IsAbortError(e)) throw e;
|
|
375
378
|
}
|
|
376
379
|
}
|
|
377
380
|
async start() {
|
|
@@ -381,7 +384,7 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
|
|
|
381
384
|
});
|
|
382
385
|
await this.syncContainerInfo();
|
|
383
386
|
} catch (e) {
|
|
384
|
-
if (!
|
|
387
|
+
if (!n.IsAbortError(e)) throw e;
|
|
385
388
|
}
|
|
386
389
|
}
|
|
387
390
|
async stop(e) {
|
|
@@ -395,7 +398,7 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
|
|
|
395
398
|
await this.#t.stop(t);
|
|
396
399
|
await this.syncContainerInfo();
|
|
397
400
|
} catch (e) {
|
|
398
|
-
if (!
|
|
401
|
+
if (!n.IsAbortError(e)) throw e;
|
|
399
402
|
}
|
|
400
403
|
}
|
|
401
404
|
async pause() {
|
|
@@ -417,7 +420,7 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
|
|
|
417
420
|
await this.#t.restart(t);
|
|
418
421
|
await this.syncContainerInfo();
|
|
419
422
|
} catch (e) {
|
|
420
|
-
if (!
|
|
423
|
+
if (!n.IsAbortError(e)) throw e;
|
|
421
424
|
}
|
|
422
425
|
}
|
|
423
426
|
async remove(e) {
|
|
@@ -451,6 +454,9 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
|
|
|
451
454
|
networks: this.networks,
|
|
452
455
|
OOMKillDisable: this.OOMKillDisable,
|
|
453
456
|
capabilities: this.capabilities,
|
|
457
|
+
cgroup: this.cgroup,
|
|
458
|
+
cgroupParent: this.cgroupParent,
|
|
459
|
+
pidMode: this.pidMode,
|
|
454
460
|
...e
|
|
455
461
|
});
|
|
456
462
|
this.id = r.id;
|
|
@@ -525,11 +531,11 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
|
|
|
525
531
|
Detach: false
|
|
526
532
|
}, ((t, i) => {
|
|
527
533
|
if (t) return r(t);
|
|
528
|
-
let
|
|
529
|
-
if (!i) return e(
|
|
534
|
+
let o = Buffer.from([]);
|
|
535
|
+
if (!i) return e(o.toString());
|
|
530
536
|
i.on("data", (e => {
|
|
531
|
-
|
|
532
|
-
})).once("close", (() => e(
|
|
537
|
+
o = Buffer.from(new Uint8Array([ ...new Uint8Array(o), ...new Uint8Array(e) ]));
|
|
538
|
+
})).once("close", (() => e(o.toString()))).once("error", (e => r(e)));
|
|
533
539
|
}));
|
|
534
540
|
}));
|
|
535
541
|
}
|
|
@@ -542,16 +548,16 @@ exports.DockerContainer = class DockerContainer extends t.Provider {
|
|
|
542
548
|
const t = await this.#t.getArchive({
|
|
543
549
|
path: e.path
|
|
544
550
|
});
|
|
545
|
-
const r = typeof e.destination === "string" ?
|
|
546
|
-
await
|
|
551
|
+
const r = typeof e.destination === "string" ? w.createWriteStream(e.destination) : e.destination;
|
|
552
|
+
await P.pipeline(t, r);
|
|
547
553
|
}
|
|
548
554
|
};
|
|
549
555
|
|
|
550
|
-
e.__decorate([ i.Configurable(
|
|
556
|
+
e.__decorate([ i.Configurable(o.DTO.Function()), e.__metadata("design:type", Function) ], exports.DockerContainer.prototype, "getDockerode", void 0);
|
|
551
557
|
|
|
552
|
-
e.__decorate([ i.Configurable(
|
|
558
|
+
e.__decorate([ i.Configurable(o.DTO.Function()), e.__metadata("design:type", Function) ], exports.DockerContainer.prototype, "getDocker", void 0);
|
|
553
559
|
|
|
554
|
-
e.__decorate([ i.Configurable(
|
|
560
|
+
e.__decorate([ i.Configurable(o.DTO.String()), e.__metadata("design:type", String) ], exports.DockerContainer.prototype, "id", void 0);
|
|
555
561
|
|
|
556
562
|
e.__decorate([ c.Accept(p.ContainerStopOptions.optional()), e.__metadata("design:type", Function), e.__metadata("design:paramtypes", [ p.ContainerStopOptions ]), e.__metadata("design:returntype", Promise) ], exports.DockerContainer.prototype, "stop", null);
|
|
557
563
|
|
|
@@ -344,6 +344,9 @@ let S = class DockerContainer extends e {
|
|
|
344
344
|
this.memoryLimit = t.HostConfig.Memory ? t.HostConfig.Memory : 0;
|
|
345
345
|
this.privileged = !!t.HostConfig.Privileged;
|
|
346
346
|
this.restartPolicy = t.HostConfig.RestartPolicy?.Name ? p(t.HostConfig.RestartPolicy.Name) : "";
|
|
347
|
+
this.cgroup = t.HostConfig.Cgroup;
|
|
348
|
+
this.cgroupParent = t.HostConfig.CgroupParent;
|
|
349
|
+
this.pidMode = t.HostConfig.PidMode;
|
|
347
350
|
const n = t.HostConfig.CpusetCpus ? t.HostConfig.CpusetCpus : "";
|
|
348
351
|
const m = n.split(",");
|
|
349
352
|
const c = m.map((t => {
|
|
@@ -445,6 +448,9 @@ let S = class DockerContainer extends e {
|
|
|
445
448
|
networks: this.networks,
|
|
446
449
|
OOMKillDisable: this.OOMKillDisable,
|
|
447
450
|
capabilities: this.capabilities,
|
|
451
|
+
cgroup: this.cgroup,
|
|
452
|
+
cgroupParent: this.cgroupParent,
|
|
453
|
+
pidMode: this.pidMode,
|
|
448
454
|
...t
|
|
449
455
|
});
|
|
450
456
|
this.id = e.id;
|
|
@@ -114,4 +114,10 @@ e.__decorate([ r.Expect(t.DTO.Boolean().optional()), e.__metadata("design:type",
|
|
|
114
114
|
|
|
115
115
|
e.__decorate([ r.Expect(t.DTO.Array(t.DTO.String().valid(...Object.values(i.ContainerCapability))).optional().default([])), e.__metadata("design:type", Array) ], ContainerSettingOptions.prototype, "capabilities", void 0);
|
|
116
116
|
|
|
117
|
+
e.__decorate([ r.Expect(t.DTO.String().optional()), e.__metadata("design:type", String) ], ContainerSettingOptions.prototype, "cgroup", void 0);
|
|
118
|
+
|
|
119
|
+
e.__decorate([ r.Expect(t.DTO.String().optional()), e.__metadata("design:type", String) ], ContainerSettingOptions.prototype, "cgroupParent", void 0);
|
|
120
|
+
|
|
121
|
+
e.__decorate([ r.Expect(t.DTO.String().optional()), e.__metadata("design:type", String) ], ContainerSettingOptions.prototype, "pidMode", void 0);
|
|
122
|
+
|
|
117
123
|
exports.ContainerSettingOptions = ContainerSettingOptions;
|
|
@@ -108,4 +108,10 @@ t([ e(i.Boolean().optional()), o("design:type", Boolean) ], ContainerSettingOpti
|
|
|
108
108
|
|
|
109
109
|
t([ e(i.Array(i.String().valid(...Object.values(r))).optional().default([])), o("design:type", Array) ], ContainerSettingOptions.prototype, "capabilities", void 0);
|
|
110
110
|
|
|
111
|
+
t([ e(i.String().optional()), o("design:type", String) ], ContainerSettingOptions.prototype, "cgroup", void 0);
|
|
112
|
+
|
|
113
|
+
t([ e(i.String().optional()), o("design:type", String) ], ContainerSettingOptions.prototype, "cgroupParent", void 0);
|
|
114
|
+
|
|
115
|
+
t([ e(i.String().optional()), o("design:type", String) ], ContainerSettingOptions.prototype, "pidMode", void 0);
|
|
116
|
+
|
|
111
117
|
export { ContainerSettingOptions };
|
|
@@ -62,10 +62,10 @@ exports.Column = r.Column = void 0;
|
|
|
62
62
|
|
|
63
63
|
const t = e.requireGlobals();
|
|
64
64
|
|
|
65
|
-
const o = e.
|
|
65
|
+
const o = e.ColumnTypeUndefinedError;
|
|
66
66
|
|
|
67
|
-
function
|
|
68
|
-
return function(
|
|
67
|
+
function a(e, r) {
|
|
68
|
+
return function(a, u) {
|
|
69
69
|
let i;
|
|
70
70
|
if (typeof e === "string" || typeof e === "function") {
|
|
71
71
|
i = e;
|
|
@@ -74,34 +74,34 @@ function u(e, r) {
|
|
|
74
74
|
i = e.type;
|
|
75
75
|
}
|
|
76
76
|
if (!r) r = {};
|
|
77
|
-
const n = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type",
|
|
77
|
+
const n = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", a, u) : undefined;
|
|
78
78
|
if (!i && n) i = n;
|
|
79
79
|
if (!r.type && i) r.type = i;
|
|
80
80
|
if (r.type === "hstore" && !r.hstoreType) r.hstoreType = n === Object ? "object" : "string";
|
|
81
81
|
if (typeof e === "function") {
|
|
82
82
|
(0, t.getMetadataArgsStorage)().embeddeds.push({
|
|
83
|
-
target:
|
|
84
|
-
propertyName:
|
|
83
|
+
target: a.constructor,
|
|
84
|
+
propertyName: u,
|
|
85
85
|
isArray: n === Array || r.array === true,
|
|
86
86
|
prefix: r.prefix !== undefined ? r.prefix : undefined,
|
|
87
87
|
type: e
|
|
88
88
|
});
|
|
89
89
|
} else {
|
|
90
|
-
if (!r.type) throw new o.ColumnTypeUndefinedError(
|
|
90
|
+
if (!r.type) throw new o.ColumnTypeUndefinedError(a, u);
|
|
91
91
|
if (r.unique === true) (0, t.getMetadataArgsStorage)().uniques.push({
|
|
92
|
-
target:
|
|
93
|
-
columns: [
|
|
92
|
+
target: a.constructor,
|
|
93
|
+
columns: [ u ]
|
|
94
94
|
});
|
|
95
95
|
(0, t.getMetadataArgsStorage)().columns.push({
|
|
96
|
-
target:
|
|
97
|
-
propertyName:
|
|
96
|
+
target: a.constructor,
|
|
97
|
+
propertyName: u,
|
|
98
98
|
mode: "regular",
|
|
99
99
|
options: r
|
|
100
100
|
});
|
|
101
101
|
if (r.generated) {
|
|
102
102
|
(0, t.getMetadataArgsStorage)().generations.push({
|
|
103
|
-
target:
|
|
104
|
-
propertyName:
|
|
103
|
+
target: a.constructor,
|
|
104
|
+
propertyName: u,
|
|
105
105
|
strategy: typeof r.generated === "string" ? r.generated : "increment"
|
|
106
106
|
});
|
|
107
107
|
}
|
|
@@ -109,4 +109,4 @@ function u(e, r) {
|
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
exports.Column = r.Column =
|
|
112
|
+
exports.Column = r.Column = a;
|
package/vendor/Package.14.cjs
CHANGED
|
@@ -29640,26 +29640,24 @@ function vE() {
|
|
|
29640
29640
|
|
|
29641
29641
|
var IE = {};
|
|
29642
29642
|
|
|
29643
|
-
|
|
29643
|
+
"use strict";
|
|
29644
29644
|
|
|
29645
|
-
|
|
29646
|
-
|
|
29647
|
-
|
|
29648
|
-
|
|
29649
|
-
|
|
29650
|
-
|
|
29651
|
-
|
|
29652
|
-
|
|
29653
|
-
|
|
29654
|
-
|
|
29655
|
-
|
|
29656
|
-
|
|
29657
|
-
}
|
|
29658
|
-
};
|
|
29659
|
-
IE.ColumnTypeUndefinedError = t;
|
|
29660
|
-
return IE;
|
|
29645
|
+
Object.defineProperty(IE, "__esModule", {
|
|
29646
|
+
value: true
|
|
29647
|
+
});
|
|
29648
|
+
|
|
29649
|
+
var ME = IE.ColumnTypeUndefinedError = void 0;
|
|
29650
|
+
|
|
29651
|
+
const wE = yp;
|
|
29652
|
+
|
|
29653
|
+
class ColumnTypeUndefinedError extends wE.TypeORMError {
|
|
29654
|
+
constructor(e, t) {
|
|
29655
|
+
super(`Column type for ${e.constructor.name}#${t} is not defined and cannot be guessed. ` + `Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json. ` + `Also make sure you have imported "reflect-metadata" on top of the main entry file in your application (before any entity imported).` + `If you are using JavaScript instead of TypeScript you must explicitly provide a column type.`);
|
|
29656
|
+
}
|
|
29661
29657
|
}
|
|
29662
29658
|
|
|
29659
|
+
ME = IE.ColumnTypeUndefinedError = ColumnTypeUndefinedError;
|
|
29660
|
+
|
|
29663
29661
|
var DE = {};
|
|
29664
29662
|
|
|
29665
29663
|
var LE;
|
|
@@ -29830,7 +29828,7 @@ function YE() {
|
|
|
29830
29828
|
t.__exportStar(bE(), e);
|
|
29831
29829
|
t.__exportStar(AE(), e);
|
|
29832
29830
|
t.__exportStar(vE(), e);
|
|
29833
|
-
t.__exportStar(
|
|
29831
|
+
t.__exportStar(IE, e);
|
|
29834
29832
|
t.__exportStar(PE(), e);
|
|
29835
29833
|
t.__exportStar(xE, e);
|
|
29836
29834
|
t.__exportStar($E(), e);
|
|
@@ -72387,6 +72385,8 @@ function wB() {
|
|
|
72387
72385
|
|
|
72388
72386
|
exports.Brackets = kg;
|
|
72389
72387
|
|
|
72388
|
+
exports.ColumnTypeUndefinedError = IE;
|
|
72389
|
+
|
|
72390
72390
|
exports.DefaultNamingStrategy = rb;
|
|
72391
72391
|
|
|
72392
72392
|
exports.EventListenerTypes = Dk;
|
|
@@ -72403,8 +72403,6 @@ exports.error = gp;
|
|
|
72403
72403
|
|
|
72404
72404
|
exports.requireAbstractRepository = pN;
|
|
72405
72405
|
|
|
72406
|
-
exports.requireColumnTypeUndefinedError = wE;
|
|
72407
|
-
|
|
72408
72406
|
exports.requireDataSource = OB;
|
|
72409
72407
|
|
|
72410
72408
|
exports.requireEntityManager = WC;
|