@milaboratories/pl-deployments 2.4.9 → 2.5.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/dist/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/package.json +5 -5
- package/src/local/config.test.yaml +13 -10
- package/src/local/pl.test.ts +8 -0
package/dist/package.json.cjs
CHANGED
package/dist/package.json.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-deployments",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"pl-version": "1.
|
|
3
|
+
"version": "2.5.0",
|
|
4
|
+
"pl-version": "1.41.5",
|
|
5
5
|
"description": "MiLaboratories Platforma Backend code service run wrapper",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.16.0"
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"typescript": "~5.6.3",
|
|
42
42
|
"utility-types": "^3.11.0",
|
|
43
43
|
"vitest": "^2.1.9",
|
|
44
|
+
"@milaboratories/ts-builder": "1.0.3",
|
|
45
|
+
"@milaboratories/build-configs": "1.0.7",
|
|
44
46
|
"@milaboratories/ts-configs": "1.0.6",
|
|
45
|
-
"@milaboratories/eslint-config": "^1.0.4"
|
|
46
|
-
"@milaboratories/ts-builder": "1.0.2",
|
|
47
|
-
"@milaboratories/build-configs": "1.0.6"
|
|
47
|
+
"@milaboratories/eslint-config": "^1.0.4"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"decompress": "^4.2.1",
|
|
@@ -5,7 +5,7 @@ license:
|
|
|
5
5
|
logging:
|
|
6
6
|
level: 'info'
|
|
7
7
|
destinations:
|
|
8
|
-
|
|
8
|
+
- path: 'platforma.log'
|
|
9
9
|
|
|
10
10
|
monitoring:
|
|
11
11
|
listen: '127.0.0.1:11235'
|
|
@@ -22,6 +22,9 @@ core:
|
|
|
22
22
|
listen: '127.0.0.1:11234'
|
|
23
23
|
tlsEnabled: false
|
|
24
24
|
|
|
25
|
+
http:
|
|
26
|
+
listen: '127.0.0.1:11233'
|
|
27
|
+
|
|
25
28
|
authEnabled: false
|
|
26
29
|
auth: []
|
|
27
30
|
db:
|
|
@@ -40,15 +43,15 @@ controllers:
|
|
|
40
43
|
downloadable: false
|
|
41
44
|
|
|
42
45
|
storages:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
- id: 'main'
|
|
47
|
+
type: 'FS'
|
|
48
|
+
indexCachePeriod: '1m'
|
|
49
|
+
rootPath: './storages/main'
|
|
50
|
+
|
|
51
|
+
- id: 'work'
|
|
52
|
+
type: 'FS'
|
|
53
|
+
indexCachePeriod: '1m'
|
|
54
|
+
rootPath: './storages/work'
|
|
52
55
|
|
|
53
56
|
runner:
|
|
54
57
|
type: local
|
package/src/local/pl.test.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { mergeDefaultOps } from './pl';
|
|
|
10
10
|
import type { LocalPlOptions, LocalPlOptionsFull } from './pl';
|
|
11
11
|
import { plProcessOps } from './pl';
|
|
12
12
|
import { describe, it, beforeEach, afterEach } from 'vitest';
|
|
13
|
+
import { getPorts } from '@milaboratories/pl-config';
|
|
13
14
|
|
|
14
15
|
test(
|
|
15
16
|
'should start and stop platforma of the current version with hardcoded config',
|
|
@@ -18,6 +19,9 @@ test(
|
|
|
18
19
|
const logger = new ConsoleLoggerAdapter();
|
|
19
20
|
const config = await readTestConfig();
|
|
20
21
|
|
|
22
|
+
|
|
23
|
+
logger.info('Config:\n' + yaml.stringify(config));
|
|
24
|
+
|
|
21
25
|
const dir = await prepareDirForTestConfig();
|
|
22
26
|
|
|
23
27
|
const pl = await localPlatformaInit(logger, {
|
|
@@ -116,6 +120,10 @@ async function readTestConfig() {
|
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
122
|
|
|
123
|
+
const freePort = await getPorts({ type: 'pickFree' });
|
|
124
|
+
parsed.core.grpc.listen = `127.0.0.1:${freePort.grpc}`;
|
|
125
|
+
parsed.core.http.listen = `127.0.0.1:${freePort.http}`;
|
|
126
|
+
|
|
119
127
|
return yaml.stringify(parsed);
|
|
120
128
|
}
|
|
121
129
|
|