@underpostnet/underpost 2.8.854 → 2.8.855
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/.github/workflows/release.cd.yml +5 -4
- package/README.md +5 -77
- package/cli.md +2 -2
- package/manifests/deployment/dd-default-development/deployment.yaml +2 -2
- package/package.json +1 -1
- package/src/cli/run.js +12 -8
- package/src/index.js +1 -1
|
@@ -29,7 +29,8 @@ jobs:
|
|
|
29
29
|
set -e
|
|
30
30
|
echo "Starting remote release deploy"
|
|
31
31
|
cd /home/dd/engine
|
|
32
|
-
|
|
33
|
-
underpost
|
|
34
|
-
|
|
35
|
-
underpost run
|
|
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
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
<div align="center">
|
|
12
|
-
|
|
13
|
-
template
|
|
7
|
+
<h1>underpost</h1>
|
|
14
8
|
|
|
15
9
|
</div>
|
|
16
10
|
|
|
@@ -25,43 +19,10 @@ template
|
|
|
25
19
|
|
|
26
20
|
|
|
27
21
|
|
|
28
|
-
|
|
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
22
|
<!-- badges -->
|
|
62
23
|
|
|
63
24
|
|
|
64
|
-
[](https://github.com/underpostnet/engine/actions/workflows/docker-image.yml) [](https://github.com/underpostnet/engine/actions/workflows/coverall.yml) [](https://www.npmjs.com/package/underpost) [](https://github.com/underpostnet/engine/actions/workflows/docker-image.yml) [](https://github.com/underpostnet/engine/actions/workflows/coverall.yml) [](https://www.npmjs.com/package/underpost) [](https://socket.dev/npm/package/underpost/overview/2.8.855) [](https://coveralls.io/github/underpostnet/engine?branch=master) [](https://www.npmjs.org/package/underpost) [](https://www.npmjs.com/package/underpost)
|
|
65
26
|
|
|
66
27
|
|
|
67
28
|
<!-- end-badges -->
|
|
@@ -69,46 +30,13 @@ template
|
|
|
69
30
|
|
|
70
31
|
|
|
71
32
|
|
|
72
|
-
|
|
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
33
|
</div>
|
|
106
34
|
|
|
107
35
|
<div align="center">
|
|
108
36
|
|
|
109
37
|
#### Base template for pwa/api-rest projects.
|
|
110
38
|
|
|
111
|
-
Develop, build, deploy, test, monitor, and manage multiple runtime applications on virtual machines or container instances
|
|
39
|
+
<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
40
|
|
|
113
41
|
</div>
|
|
114
42
|
|
|
@@ -146,7 +74,7 @@ Run dev client server
|
|
|
146
74
|
npm run dev
|
|
147
75
|
```
|
|
148
76
|
<!-- -->
|
|
149
|
-
## underpost ci/cd cli v2.8.
|
|
77
|
+
## underpost ci/cd cli v2.8.855
|
|
150
78
|
|
|
151
79
|
### Usage: `underpost [options] [command]`
|
|
152
80
|
```
|
package/cli.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## underpost ci/cd cli v2.8.
|
|
1
|
+
## underpost ci/cd cli v2.8.855
|
|
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,
|
|
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.
|
|
20
|
+
image: localhost/rockylinux9-underpost:v2.8.855
|
|
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.
|
|
103
|
+
image: localhost/rockylinux9-underpost:v2.8.855
|
|
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.
|
|
5
|
+
"version": "2.8.855",
|
|
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
|
@@ -102,15 +102,19 @@ class UnderpostRun {
|
|
|
102
102
|
shellCd(path ?? `/home/dd/engine`);
|
|
103
103
|
shellExec(`node bin/deploy clean-core-repo`);
|
|
104
104
|
},
|
|
105
|
-
|
|
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
|
+
shellCd(`/home/dd/engine`);
|
|
113
|
+
for (const _deployId of fs.readFileSync(`./engine-private/deploy/dd.router`, 'utf8').split(',')) {
|
|
114
|
+
const deployId = _deployId.trim();
|
|
115
|
+
shellExec(`underpost run deploy ${deployId}`, { async: true });
|
|
116
|
+
}
|
|
117
|
+
},
|
|
114
118
|
'ssh-deploy': (path, options = UnderpostRun.DEFAULT_OPTION) => {
|
|
115
119
|
const baseCommand = options.dev || true ? 'node bin' : 'underpost';
|
|
116
120
|
shellCd('/home/dd/engine');
|
|
@@ -234,16 +238,16 @@ class UnderpostRun {
|
|
|
234
238
|
const ignorePods = UnderpostDeploy.API.get(`${deployId}-${env}-${targetTraffic}`).map((p) => p.NAME);
|
|
235
239
|
shellExec(`sudo kubectl rollout restart deployment/${deployId}-${env}-${targetTraffic}`);
|
|
236
240
|
|
|
237
|
-
let
|
|
241
|
+
let checkStatusIteration = 0;
|
|
238
242
|
logger.info('Deployment init', { deployId, env, targetTraffic });
|
|
239
243
|
|
|
240
244
|
while (!UnderpostDeploy.API.checkDeploymentReadyStatus(deployId, env, targetTraffic, ignorePods).ready) {
|
|
241
245
|
await timer(1000);
|
|
242
|
-
|
|
243
|
-
logger.info(`Deployment in progress,
|
|
246
|
+
checkStatusIteration++;
|
|
247
|
+
logger.info(`Deployment in progress, numbers of second time delay status iteration: ${checkStatusIteration}`);
|
|
244
248
|
}
|
|
245
249
|
|
|
246
|
-
logger.info(`Deployment ready,
|
|
250
|
+
logger.info(`Deployment ready, numbers of second time delay status iteration: ${checkStatusIteration}`);
|
|
247
251
|
|
|
248
252
|
UnderpostRootEnv.API.set(`${deployId}-${env}-traffic`, targetTraffic);
|
|
249
253
|
|