@onivoro/onix 20.0.46 → 20.0.47

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/executors.json CHANGED
@@ -11,8 +11,8 @@
11
11
  "description": "typeorm"
12
12
  },
13
13
  "docker-run": {
14
- "implementation": "./src/executors/docker/executor",
15
- "schema": "./src/executors/docker/schema.json",
14
+ "implementation": "./src/executors/docker-run/executor",
15
+ "schema": "./src/executors/docker-run/schema.json",
16
16
  "description": "docker-run"
17
17
  },
18
18
  "deploy-lambda": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onivoro/onix",
3
- "version": "20.0.46",
3
+ "version": "20.0.47",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
@@ -6,8 +6,8 @@ const child_process_1 = require("child_process");
6
6
  const executor_factory_function_1 = require("../../functions/executor-factory.function");
7
7
  exports.default = (0, executor_factory_function_1.executorFactory)((options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
8
8
  const { envFile, ecr, port } = options;
9
- const localPort = (Number(port) + 2000);
10
- const command = `open http://localhost:${localPort} & docker run -p ${localPort}:${port} --env="PORT=${port}" --env-file "${envFile}" "${ecr}"`;
9
+ const envFileExpression = envFile ? ` --env-file "${envFile}"` : '';
10
+ const command = `open http://localhost:${port} & docker run -p ${port}:${port} --env="PORT=${port}"${envFileExpression} "${ecr}"`;
11
11
  devkit_1.logger.info(command);
12
12
  (0, child_process_1.execSync)(command);
13
13
  }));
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/docker-run/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAErD,iDAAyC;AACzC,yFAA4E;AAE5E,kBAAe,IAAA,2CAAe,EAAC,CAC7B,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAEvC,MAAM,iBAAiB,GAAG,OAAO,CAAC,CAAC,CAAC,gBAAgB,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACpE,MAAM,OAAO,GAAG,yBAAyB,IAAI,oBAAoB,IAAI,IAAI,IAAI,gBAAgB,IAAI,IAAI,iBAAiB,KAAK,GAAG,GAAG,CAAC;IAElI,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAErB,IAAA,wBAAQ,EAAC,OAAO,CAAC,CAAC;AACpB,CAAC,CAAA,CAAC,CAAC"}
@@ -1,6 +1,5 @@
1
1
  export interface ExecutorSchema {
2
2
  envFile: string;
3
3
  ecr: string;
4
- localPort?: number;
5
4
  port: number;
6
5
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/schema",
3
3
  "version": 2,
4
- "title": "Docker executor",
4
+ "title": "Docker-run executor",
5
5
  "description": "",
6
6
  "type": "object",
7
7
  "properties": {
@@ -13,10 +13,6 @@
13
13
  "type": "string",
14
14
  "description": "Name of the ECR repository and tag (conventionally separated by a colon)"
15
15
  },
16
- "localPort": {
17
- "type": "number",
18
- "description": "Local port to bind to localhost"
19
- },
20
16
  "port": {
21
17
  "type": "number",
22
18
  "description": "Port docker port to bind to localhost"
@@ -1 +0,0 @@
1
- {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/docker/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAErD,iDAAyC;AACzC,yFAA4E;AAE5E,kBAAe,IAAA,2CAAe,EAAC,CAC7B,OAAuB,EACvB,OAAwB,EACxB,EAAE;IACF,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACvC,MAAM,SAAS,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAExC,MAAM,OAAO,GAAG,yBAAyB,SAAS,oBAAoB,SAAS,IAAI,IAAI,gBAAgB,IAAI,iBAAiB,OAAO,MAAM,GAAG,GAAG,CAAC;IAEhJ,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAErB,IAAA,wBAAQ,EAAC,OAAO,CAAC,CAAC;AACpB,CAAC,CAAA,CAAC,CAAC"}