@nosana/node 1.1.82-rc → 1.1.83-rc

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/.env CHANGED
@@ -1,6 +1,6 @@
1
1
  BACKEND_SOLANA_ADDRESS=7rFPFnxjXHC2sfDy3qrDa9pEb4j49oivMuV7e8sYDPmB
2
2
  FRP_SERVER_IMAGE=registry.hub.docker.com/nosana/frpc:v1.0.45
3
- JOB_RUNTIME_IMAGE="nosana/job-runtime:v0.2.5"
3
+ JOB_RUNTIME_IMAGE="nosana/job-runtime:v0.2.6"
4
4
  RESOURCE_MANAGER_IMAGE=registry.hub.docker.com/nosana/resource-manager:v1.1.19
5
5
  FRP_SERVER_PORT=7000
6
6
  MIN_DISK_SPACE=25
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.1.82-rc",
3
+ "version": "1.1.83-rc",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "nosana-node": "./dist/src/index.js"
@@ -75,11 +75,11 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@inquirer/prompts": "^4.3.0",
78
- "@nosana/kit": "^2.24.3",
78
+ "@nosana/kit": "^2.24.4",
79
79
  "@nosana/pools-program": "^2.24.3",
80
80
  "@nosana/rewards-program": "^2.24.3",
81
- "@nosana/ssh": "^2.24.3",
82
- "@nosana/types": "^2.24.3",
81
+ "@nosana/ssh": "^2.24.4",
82
+ "@nosana/types": "^2.24.4",
83
83
  "@solana/kit": "^8.3.0",
84
84
  "chalk": "^5.3.0",
85
85
  "cli-progress": "^3.12.0",
@@ -1,3 +1,3 @@
1
1
  import { ContainerCreateOptions } from "dockerode";
2
2
  import { RunContainerArgs } from "../interface.js";
3
- export declare function createDockerRunOptions(image: string, { name, cmd, gpu, volumes, env, work_dir, entrypoint, aliases, restart_policy, runtime, bind_network_to_container, labels, security, user, group_add, }: RunContainerArgs, gpuOption: string): ContainerCreateOptions;
3
+ export declare function createDockerRunOptions(image: string, { name, cmd, gpu, volumes, env, work_dir, entrypoint, aliases, restart_policy, runtime, bind_network_to_container, labels, security, user, group_add, shm_size, }: RunContainerArgs, gpuOption: string): ContainerCreateOptions;
@@ -10,7 +10,7 @@ function parseRestartPolicy(restart_policy) {
10
10
  }
11
11
  return undefined;
12
12
  }
13
- export function createDockerRunOptions(image, { name, cmd, gpu, volumes, env, work_dir, entrypoint, aliases, restart_policy, runtime, bind_network_to_container, labels, security, user, group_add, }, gpuOption) {
13
+ export function createDockerRunOptions(image, { name, cmd, gpu, volumes, env, work_dir, entrypoint, aliases, restart_policy, runtime, bind_network_to_container, labels, security, user, group_add, shm_size, }, gpuOption) {
14
14
  const devices = [];
15
15
  if (gpu) {
16
16
  devices.push({
@@ -77,6 +77,7 @@ export function createDockerRunOptions(image, { name, cmd, gpu, volumes, env, wo
77
77
  ? { SecurityOpt: ['no-new-privileges'] }
78
78
  : {}),
79
79
  ...(group_add ? { GroupAdd: group_add } : {}),
80
+ ...(shm_size ? { ShmSize: shm_size } : {}),
80
81
  },
81
82
  };
82
83
  }
@@ -42,6 +42,8 @@ export type RunContainerArgs = {
42
42
  user?: string;
43
43
  /** Supplementary groups (gids) for the container's user (`--group-add`). */
44
44
  group_add?: string[];
45
+ /** Size of `/dev/shm` in bytes (`--shm-size`); the runtime's default when unset. */
46
+ shm_size?: number;
45
47
  /**
46
48
  * Runs between create and start with the container handle, so files can be
47
49
  * put in place before the entrypoint runs. A failure removes the created
@@ -7,6 +7,7 @@ import type { RunContainerArgs } from '../../interface.js';
7
7
  * @returns
8
8
  */
9
9
  export declare function createPodmanRunOptions(image: string, args: RunContainerArgs, gpuOption: string): {
10
+ shm_size?: number | undefined;
10
11
  groups?: string[] | undefined;
11
12
  user?: string | undefined;
12
13
  no_new_privileges?: boolean | undefined;
@@ -54,6 +55,7 @@ export declare function createPodmanRunOptions(image: string, args: RunContainer
54
55
  options: string[];
55
56
  }[] | undefined;
56
57
  } | {
58
+ shm_size?: number | undefined;
57
59
  groups?: string[] | undefined;
58
60
  user?: string | undefined;
59
61
  no_new_privileges?: boolean | undefined;
@@ -102,6 +104,7 @@ export declare function createPodmanRunOptions(image: string, args: RunContainer
102
104
  options: string[];
103
105
  }[] | undefined;
104
106
  } | {
107
+ shm_size?: number | undefined;
105
108
  groups?: string[] | undefined;
106
109
  user?: string | undefined;
107
110
  no_new_privileges?: boolean | undefined;
@@ -24,7 +24,7 @@ function parseRestartPolicy(restart_policy) {
24
24
  * @returns
25
25
  */
26
26
  export function createPodmanRunOptions(image, args, gpuOption) {
27
- const { name, cmd, gpu, volumes, env, aliases, work_dir, entrypoint, restart_policy, labels, security, runtime, user, group_add, } = args;
27
+ const { name, cmd, gpu, volumes, env, aliases, work_dir, entrypoint, restart_policy, labels, security, runtime, user, group_add, shm_size, } = args;
28
28
  const devices = gpu
29
29
  ? gpuOption === 'all'
30
30
  ? [
@@ -82,5 +82,6 @@ export function createPodmanRunOptions(image, args, gpuOption) {
82
82
  ...(security?.noNewPrivileges ? { no_new_privileges: true } : {}),
83
83
  ...(user ? { user } : {}),
84
84
  ...(group_add ? { groups: group_add } : {}),
85
+ ...(shm_size ? { shm_size } : {}),
85
86
  };
86
87
  }
@@ -1,4 +1,4 @@
1
- import { getExposePorts, isOpExposed, } from '@nosana/kit';
1
+ import { getExposePorts, isOpExposed, parseShmSize, } from '@nosana/kit';
2
2
  import { GROUP_LABEL, JOB_LABEL, liveAbortSignal, OP_INDEX_LABEL, OP_LABEL, } from '../../../container-orchestrator/src/index.js';
3
3
  import { deploymentExposeId } from '../../../common/src/index.js';
4
4
  import { ContainerStateManager } from './ContainerStateManager.js';
@@ -168,6 +168,9 @@ export class ContainerProvider {
168
168
  volumes,
169
169
  aliases,
170
170
  restart_policy: op.args.restart_policy,
171
+ ...(op.args.shm_size
172
+ ? { shm_size: parseShmSize(op.args.shm_size) }
173
+ : {}),
171
174
  runtime: teeRuntime,
172
175
  labels: {
173
176
  [JOB_LABEL]: flow.id,
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.1.82-rc",
3
+ "version": "1.1.83-rc",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@nosana/node",
9
- "version": "1.1.82-rc",
9
+ "version": "1.1.83-rc",
10
10
  "license": "ISC",
11
11
  "workspaces": [
12
12
  "packages/*"
13
13
  ],
14
14
  "dependencies": {
15
15
  "@inquirer/prompts": "^4.3.0",
16
- "@nosana/kit": "^2.24.3",
16
+ "@nosana/kit": "^2.24.4",
17
17
  "@nosana/pools-program": "^2.24.3",
18
18
  "@nosana/rewards-program": "^2.24.3",
19
- "@nosana/ssh": "^2.24.3",
20
- "@nosana/types": "^2.24.3",
19
+ "@nosana/ssh": "^2.24.4",
20
+ "@nosana/types": "^2.24.4",
21
21
  "@solana/kit": "^8.3.0",
22
22
  "chalk": "^5.3.0",
23
23
  "cli-progress": "^3.12.0",
@@ -1281,14 +1281,14 @@
1281
1281
  }
1282
1282
  },
1283
1283
  "node_modules/@nosana/api": {
1284
- "version": "2.24.3",
1285
- "resolved": "https://registry.npmjs.org/@nosana/api/-/api-2.24.3.tgz",
1286
- "integrity": "sha512-lOV2bJX8iL3RsVy1LfG/ESsOEKlv0CPebTYX+SEm2PIccW2iNX6Fg7kh+5aU0HSBRHVn4NILhpX4Jjmh+JtS0A==",
1284
+ "version": "2.24.4",
1285
+ "resolved": "https://registry.npmjs.org/@nosana/api/-/api-2.24.4.tgz",
1286
+ "integrity": "sha512-nOJiyoFzOsLrql0SsLIgriaxVZHhpH9Ok/1f+TXX3KS/N8QT10JYygnQId9v/pNU87+bgB1ILqP8Sh37Z5SbUA==",
1287
1287
  "license": "MIT",
1288
1288
  "dependencies": {
1289
1289
  "@nosana/authorization": "2.24.3",
1290
- "@nosana/ssh": "2.24.3",
1291
- "@nosana/types": "2.24.3",
1290
+ "@nosana/ssh": "2.24.4",
1291
+ "@nosana/types": "2.24.4",
1292
1292
  "eventsource": "^4.1.0",
1293
1293
  "openapi-fetch": "^0.14.0"
1294
1294
  },
@@ -1356,12 +1356,12 @@
1356
1356
  "link": true
1357
1357
  },
1358
1358
  "node_modules/@nosana/endpoints": {
1359
- "version": "2.24.3",
1360
- "resolved": "https://registry.npmjs.org/@nosana/endpoints/-/endpoints-2.24.3.tgz",
1361
- "integrity": "sha512-UXC0veLwUbOsJqPQsMJRjhnAHj4nGrxRQtbF8H4XsMM7H4b4AhZQKS35TnOP5HYwZH2yyCSWQxnn7ytW3KokPQ==",
1359
+ "version": "2.24.4",
1360
+ "resolved": "https://registry.npmjs.org/@nosana/endpoints/-/endpoints-2.24.4.tgz",
1361
+ "integrity": "sha512-4uXL4Xc/6txANmkZVz8nrF0pXqe4YOrr3Jwse27y1TtdwfUxvn07t36dBINaWyiy/fAwYAQx/gFS/2ych125WA==",
1362
1362
  "license": "MIT",
1363
1363
  "dependencies": {
1364
- "@nosana/types": "2.24.3",
1364
+ "@nosana/types": "2.24.4",
1365
1365
  "bs58": "^6.0.0",
1366
1366
  "tweetnacl": "^1.0.3"
1367
1367
  },
@@ -1398,23 +1398,23 @@
1398
1398
  }
1399
1399
  },
1400
1400
  "node_modules/@nosana/kit": {
1401
- "version": "2.24.3",
1402
- "resolved": "https://registry.npmjs.org/@nosana/kit/-/kit-2.24.3.tgz",
1403
- "integrity": "sha512-bB3p7VawNKt0rh8JPWQtLUdoPutTUzwgGQptgV4cYQVsixRVmgPk8jDsZd97piSUYN/JqBYEDI70bIJTayjcFg==",
1401
+ "version": "2.24.4",
1402
+ "resolved": "https://registry.npmjs.org/@nosana/kit/-/kit-2.24.4.tgz",
1403
+ "integrity": "sha512-IZu4bXaphkrKFu5+Lql59dfjBomuGIHEaDA4yZHr7sQhJA4KmUPz/uPAXwkZIB4yv0ZBk2KgdAAEerbseie8bw==",
1404
1404
  "license": "MIT",
1405
1405
  "dependencies": {
1406
- "@nosana/api": "2.24.3",
1406
+ "@nosana/api": "2.24.4",
1407
1407
  "@nosana/authorization": "2.24.3",
1408
1408
  "@nosana/connect": "2.24.3",
1409
- "@nosana/endpoints": "2.24.3",
1409
+ "@nosana/endpoints": "2.24.4",
1410
1410
  "@nosana/ipfs": "2.24.3",
1411
1411
  "@nosana/jobs-program": "2.24.3",
1412
1412
  "@nosana/merkle-distributor-program": "2.24.3",
1413
1413
  "@nosana/pools-program": "2.24.3",
1414
1414
  "@nosana/rewards-program": "2.24.3",
1415
- "@nosana/ssh": "2.24.3",
1415
+ "@nosana/ssh": "2.24.4",
1416
1416
  "@nosana/stake-program": "2.24.3",
1417
- "@nosana/types": "2.24.3",
1417
+ "@nosana/types": "2.24.4",
1418
1418
  "@solana-program/compute-budget": "0.18.1",
1419
1419
  "@solana-program/system": "0.14.1",
1420
1420
  "@solana-program/token": "0.16.1",
@@ -1493,12 +1493,12 @@
1493
1493
  }
1494
1494
  },
1495
1495
  "node_modules/@nosana/ssh": {
1496
- "version": "2.24.3",
1497
- "resolved": "https://registry.npmjs.org/@nosana/ssh/-/ssh-2.24.3.tgz",
1498
- "integrity": "sha512-yCNHjTtEgAJtd4ULphdKJtCf9fqTqsCOkQOZ0/SI5Ikqoe3gWtaaQKLfaEBRIZTfmWAGwk16/zZxvQ6Cby+S/w==",
1496
+ "version": "2.24.4",
1497
+ "resolved": "https://registry.npmjs.org/@nosana/ssh/-/ssh-2.24.4.tgz",
1498
+ "integrity": "sha512-WAXKJezS4sgm3uE8bFqmI0f4r5obRXqi7SfBjroVJiGTEZJZjuwNDugUR8q8WghqHk7GbX+KKK41s7YpiguJHA==",
1499
1499
  "license": "MIT",
1500
1500
  "dependencies": {
1501
- "@nosana/types": "2.24.3",
1501
+ "@nosana/types": "2.24.4",
1502
1502
  "tweetnacl": "^1.0.3"
1503
1503
  },
1504
1504
  "engines": {
@@ -1518,9 +1518,9 @@
1518
1518
  }
1519
1519
  },
1520
1520
  "node_modules/@nosana/types": {
1521
- "version": "2.24.3",
1522
- "resolved": "https://registry.npmjs.org/@nosana/types/-/types-2.24.3.tgz",
1523
- "integrity": "sha512-EatDfDIcJjMJEQ1KTNVV4u60kmxmuFH8s8QxPwYGbC9jOkmHwBYhOF6H4ycPE3HL7uS37p6NofzMGTkN3Kp+/w==",
1521
+ "version": "2.24.4",
1522
+ "resolved": "https://registry.npmjs.org/@nosana/types/-/types-2.24.4.tgz",
1523
+ "integrity": "sha512-JgBVJd6/w1riVSkLQdubis9xfbC/spCfttvOJn1kQ3KUQXjviaDVAkkX7gde1TUZrM7g56eUmi/3vadCHRgTyA==",
1524
1524
  "license": "MIT",
1525
1525
  "dependencies": {
1526
1526
  "typia": "^10.0.2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.1.82-rc",
3
+ "version": "1.1.83-rc",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "nosana-node": "./dist/src/index.js"
@@ -75,11 +75,11 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@inquirer/prompts": "^4.3.0",
78
- "@nosana/kit": "^2.24.3",
78
+ "@nosana/kit": "^2.24.4",
79
79
  "@nosana/pools-program": "^2.24.3",
80
80
  "@nosana/rewards-program": "^2.24.3",
81
- "@nosana/ssh": "^2.24.3",
82
- "@nosana/types": "^2.24.3",
81
+ "@nosana/ssh": "^2.24.4",
82
+ "@nosana/types": "^2.24.4",
83
83
  "@solana/kit": "^8.3.0",
84
84
  "chalk": "^5.3.0",
85
85
  "cli-progress": "^3.12.0",