@nosana/node 1.0.10 → 1.0.11

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "nosana-node": "./dist/src/index.js"
@@ -229,16 +229,22 @@ export class Provider {
229
229
  if (op.args.trusted_execution_env) {
230
230
  await this.containerOrchestration.pullImage("busybox");
231
231
  await this.resourceManager.images.setImage("busybox");
232
- await this.containerOrchestration.runFlowContainer("busybox", {
232
+ const bridgeContainer = await this.containerOrchestration.runFlowContainer("busybox", {
233
233
  name: `bridge-${name}`,
234
234
  cmd: ['sleep', 'infinity'],
235
+ aliases: createContainerOptions.aliases
235
236
  });
237
+ delete createContainerOptions.aliases;
236
238
  createContainerOptions.bind_network_to_container = `container:bridge-${name}`;
239
+ const bridgeInfo = await bridgeContainer.inspect();
240
+ if (bridgeInfo.NetworkSettings?.Networks["NOSANA_GATEWAY"].IPAddress) {
241
+ emitter.emit('setContainerInternalIp', bridgeInfo.NetworkSettings.Networks["NOSANA_GATEWAY"].IPAddress);
242
+ }
237
243
  }
238
244
  container = await this.containerOrchestration.runFlowContainer(op.args.image ?? flow.jobDefinition.global?.image, createContainerOptions);
239
245
  const info = await container.inspect();
240
246
  emitter.emit('updateOpState', { providerId: container.id });
241
- if (info.NetworkSettings?.Networks["NOSANA_GATEWAY"].IPAddress) {
247
+ if (!op.args.trusted_execution_env && info.NetworkSettings?.Networks["NOSANA_GATEWAY"].IPAddress) {
242
248
  emitter.emit('setContainerInternalIp', info.NetworkSettings.Networks["NOSANA_GATEWAY"].IPAddress);
243
249
  }
244
250
  stateManager = new ContainerStateManager(container, controller, emitter, op.args.restart_policy);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@nosana/node",
9
- "version": "1.0.10",
9
+ "version": "1.0.11",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@coral-xyz/anchor": "^0.28.1-beta.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "nosana-node": "./dist/src/index.js"