@underpostnet/underpost 2.8.854 → 2.8.856

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.
@@ -29,7 +29,8 @@ jobs:
29
29
  set -e
30
30
  echo "Starting remote release deploy"
31
31
  cd /home/dd/engine
32
- node bin run --dev upgrade
33
- underpost run deploy dd-core
34
- underpost run deploy dd-cyberia
35
- underpost run deploy dd-lampp
32
+ npm install -g underpost
33
+ underpost set GITHUB_TOKEN ${{ secrets.GITHUB_TOKEN }}
34
+ node bin run --dev pull
35
+ underpost run secret
36
+ underpost run release-deploy
package/README.md CHANGED
@@ -1,16 +1,10 @@
1
1
  <p align="center">
2
- <img src="https://underpost.net/assets/splash/apple-touch-icon-precomposed.png" alt="underpost.net"/>
2
+ <img src="https://underpost.net/assets/splash/apple-touch-icon-precomposed.png" alt="underpost engine core server"/>
3
3
  </p>
4
4
 
5
5
  <div align="center">
6
6
 
7
- ### underpost.net
8
-
9
- </div>
10
-
11
- <div align="center">
12
-
13
- template
7
+ <h1>underpost</h1>
14
8
 
15
9
  </div>
16
10
 
@@ -26,42 +20,10 @@ template
26
20
 
27
21
 
28
22
 
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
23
  <!-- badges -->
62
24
 
63
25
 
64
- [![Node.js CI](https://github.com/underpostnet/engine/actions/workflows/docker-image.ci.yml/badge.svg?branch=master)](https://github.com/underpostnet/engine/actions/workflows/docker-image.yml) [![Test](https://github.com/underpostnet/engine/actions/workflows/coverall.ci.yml/badge.svg?branch=master)](https://github.com/underpostnet/engine/actions/workflows/coverall.yml) [![Downloads](https://img.shields.io/npm/dm/underpost.svg)](https://www.npmjs.com/package/underpost) [![Socket Badge](https://socket.dev/api/badge/npm/package/underpost/2.8.854)](https://socket.dev/npm/package/underpost/overview/2.8.854) [![Coverage Status](https://coveralls.io/repos/github/underpostnet/engine/badge.svg?branch=master)](https://coveralls.io/github/underpostnet/engine?branch=master) [![Version](https://img.shields.io/npm/v/underpost.svg)](https://www.npmjs.org/package/underpost) [![License](https://img.shields.io/npm/l/underpost.svg)](https://www.npmjs.com/package/underpost)
26
+ [![Node.js CI](https://github.com/underpostnet/engine/actions/workflows/docker-image.ci.yml/badge.svg?branch=master)](https://github.com/underpostnet/engine/actions/workflows/docker-image.yml) [![Test](https://github.com/underpostnet/engine/actions/workflows/coverall.ci.yml/badge.svg?branch=master)](https://github.com/underpostnet/engine/actions/workflows/coverall.yml) [![Downloads](https://img.shields.io/npm/dm/underpost.svg)](https://www.npmjs.com/package/underpost) [![Socket Badge](https://socket.dev/api/badge/npm/package/underpost/2.8.856)](https://socket.dev/npm/package/underpost/overview/2.8.856) [![Coverage Status](https://coveralls.io/repos/github/underpostnet/engine/badge.svg?branch=master)](https://coveralls.io/github/underpostnet/engine?branch=master) [![Version](https://img.shields.io/npm/v/underpost.svg)](https://www.npmjs.org/package/underpost) [![License](https://img.shields.io/npm/l/underpost.svg)](https://www.npmjs.com/package/underpost)
65
27
 
66
28
 
67
29
  <!-- end-badges -->
@@ -70,45 +32,13 @@ template
70
32
 
71
33
 
72
34
 
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
35
  </div>
106
36
 
107
37
  <div align="center">
108
38
 
109
39
  #### Base template for pwa/api-rest projects.
110
40
 
111
- Develop, build, deploy, test, monitor, and manage multiple runtime applications on virtual machines or container instances.
41
+ <div style="font-size: 20px;"><em>End2end</em> continuous integration and continuous deployment cloud to applications federation tools. Develop, build, deploy, test, monitor, and manage multiple runtime applications on virtual machines or container instances.</div>
112
42
 
113
43
  </div>
114
44
 
@@ -146,7 +76,7 @@ Run dev client server
146
76
  npm run dev
147
77
  ```
148
78
  <!-- -->
149
- ## underpost ci/cd cli v2.8.854
79
+ ## underpost ci/cd cli v2.8.856
150
80
 
151
81
  ### Usage: `underpost [options] [command]`
152
82
  ```
package/cli.md CHANGED
@@ -1,4 +1,4 @@
1
- ## underpost ci/cd cli v2.8.854
1
+ ## underpost ci/cd cli v2.8.856
2
2
 
3
3
  ### Usage: `underpost [options] [command]`
4
4
  ```
@@ -591,7 +591,7 @@ Options:
591
591
  Runs a script from the specified path.
592
592
 
593
593
  Arguments:
594
- runner-id The runner ID to run. Options: spark-template, rmi, kill, secret, gpu-env, tf-gpu-test, dev-cluster, ssh-cluster-info, cyberia-ide, engine-ide, template-deploy, clean, upgrade, ssh-deploy, ide, monitor, db-client, cluster, deploy, tf-vae-test, deploy-job.
594
+ runner-id The runner ID to run. Options: spark-template, rmi, kill, secret, gpu-env, tf-gpu-test, dev-cluster, ssh-cluster-info, cyberia-ide, engine-ide, template-deploy, clean, pull, release-deploy, ssh-deploy, ide, monitor, db-client, cluster, deploy, tf-vae-test, deploy-job.
595
595
  path The absolute or relative directory path where the script is located.
596
596
 
597
597
  Options:
@@ -17,7 +17,7 @@ spec:
17
17
  spec:
18
18
  containers:
19
19
  - name: dd-default-development-blue
20
- image: localhost/rockylinux9-underpost:v2.8.854
20
+ image: localhost/rockylinux9-underpost:v2.8.856
21
21
  # resources:
22
22
  # requests:
23
23
  # memory: "124Ki"
@@ -100,7 +100,7 @@ spec:
100
100
  spec:
101
101
  containers:
102
102
  - name: dd-default-development-green
103
- image: localhost/rockylinux9-underpost:v2.8.854
103
+ image: localhost/rockylinux9-underpost:v2.8.856
104
104
  # resources:
105
105
  # requests:
106
106
  # memory: "124Ki"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "main": "src/index.js",
4
4
  "name": "@underpostnet/underpost",
5
- "version": "2.8.854",
5
+ "version": "2.8.856",
6
6
  "description": "pwa api rest template",
7
7
  "scripts": {
8
8
  "start": "env-cmd -f .env.production node --max-old-space-size=8192 src/server",
package/src/cli/run.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { daemonProcess, getTerminalPid, openTerminal, pbcopy, shellCd, shellExec } from '../server/process.js';
2
2
  import read from 'read';
3
3
  import { getNpmRootPath } from '../server/conf.js';
4
- import { loggerFactory } from '../server/logger.js';
4
+ import { actionInitLog, loggerFactory } from '../server/logger.js';
5
5
  import UnderpostTest from './test.js';
6
6
  import fs from 'fs-extra';
7
7
  import { range, setPad, timer } from '../client/components/core/CommonJs.js';
@@ -102,15 +102,21 @@ class UnderpostRun {
102
102
  shellCd(path ?? `/home/dd/engine`);
103
103
  shellExec(`node bin/deploy clean-core-repo`);
104
104
  },
105
- upgrade: (path, options = UnderpostRun.DEFAULT_OPTION) => {
106
- const { underpostRoot } = options;
107
- shellExec(`npm install -g underpost`);
108
- shellExec(`underpost run secret`);
105
+ pull: (path, options = UnderpostRun.DEFAULT_OPTION) => {
109
106
  shellCd(`/home/dd/engine`);
110
107
  shellExec(`node bin/deploy clean-core-repo`);
111
108
  shellExec(`underpost pull . underpostnet/engine`);
112
109
  shellExec(`underpost pull engine-private underpostnet/engine-private`, { silent: true });
113
110
  },
111
+ 'release-deploy': (path, options = UnderpostRun.DEFAULT_OPTION) => {
112
+ actionInitLog();
113
+ shellExec(`underpost --version`);
114
+ shellCd(`/home/dd/engine`);
115
+ for (const _deployId of fs.readFileSync(`./engine-private/deploy/dd.router`, 'utf8').split(',')) {
116
+ const deployId = _deployId.trim();
117
+ shellExec(`underpost run deploy ${deployId}`, { async: true });
118
+ }
119
+ },
114
120
  'ssh-deploy': (path, options = UnderpostRun.DEFAULT_OPTION) => {
115
121
  const baseCommand = options.dev || true ? 'node bin' : 'underpost';
116
122
  shellCd('/home/dd/engine');
@@ -234,16 +240,20 @@ class UnderpostRun {
234
240
  const ignorePods = UnderpostDeploy.API.get(`${deployId}-${env}-${targetTraffic}`).map((p) => p.NAME);
235
241
  shellExec(`sudo kubectl rollout restart deployment/${deployId}-${env}-${targetTraffic}`);
236
242
 
237
- let secondsElapsed = 0;
238
- logger.info('Deployment init', { deployId, env, targetTraffic });
243
+ let checkStatusIteration = 0;
244
+ const checkStatusIterationMsDelay = 1000;
245
+ const iteratorTag = `[${deployId}-${env}-${targetTraffic}]`;
246
+ logger.info('Deployment init', { deployId, env, targetTraffic, checkStatusIterationMsDelay });
239
247
 
240
248
  while (!UnderpostDeploy.API.checkDeploymentReadyStatus(deployId, env, targetTraffic, ignorePods).ready) {
241
- await timer(1000);
242
- secondsElapsed++;
243
- logger.info(`Deployment in progress, seconds elapsed: ${secondsElapsed}`);
249
+ await timer(checkStatusIterationMsDelay);
250
+ checkStatusIteration++;
251
+ logger.info(
252
+ `${iteratorTag} | Deployment in progress... | Delay number check iterations: ${checkStatusIteration}`,
253
+ );
244
254
  }
245
255
 
246
- logger.info(`Deployment ready, seconds elapsed: ${secondsElapsed}`);
256
+ logger.info(`${iteratorTag} | Deployment ready. | Total delay number check iterations: ${checkStatusIteration}`);
247
257
 
248
258
  UnderpostRootEnv.API.set(`${deployId}-${env}-traffic`, targetTraffic);
249
259
 
package/src/index.js CHANGED
@@ -35,7 +35,7 @@ class Underpost {
35
35
  * @type {String}
36
36
  * @memberof Underpost
37
37
  */
38
- static version = 'v2.8.854';
38
+ static version = 'v2.8.856';
39
39
  /**
40
40
  * Repository cli API
41
41
  * @static