@onivoro/onix 20.0.45 → 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 +2 -2
- package/package.json +1 -1
- package/src/executors/{docker → docker-run}/executor.js +3 -3
- package/src/executors/docker-run/executor.js.map +1 -0
- package/src/executors/{docker → docker-run}/schema.d.ts +0 -1
- package/src/executors/{docker → docker-run}/schema.json +1 -5
- package/src/executors/docker/executor.js.map +0 -1
- /package/src/executors/{docker → docker-run}/executor.d.ts +0 -0
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
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const child_process_1 = require("child_process");
|
|
6
|
-
const executor_factory_function_1 = require("
|
|
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
|
|
10
|
-
const command = `open http://localhost:${
|
|
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,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,4FAA+E;AAE/E,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"}
|
|
File without changes
|