underpost 2.8.6 → 2.8.7

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.
Files changed (79) hide show
  1. package/.vscode/extensions.json +3 -2
  2. package/.vscode/settings.json +2 -0
  3. package/CHANGELOG.md +24 -4
  4. package/Dockerfile +9 -10
  5. package/README.md +39 -2
  6. package/bin/build.js +2 -2
  7. package/bin/deploy.js +1337 -131
  8. package/bin/file.js +8 -0
  9. package/bin/index.js +1 -218
  10. package/cli.md +451 -0
  11. package/docker-compose.yml +1 -1
  12. package/jsdoc.json +1 -1
  13. package/manifests/calico-custom-resources.yaml +25 -0
  14. package/manifests/deployment/adminer/deployment.yaml +32 -0
  15. package/manifests/deployment/adminer/kustomization.yaml +7 -0
  16. package/manifests/deployment/adminer/service.yaml +13 -0
  17. package/manifests/deployment/fastapi/backend-deployment.yml +120 -0
  18. package/manifests/deployment/fastapi/backend-service.yml +19 -0
  19. package/manifests/deployment/fastapi/frontend-deployment.yml +54 -0
  20. package/manifests/deployment/fastapi/frontend-service.yml +15 -0
  21. package/manifests/deployment/kafka/deployment.yaml +69 -0
  22. package/manifests/kubeadm-calico-config.yaml +119 -0
  23. package/manifests/mongodb-4.4/service-deployment.yaml +1 -1
  24. package/manifests/postgresql/configmap.yaml +9 -0
  25. package/manifests/postgresql/kustomization.yaml +10 -0
  26. package/manifests/postgresql/pv.yaml +15 -0
  27. package/manifests/postgresql/pvc.yaml +13 -0
  28. package/manifests/postgresql/service.yaml +10 -0
  29. package/manifests/postgresql/statefulset.yaml +37 -0
  30. package/manifests/valkey/statefulset.yaml +6 -4
  31. package/package.json +3 -9
  32. package/src/api/default/default.service.js +1 -1
  33. package/src/api/user/user.service.js +14 -11
  34. package/src/cli/cluster.js +207 -20
  35. package/src/cli/cron.js +39 -8
  36. package/src/cli/db.js +20 -10
  37. package/src/cli/deploy.js +254 -85
  38. package/src/cli/env.js +9 -3
  39. package/src/cli/fs.js +21 -9
  40. package/src/cli/image.js +42 -124
  41. package/src/cli/index.js +312 -0
  42. package/src/cli/monitor.js +236 -0
  43. package/src/cli/repository.js +5 -2
  44. package/src/client/components/core/Account.js +28 -24
  45. package/src/client/components/core/Blockchain.js +1 -1
  46. package/src/client/components/core/CalendarCore.js +14 -84
  47. package/src/client/components/core/CommonJs.js +2 -1
  48. package/src/client/components/core/Css.js +0 -1
  49. package/src/client/components/core/CssCore.js +10 -2
  50. package/src/client/components/core/Docs.js +1 -1
  51. package/src/client/components/core/EventsUI.js +3 -3
  52. package/src/client/components/core/FileExplorer.js +86 -78
  53. package/src/client/components/core/JoyStick.js +2 -2
  54. package/src/client/components/core/LoadingAnimation.js +1 -17
  55. package/src/client/components/core/LogIn.js +3 -3
  56. package/src/client/components/core/LogOut.js +1 -1
  57. package/src/client/components/core/Modal.js +14 -8
  58. package/src/client/components/core/Panel.js +19 -61
  59. package/src/client/components/core/PanelForm.js +13 -22
  60. package/src/client/components/core/Recover.js +3 -3
  61. package/src/client/components/core/RichText.js +1 -11
  62. package/src/client/components/core/Router.js +3 -1
  63. package/src/client/components/core/SignUp.js +2 -2
  64. package/src/client/components/default/RoutesDefault.js +3 -2
  65. package/src/client/services/default/default.management.js +45 -38
  66. package/src/client/ssr/Render.js +2 -0
  67. package/src/index.js +18 -2
  68. package/src/mailer/MailerProvider.js +3 -0
  69. package/src/runtime/lampp/Dockerfile +65 -0
  70. package/src/server/client-build.js +13 -0
  71. package/src/server/conf.js +93 -1
  72. package/src/server/dns.js +56 -18
  73. package/src/server/json-schema.js +77 -0
  74. package/src/server/network.js +7 -122
  75. package/src/server/peer.js +2 -2
  76. package/src/server/proxy.js +4 -4
  77. package/src/server/runtime.js +24 -11
  78. package/src/server/start.js +122 -0
  79. package/src/server/valkey.js +25 -11
package/bin/file.js CHANGED
@@ -136,6 +136,14 @@ try {
136
136
  JSON.stringify(templatePackageLockJson, null, 4),
137
137
  'utf8',
138
138
  );
139
+ const splitKeyword = '## underpost ci/cd cli';
140
+ fs.writeFileSync(
141
+ `../pwa-microservices-template/README.md`,
142
+ fs.readFileSync(`../pwa-microservices-template/README.md`, 'utf8').split(`<!-- -->`)[0] +
143
+ `<!-- -->
144
+ ${splitKeyword + fs.readFileSync(`./README.md`, 'utf8').split(splitKeyword)[1]}`,
145
+ 'utf8',
146
+ );
139
147
  }
140
148
 
141
149
  break;
package/bin/index.js CHANGED
@@ -1,222 +1,5 @@
1
1
  #! /usr/bin/env node
2
2
 
3
- import dotenv from 'dotenv';
4
- import { Command } from 'commander';
5
- import Underpost from '../src/index.js';
6
- import { getUnderpostRootPath, loadConf } from '../src/server/conf.js';
7
- import fs from 'fs-extra';
8
- import { commitData } from '../src/client/components/core/CommonJs.js';
9
-
10
- const underpostRootPath = getUnderpostRootPath();
11
- fs.existsSync(`${underpostRootPath}/.env`)
12
- ? dotenv.config({ path: `${underpostRootPath}/.env`, override: true })
13
- : dotenv.config();
14
-
15
- const program = new Command();
16
-
17
- program.name('underpost').description(`underpost ci/cd cli ${Underpost.version}`).version(Underpost.version);
18
-
19
- program
20
- .command('new')
21
- .argument('<app-name>', 'Application name')
22
- .description('Create a new project')
23
- .action(Underpost.repo.new);
24
-
25
- program
26
- .command('clone')
27
- .argument(`<uri>`, 'e.g. username/repository')
28
- .option('--bare', 'Clone only .git files')
29
- .description('Clone github repository')
30
- .action(Underpost.repo.clone);
31
-
32
- program
33
- .command('pull')
34
- .argument('<path>', 'Absolute or relative directory')
35
- .argument(`<uri>`, 'e.g. username/repository')
36
- .description('Pull github repository')
37
- .action(Underpost.repo.pull);
38
-
39
- program
40
- .command('cmt')
41
- .argument('<path>', 'Absolute or relative directory')
42
- .argument(`<commit-type>`, `Options: ${Object.keys(commitData)}`)
43
- .argument(`[module-tag]`, 'Optional set module tag')
44
- .argument(`[message]`, 'Optional set additional message')
45
- .option('--empty', 'Allow empty files')
46
- .option('--copy', 'Copy to clipboard message')
47
- .option('--info', 'Info commit types')
48
- .description('Commit github repository')
49
- .action(Underpost.repo.commit);
50
-
51
- program
52
- .command('push')
53
- .argument('<path>', 'Absolute or relative directory')
54
- .argument(`<uri>`, 'e.g. username/repository')
55
- .option('-f', 'Force push overwriting repository')
56
- .description('Push github repository')
57
- .action(Underpost.repo.push);
58
-
59
- program
60
- .command('env')
61
- .argument('<deploy-id>', `deploy configuration id, if 'clean' restore default`)
62
- .argument('[env]', 'Optional environment, for default is production')
63
- .description('Set environment variables files and conf related to <deploy-id>')
64
- .action(loadConf);
65
-
66
- program
67
- .command('config')
68
- .argument('operator', `Options: ${Object.keys(Underpost.env)}`)
69
- .argument('[key]', 'Config key')
70
- .argument('[value]', 'Config value')
71
- .description(`Manage configuration, operators`)
72
- .action((...args) => Underpost.env[args[0]](args[1], args[2]));
73
-
74
- program
75
- .command('root')
76
- .description('Get npm root path')
77
- .action(() => console.log(getNpmRootPath()));
78
-
79
- program
80
- .command('cluster')
81
- .argument('[pod-name]', 'Optional pod name filter')
82
- .option('--reset', `Delete all clusters and prune all data and caches`)
83
- .option('--mariadb', 'Init with mariadb statefulset')
84
- .option('--mongodb', 'Init with mongodb statefulset')
85
- .option('--mongodb4', 'Init with mongodb 4.4 service')
86
- .option('--valkey', 'Init with valkey service')
87
- .option('--contour', 'Init with project contour base HTTPProxy and envoy')
88
- .option('--cert-manager', 'Init with letsencrypt-prod ClusterIssuer')
89
- .option('--info', 'Get all kinds objects deployed')
90
- .option('--full', 'Init with all statefulsets and services available')
91
- .option('--ns-use <ns-name>', 'Switches current context to namespace')
92
- .option('--dev', 'init with dev cluster')
93
- .option('--list-pods', 'Display list pods information')
94
- .action(Underpost.cluster.init)
95
- .description('Manage cluster, for default initialization base kind cluster');
96
-
97
- program
98
- .command('deploy')
99
- .argument('<deploy-list>', 'Deploy id list, e.g. default-a,default-b')
100
- .argument('[env]', 'Optional environment, for default is development')
101
- .option('--remove', 'Delete deployments and services')
102
- .option('--sync', 'Sync deployments env, ports, and replicas')
103
- .option('--info-router', 'Display router structure')
104
- .option('--expose', 'Expose service match deploy-list')
105
- .option('--info-util', 'Display kubectl util management commands')
106
- .option('--cert', 'Reset tls/ssl certificate secrets')
107
- .option('--build-manifest', 'Build kind yaml manifests: deployments, services, proxy and secrets')
108
- .option('--version', 'Set custom version')
109
- .description('Manage deployment, for default deploy development pods')
110
- .action(Underpost.deploy.callback);
111
-
112
- program
113
- .command('secret')
114
- .argument('<platform>', `Options: ${Object.keys(Underpost.secret)}`)
115
- .option('--init', 'Init secrets platform environment')
116
- .option('--create-from-file <path-env-file>', 'Create secret from env file')
117
- .option('--list', 'Lists secrets')
118
- // .option('--delete [secret-key]', 'Delete key secret, if not set, are default delete all')
119
- // .option('--create [secret-key] [secret-value]', 'Create secret key, with secret value')
120
- .description(`Manage secrets`)
121
- .action((...args) => {
122
- if (args[1].createFromFile) return Underpost.secret[args[0]].createFromEnvFile(args[1].createFromFile);
123
- if (args[1].list) return Underpost.secret[args[0]].list();
124
- if (args[1].init) return Underpost.secret[args[0]].init();
125
- });
126
-
127
- program
128
- .command('dockerfile-node-script')
129
- .argument('<deploy-id>', 'Deploy configuration id')
130
- .argument('[env]', 'Optional environment, for default is development')
131
- .option('--run', 'Run custom entry point script')
132
- .description('Dockerfile custom node build script')
133
- .action(Underpost.image.dockerfile.script);
134
-
135
- program
136
- .command('dockerfile-image-build')
137
- .argument('<deploy-id>', 'Deploy configuration id')
138
- .argument('[env]', 'Optional environment, for default is development')
139
- .argument('[path]', 'Absolute or relative directory, for default is current')
140
- .option('--image-archive', 'Only load tar image from ./images')
141
- .option('--podman-save', 'Save image from podman to ./images')
142
- .option('--image-name <image-name>', 'Set custom image name')
143
- .option('--image-version <image-version>', 'Set custom image version')
144
- .description('Build image from Dockerfile')
145
- .action(Underpost.image.dockerfile.build);
146
-
147
- program
148
- .command('dockerfile-pull-base-images')
149
- .description('Pull underpost dockerfile images requirements')
150
- .action(Underpost.image.dockerfile.pullBaseImages);
151
-
152
- program
153
- .command('install')
154
- .description('Fast import underpost npm dependencies')
155
- .action(() => {
156
- fs.copySync(`${underpostRootPath}/node_modules`, './node_modules');
157
- });
158
-
159
- program
160
- .command('db')
161
- .argument('<deploy-list>', 'Deploy id list, e.g. default-a,default-b')
162
- .option('--import', 'Import container backups from repositories')
163
- .option('--export', 'Export container backups to repositories')
164
- .option('--pod-name <pod-name>', 'Optional pod context')
165
- .option('--collection <collection>', 'Collection')
166
- .option('--out-path <out-path>', 'Custom out path backup')
167
- .option('--drop', 'Drop databases')
168
- .option('--preserveUUID', 'Preserve Ids')
169
- .option('--git', 'Upload to github')
170
- .option('--ns <ns-name>', 'Optional name space context')
171
- .description('Manage databases')
172
- .action(Underpost.db.callback);
173
-
174
- program
175
- .command('script')
176
- .argument('operator', `Options: ${Object.keys(Underpost.script)}`)
177
- .argument('<script-name>', 'Script name')
178
- .argument('[script-value]', 'Literal command, or path')
179
- .option('--itc', 'Inside container execution context')
180
- .option('--itc-path', 'Inside container path options')
181
- .option('--ns <ns-name>', 'Options name space context')
182
- .option('--pod-name <pod-name>')
183
- .description(
184
- 'Supports a number of built-in underpost global scripts and their preset life cycle events as well as arbitrary scripts',
185
- )
186
- .action((...args) => Underpost.script[args[0]](args[1], args[2], args[3]));
187
-
188
- program
189
- .command('cron')
190
- .argument('[deploy-list]', 'Deploy id list, e.g. default-a,default-b')
191
- .argument('[job-list]', `Deploy id list, e.g. ${Object.keys(Underpost.cron)}, for default all available jobs`)
192
- .option('--itc', 'Inside container execution context')
193
- .option('--init', 'Init cron jobs for cron job default deploy id')
194
- .option('--git', 'Upload to github')
195
- .description('Cron jobs management')
196
- .action(Underpost.cron.callback);
197
-
198
- program
199
- .command('fs')
200
- .argument('[path]', 'Absolute or relative directory')
201
- .option('--rm', 'Remove file')
202
- .option('--git', 'Current git changes')
203
- .option('--recursive', 'Upload files recursively')
204
- .option('--deploy-id <deploy-id>', 'Deploy configuration id')
205
- .option('--pull', 'Download file')
206
- .option('--force', 'Force action')
207
- .description('File storage management, for default upload file')
208
- .action(Underpost.fs.callback);
209
-
210
- program
211
- .command('test')
212
- .argument('[deploy-list]', 'Deploy id list, e.g. default-a,default-b')
213
- .description('Manage Test, for default run current underpost default test')
214
- .option('--itc', 'Inside container execution context')
215
- .option('--sh', 'Copy to clipboard, container entrypoint shell command')
216
- .option('--logs', 'Display container logs')
217
- .option('--pod-name <pod-name>')
218
- .option('--pod-status <pod-status>')
219
- .option('--kind-type <kind-type>')
220
- .action(Underpost.test.callback);
3
+ import { program } from '../src/cli/index.js';
221
4
 
222
5
  program.parse();
package/cli.md ADDED
@@ -0,0 +1,451 @@
1
+ ## underpost ci/cd cli v2.8.7
2
+
3
+ ### Usage: `underpost [options] [command]`
4
+ ```
5
+ Options:
6
+ -V, --version output the version number
7
+ -h, --help display help for command
8
+
9
+ Commands:
10
+ new <app-name> Create a new project
11
+ start [options] <deploy-id> [env] Start up server, build pipelines, or services
12
+ clone [options] <uri> Clone github repository
13
+ pull <path> <uri> Pull github repository
14
+ cmt [options] <path> <commit-type> [module-tag] [message] Commit github repository
15
+ push [options] <path> <uri> Push github repository
16
+ env <deploy-id> [env] Set environment variables files and conf related to <deploy-id>
17
+ config <operator> [key] [value] Manage configuration, operators
18
+ root Get npm root path
19
+ cluster [options] [pod-name] Manage cluster, for default initialization base kind cluster
20
+ deploy [options] <deploy-list> [env] Manage deployment, for default deploy development pods
21
+ secret [options] <platform> Manage secrets
22
+ dockerfile-image-build [options] Build image from Dockerfile
23
+ dockerfile-pull-base-images Pull underpost dockerfile images requirements
24
+ install Fast import underpost npm dependencies
25
+ db [options] <deploy-list> Manage databases
26
+ script [options] <operator> <script-name> [script-value] Supports a number of built-in underpost global scripts and their preset life cycle events as well as arbitrary scripts
27
+ cron [options] [deploy-list] [job-list] Cron jobs management
28
+ fs [options] [path] File storage management, for default upload file
29
+ test [options] [deploy-list] Manage Test, for default run current underpost default test
30
+ monitor [options] <deploy-id> [env] Monitor health server management
31
+ help [command] display help for command
32
+
33
+ ```
34
+
35
+ ## Commands:
36
+
37
+
38
+ ### `new` :
39
+ ```
40
+ Usage: underpost new [options] <app-name>
41
+
42
+ Create a new project
43
+
44
+ Arguments:
45
+ app-name Application name
46
+
47
+ Options:
48
+ -h, --help display help for command
49
+
50
+ ```
51
+
52
+
53
+ ### `start` :
54
+ ```
55
+ Usage: underpost start [options] <deploy-id> [env]
56
+
57
+ Start up server, build pipelines, or services
58
+
59
+ Arguments:
60
+ deploy-id Deploy configuration id
61
+ env Optional environment, for default is development
62
+
63
+ Options:
64
+ --run Run app servers and monitor health server
65
+ --build Build app client
66
+ -h, --help display help for command
67
+
68
+ ```
69
+
70
+
71
+ ### `clone` :
72
+ ```
73
+ Usage: underpost clone [options] <uri>
74
+
75
+ Clone github repository
76
+
77
+ Arguments:
78
+ uri e.g. username/repository
79
+
80
+ Options:
81
+ --bare Clone only .git files
82
+ -h, --help display help for command
83
+
84
+ ```
85
+
86
+
87
+ ### `pull` :
88
+ ```
89
+ Usage: underpost pull [options] <path> <uri>
90
+
91
+ Pull github repository
92
+
93
+ Arguments:
94
+ path Absolute or relative directory
95
+ uri e.g. username/repository
96
+
97
+ Options:
98
+ -h, --help display help for command
99
+
100
+ ```
101
+
102
+
103
+ ### `cmt` :
104
+ ```
105
+ Usage: underpost cmt [options] <path> <commit-type> [module-tag] [message]
106
+
107
+ Commit github repository
108
+
109
+ Arguments:
110
+ path Absolute or relative directory
111
+ commit-type Options:
112
+ feat,fix,docs,style,refactor,perf,cd,test,build,ci,chore,revert,backup
113
+ module-tag Optional set module tag
114
+ message Optional set additional message
115
+
116
+ Options:
117
+ --empty Allow empty files
118
+ --copy Copy to clipboard message
119
+ --info Info commit types
120
+ -h, --help display help for command
121
+
122
+ ```
123
+
124
+
125
+ ### `push` :
126
+ ```
127
+ Usage: underpost push [options] <path> <uri>
128
+
129
+ Push github repository
130
+
131
+ Arguments:
132
+ path Absolute or relative directory
133
+ uri e.g. username/repository
134
+
135
+ Options:
136
+ -f Force push overwriting repository
137
+ -h, --help display help for command
138
+
139
+ ```
140
+
141
+
142
+ ### `env` :
143
+ ```
144
+ Usage: underpost env [options] <deploy-id> [env]
145
+
146
+ Set environment variables files and conf related to <deploy-id>
147
+
148
+ Arguments:
149
+ deploy-id deploy configuration id, if 'clean' restore default
150
+ env Optional environment, for default is production
151
+
152
+ Options:
153
+ -h, --help display help for command
154
+
155
+ ```
156
+
157
+
158
+ ### `config` :
159
+ ```
160
+ Usage: underpost config [options] <operator> [key] [value]
161
+
162
+ Manage configuration, operators
163
+
164
+ Arguments:
165
+ operator Options: set,delete,get,list,clean
166
+ key Config key
167
+ value Config value
168
+
169
+ Options:
170
+ -h, --help display help for command
171
+
172
+ ```
173
+
174
+
175
+ ### `root` :
176
+ ```
177
+ Usage: underpost root [options]
178
+
179
+ Get npm root path
180
+
181
+ Options:
182
+ -h, --help display help for command
183
+
184
+ ```
185
+
186
+
187
+ ### `cluster` :
188
+ ```
189
+ Usage: underpost cluster [options] [pod-name]
190
+
191
+ Manage cluster, for default initialization base kind cluster
192
+
193
+ Arguments:
194
+ pod-name Optional pod name filter
195
+
196
+ Options:
197
+ --reset Delete all clusters and prune all data and caches
198
+ --mariadb Init with mariadb statefulset
199
+ --mongodb Init with mongodb statefulset
200
+ --postgresql Init with postgresql statefulset
201
+ --mongodb4 Init with mongodb 4.4 service
202
+ --istio Init base istio cluster
203
+ --valkey Init with valkey service
204
+ --contour Init with project contour base HTTPProxy and envoy
205
+ --cert-manager Init with letsencrypt-prod ClusterIssuer
206
+ --info Get all kinds objects deployed
207
+ --full Init with all statefulsets and services available
208
+ --ns-use <ns-name> Switches current context to namespace
209
+ --dev init with dev cluster
210
+ --list-pods Display list pods information
211
+ --info-capacity display current total machine capacity info
212
+ --info-capacity-pod display current machine capacity pod info
213
+ --pull-image Set optional pull associated image
214
+ -h, --help display help for command
215
+
216
+ ```
217
+
218
+
219
+ ### `deploy` :
220
+ ```
221
+ Usage: underpost deploy [options] <deploy-list> [env]
222
+
223
+ Manage deployment, for default deploy development pods
224
+
225
+ Arguments:
226
+ deploy-list Deploy id list, e.g. default-a,default-b
227
+ env Optional environment, for default is
228
+ development
229
+
230
+ Options:
231
+ --remove Delete deployments and services
232
+ --sync Sync deployments env, ports, and replicas
233
+ --info-router Display router structure
234
+ --expose Expose service match deploy-list
235
+ --info-util Display kubectl util management commands
236
+ --cert Reset tls/ssl certificate secrets
237
+ --build-manifest Build kind yaml manifests: deployments,
238
+ services, proxy and secrets
239
+ --dashboard-update Update dashboard instance data with current
240
+ router config
241
+ --replicas <replicas> Set custom number of replicas
242
+ --versions <deployment-versions> Comma separated custom deployment versions
243
+ --traffic <traffic-versions> Comma separated custom deployment traffic
244
+ --disable-update-deployment Disable update deployments
245
+ --info-traffic get traffic conf form current resources
246
+ deployments
247
+ --rebuild-clients-bundle Inside container, rebuild clients bundle,
248
+ only static public or storage client files
249
+ -h, --help display help for command
250
+
251
+ ```
252
+
253
+
254
+ ### `secret` :
255
+ ```
256
+ Usage: underpost secret [options] <platform>
257
+
258
+ Manage secrets
259
+
260
+ Arguments:
261
+ platform Options: docker,underpost
262
+
263
+ Options:
264
+ --init Init secrets platform environment
265
+ --create-from-file <path-env-file> Create secret from env file
266
+ --list Lists secrets
267
+ -h, --help display help for command
268
+
269
+ ```
270
+
271
+
272
+ ### `dockerfile-image-build` :
273
+ ```
274
+ Usage: underpost dockerfile-image-build [options]
275
+
276
+ Build image from Dockerfile
277
+
278
+ Options:
279
+ --path [path] Dockerfile path
280
+ --image-name [image-name] Set image name
281
+ --image-path [image-path] Set tar image path
282
+ --dockerfile-name [dockerfile-name] set Dockerfile name
283
+ --podman-save Export tar file from podman
284
+ --kind-load Import tar image to Kind cluster
285
+ --secrets Dockerfile env secrets
286
+ --secrets-path [secrets-path] Dockerfile custom path env secrets
287
+ --no-cache Build without using cache
288
+ -h, --help display help for command
289
+
290
+ ```
291
+
292
+
293
+ ### `dockerfile-pull-base-images` :
294
+ ```
295
+ Usage: underpost dockerfile-pull-base-images [options]
296
+
297
+ Pull underpost dockerfile images requirements
298
+
299
+ Options:
300
+ -h, --help display help for command
301
+
302
+ ```
303
+
304
+
305
+ ### `install` :
306
+ ```
307
+ Usage: underpost install [options]
308
+
309
+ Fast import underpost npm dependencies
310
+
311
+ Options:
312
+ -h, --help display help for command
313
+
314
+ ```
315
+
316
+
317
+ ### `db` :
318
+ ```
319
+ Usage: underpost db [options] <deploy-list>
320
+
321
+ Manage databases
322
+
323
+ Arguments:
324
+ deploy-list Deploy id list, e.g. default-a,default-b
325
+
326
+ Options:
327
+ --import Import container backups from repositories
328
+ --export Export container backups to repositories
329
+ --pod-name <pod-name> Optional pod context
330
+ --collections <collections> Comma separated collections
331
+ --out-path <out-path> Custom out path backup
332
+ --drop Drop databases
333
+ --preserveUUID Preserve Ids
334
+ --git Upload to github
335
+ --hosts <hosts> Comma separated hosts
336
+ --paths <paths> Comma separated paths
337
+ --ns <ns-name> Optional name space context
338
+ -h, --help display help for command
339
+
340
+ ```
341
+
342
+
343
+ ### `script` :
344
+ ```
345
+ Usage: underpost script [options] <operator> <script-name> [script-value]
346
+
347
+ Supports a number of built-in underpost global scripts and their preset life
348
+ cycle events as well as arbitrary scripts
349
+
350
+ Arguments:
351
+ operator Options: set,run,get
352
+ script-name Script name
353
+ script-value Literal command, or path
354
+
355
+ Options:
356
+ --itc Inside container execution context
357
+ --itc-path Inside container path options
358
+ --ns <ns-name> Options name space context
359
+ --pod-name <pod-name>
360
+ -h, --help display help for command
361
+
362
+ ```
363
+
364
+
365
+ ### `cron` :
366
+ ```
367
+ Usage: underpost cron [options] [deploy-list] [job-list]
368
+
369
+ Cron jobs management
370
+
371
+ Arguments:
372
+ deploy-list Deploy id list, e.g. default-a,default-b
373
+ job-list Deploy id list, e.g. callback,updateDashboardData, for
374
+ default all available jobs
375
+
376
+ Options:
377
+ --itc Inside container execution context
378
+ --init Init cron jobs for cron job default deploy id
379
+ --git Upload to github
380
+ --dashboard-update Update dashboard cron data with current jobs config
381
+ -h, --help display help for command
382
+
383
+ ```
384
+
385
+
386
+ ### `fs` :
387
+ ```
388
+ Usage: underpost fs [options] [path]
389
+
390
+ File storage management, for default upload file
391
+
392
+ Arguments:
393
+ path Absolute or relative directory
394
+
395
+ Options:
396
+ --rm Remove file
397
+ --git Current git changes
398
+ --recursive Upload files recursively
399
+ --deploy-id <deploy-id> Deploy configuration id
400
+ --pull Download file
401
+ --force Force action
402
+ --storage-file-path <storage-file-path> custom file storage path
403
+ -h, --help display help for command
404
+
405
+ ```
406
+
407
+
408
+ ### `test` :
409
+ ```
410
+ Usage: underpost test [options] [deploy-list]
411
+
412
+ Manage Test, for default run current underpost default test
413
+
414
+ Arguments:
415
+ deploy-list Deploy id list, e.g. default-a,default-b
416
+
417
+ Options:
418
+ --itc Inside container execution context
419
+ --sh Copy to clipboard, container entrypoint shell
420
+ command
421
+ --logs Display container logs
422
+ --pod-name <pod-name>
423
+ --pod-status <pod-status>
424
+ --kind-type <kind-type>
425
+ -h, --help display help for command
426
+
427
+ ```
428
+
429
+
430
+ ### `monitor` :
431
+ ```
432
+ Usage: underpost monitor [options] <deploy-id> [env]
433
+
434
+ Monitor health server management
435
+
436
+ Arguments:
437
+ deploy-id Deploy configuration id
438
+ env Optional environment, for default is development
439
+
440
+ Options:
441
+ --ms-interval <ms-interval> Custom ms interval delta time
442
+ --now Exec immediately monitor script
443
+ --single Disable recurrence
444
+ --replicas <replicas> Set custom number of replicas
445
+ --type <type> Set custom monitor type
446
+ --sync Sync with current proxy deployments proxy
447
+ traffic
448
+ -h, --help display help for command
449
+
450
+ ```
451
+
@@ -58,7 +58,7 @@ services:
58
58
  cpus: '0.25'
59
59
  memory: 20M
60
60
  labels: # labels in Compose file instead of Dockerfile
61
- engine.version: '2.8.6'
61
+ engine.version: '2.8.7'
62
62
  networks:
63
63
  - load-balancer
64
64