underpost 3.2.12 → 3.2.21
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/ghpkg.ci.yml +1 -0
- package/.github/workflows/npmpkg.ci.yml +9 -5
- package/CHANGELOG.md +114 -1
- package/CLI-HELP.md +973 -1130
- package/README.md +47 -41
- package/bin/build.js +88 -137
- package/bin/build.template.js +25 -179
- package/bin/deploy.js +4 -1
- package/bin/index.js +2 -2
- package/conf.js +11 -37
- package/manifests/cronjobs/dd-cron/dd-cron-backup.yaml +2 -2
- package/manifests/cronjobs/dd-cron/dd-cron-dns.yaml +1 -1
- package/manifests/deployment/dd-default-development/deployment.yaml +2 -2
- package/package.json +9 -14
- package/scripts/link-local-underpost-cli.sh +6 -0
- package/scripts/test-monitor.sh +86 -0
- package/src/cli/deploy.js +195 -274
- package/src/cli/env.js +1 -4
- package/src/cli/image.js +58 -4
- package/src/cli/index.js +39 -0
- package/src/cli/monitor.js +302 -6
- package/src/cli/release.js +26 -11
- package/src/cli/repository.js +98 -7
- package/src/cli/run.js +137 -69
- package/src/db/mongo/MongooseDB.js +2 -1
- package/src/index.js +1 -1
- package/src/runtime/wp/Dockerfile +3 -3
- package/src/server/catalog-underpost.js +61 -0
- package/src/server/catalog.js +77 -0
- package/src/server/conf.js +365 -56
- package/src/server/runtime-status.js +235 -0
- package/src/server/start.js +17 -8
- package/test/deploy-monitor.test.js +223 -0
- package/manifests/deployment/dd-test-development/deployment.yaml +0 -256
- package/manifests/deployment/dd-test-development/proxy.yaml +0 -102
|
@@ -57,6 +57,7 @@ jobs:
|
|
|
57
57
|
- name: Clone and Push to github package repository
|
|
58
58
|
env:
|
|
59
59
|
GITHUB_TOKEN: ${{ secrets.GIT_AUTH_TOKEN }}
|
|
60
|
+
GITHUB_USERNAME: ${{ github.repository_owner }}
|
|
60
61
|
run: |
|
|
61
62
|
node bin clone --bare underpostnet/pwa-microservices-template-ghpkg
|
|
62
63
|
rm -rf ./.git
|
|
@@ -11,7 +11,7 @@ on:
|
|
|
11
11
|
required: false
|
|
12
12
|
default: ''
|
|
13
13
|
deploy_conf_id:
|
|
14
|
-
description: 'Engine conf ID to dispatch after build
|
|
14
|
+
description: 'Engine conf ID to dispatch after build'
|
|
15
15
|
required: false
|
|
16
16
|
default: ''
|
|
17
17
|
deploy_type:
|
|
@@ -85,20 +85,24 @@ jobs:
|
|
|
85
85
|
run: |
|
|
86
86
|
cd .. && node engine/bin clone underpostnet/pwa-microservices-template
|
|
87
87
|
cd engine
|
|
88
|
-
npm run
|
|
88
|
+
npm run build:template
|
|
89
89
|
cd ../pwa-microservices-template
|
|
90
90
|
git remote set-url origin git@github.com:underpostnet/pwa-microservices-template.git
|
|
91
91
|
git add .
|
|
92
92
|
git config user.name 'underpostnet'
|
|
93
93
|
git config user.email 'fcoverdugoa@underpost.net'
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
if git diff --cached --quiet; then
|
|
95
|
+
echo "[INFO] No template changes to publish; skipping commit and push."
|
|
96
|
+
else
|
|
97
|
+
node ../engine/bin cmt . ci package-pwa-microservices-template-ghpkg "$LAST_COMMIT_MESSAGE"
|
|
98
|
+
node ../engine/bin push . underpostnet/pwa-microservices-template
|
|
99
|
+
fi
|
|
96
100
|
|
|
97
101
|
- name: Dispatch all engine CIs
|
|
98
102
|
run: |
|
|
99
103
|
DEPLOY_CONF_ID="${{ github.event.inputs.deploy_conf_id }}"
|
|
100
104
|
DEPLOY_TYPE="${{ github.event.inputs.deploy_type }}"
|
|
101
|
-
for ENGINE in engine-core engine-cyberia engine-lampp engine-test; do
|
|
105
|
+
for ENGINE in engine-core engine-prototype engine-cyberia engine-lampp engine-test; do
|
|
102
106
|
SYNC="false"
|
|
103
107
|
DT=""
|
|
104
108
|
if [ "$ENGINE" = "$DEPLOY_CONF_ID" ]; then
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,119 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 2026-
|
|
3
|
+
## 2026-06-06
|
|
4
|
+
|
|
5
|
+
### release
|
|
6
|
+
|
|
7
|
+
- Add options for MongoDB and Valkey configuration in build process ([7dba2a68a](https://github.com/underpostnet/engine/commit/7dba2a68a01dd0dacdf0e1f430170e80f6ce97d8))
|
|
8
|
+
|
|
9
|
+
### repository
|
|
10
|
+
|
|
11
|
+
- Enhance deployment process: Include deploy ID in logging and update build commands ([aedd99415](https://github.com/underpostnet/engine/commit/aedd994157a5688b13c9f063b9e1446807282213))
|
|
12
|
+
- Add --has-changes option to check for staged or unstaged git changes and update template repo logic ([f479994a4](https://github.com/underpostnet/engine/commit/f479994a40ad3815839cd85f8664390074799c55))
|
|
13
|
+
- Ensure repository directory is created before initialization ([5cb66853f](https://github.com/underpostnet/engine/commit/5cb66853f2623e18edaf8f63de95757cc48d389a))
|
|
14
|
+
|
|
15
|
+
### docs
|
|
16
|
+
|
|
17
|
+
- Refactor CLI documentation generation: Update command argument and option sections for improved clarity ([fd20febb1](https://github.com/underpostnet/engine/commit/fd20febb125f547b287edd784504185273080a51))
|
|
18
|
+
|
|
19
|
+
### deploy
|
|
20
|
+
|
|
21
|
+
- Add support for self-signed TLS certificates and related options in deployment scripts ([d03ddf7b7](https://github.com/underpostnet/engine/commit/d03ddf7b758afb9c55fe7c610011fe9e4828d033))
|
|
22
|
+
- Add localProxy option to enable TCP port forwarding and path-based routing ([6b6c03a4c](https://github.com/underpostnet/engine/commit/6b6c03a4c0a990a9b03c234025b3d68deb48f41a))
|
|
23
|
+
- Add exposeLocalPort option for custom local port configuration in deployment ([60fe88b95](https://github.com/underpostnet/engine/commit/60fe88b95e69c744fb53d900edaf6b918f0824bb))
|
|
24
|
+
- Refactor deployment scripts: Update commands in engine-test workflow and add link-local CLI script ([8506dbca4](https://github.com/underpostnet/engine/commit/8506dbca4280e782cb550206f8bf550f9f6f81af))
|
|
25
|
+
|
|
26
|
+
### cli-run
|
|
27
|
+
|
|
28
|
+
- Add build-cluster-deployment-manifests method and update test-monitor script: Implement deployment manifest building for production and development environments. ([be2c5a71e](https://github.com/underpostnet/engine/commit/be2c5a71e553a65e57fd9f21a5ccb5acaf7b7d58))
|
|
29
|
+
- Add etc-hosts method: Modify /etc/hosts file for local service access ([c4e7ba286](https://github.com/underpostnet/engine/commit/c4e7ba286651f002c1f6be09225c092b0596e4b8))
|
|
30
|
+
|
|
31
|
+
### monitor
|
|
32
|
+
|
|
33
|
+
- Refactor monitoring and deployment port resolution: Introduce deployStatusPort for consistent internal status port handling and implement findFreePort for ephemeral TCP port allocation. ([735c2c41e](https://github.com/underpostnet/engine/commit/735c2c41e2cfc7c47dd7ce3f0832b80f9c41188f))
|
|
34
|
+
- Add test-monitor script: Implement deployment and monitoring commands for development environment ([a74316ae1](https://github.com/underpostnet/engine/commit/a74316ae140c7917c2923f9f6f63d0ea74859116))
|
|
35
|
+
- Implement reliable two-phase deployment monitoring with internal HTTP status endpoint ([a2b49dcd6](https://github.com/underpostnet/engine/commit/a2b49dcd62ee5056c6d4e5caba0faf867e531269))
|
|
36
|
+
- Improve pod status handling: Exclude 'empty' status from container status checks ([6d18e2872](https://github.com/underpostnet/engine/commit/6d18e28720004eca5dcff8ad61373ac74b46851a))
|
|
37
|
+
- Improve pod status handling: Exclude 'empty' status from advanced pod tracking ([a90400342](https://github.com/underpostnet/engine/commit/a904003428a2a920f56ea409391812a6d3dab794))
|
|
38
|
+
|
|
39
|
+
### build-template
|
|
40
|
+
|
|
41
|
+
- Add option to update private template repository ([77cbe276a](https://github.com/underpostnet/engine/commit/77cbe276af8f5a3a85c95ab8ad2044b57ee52326))
|
|
42
|
+
|
|
43
|
+
### runtime-cyberia
|
|
44
|
+
|
|
45
|
+
- Refactor Dockerfiles: Standardize comments and clean up unnecessary lines ([6ae4d0bef](https://github.com/underpostnet/engine/commit/6ae4d0bef71eb31fc56eb66be5e52ba3334b5f13))
|
|
46
|
+
|
|
47
|
+
### engine-cyberia
|
|
48
|
+
|
|
49
|
+
- Enhance dialogue and quest systems: Add new dialogue entries for Lain, update action types, and revise implementation status in documentation ([67702fa9c](https://github.com/underpostnet/engine/commit/67702fa9c4219fed4742d078f88a52167dd08249))
|
|
50
|
+
|
|
51
|
+
### cyberia-cli
|
|
52
|
+
|
|
53
|
+
- Add Mongo host override option to import command for Object Layer items ([b181892b4](https://github.com/underpostnet/engine/commit/b181892b48753f7a40ede0346934f6a8b9fd21dc))
|
|
54
|
+
|
|
55
|
+
### env
|
|
56
|
+
|
|
57
|
+
- Simplify environment variable check: Remove redundant logging for empty env path ([b192cdff4](https://github.com/underpostnet/engine/commit/b192cdff40c2053c651210fbf244be34b74b8376))
|
|
58
|
+
|
|
59
|
+
## New release v:3.2.14 (2026-06-02)
|
|
60
|
+
|
|
61
|
+
### runtime-wp
|
|
62
|
+
|
|
63
|
+
- Enhance Dockerfile: Add retry logic for XAMPP installation to handle flaky SourceForge transfers ([d76f7ec69](https://github.com/underpostnet/engine/commit/d76f7ec6959f6ef049d9ef46475e95b7045855a6))
|
|
64
|
+
|
|
65
|
+
### cli-run
|
|
66
|
+
|
|
67
|
+
- Bundle runner: Enhance client build process by adding options for zip building and replica handling; improve bundle upload logic for deployment ([ee79ccfea](https://github.com/underpostnet/engine/commit/ee79ccfeaf870c0f772027c0a103634774ac1d10))
|
|
68
|
+
- Add shared-dir command execution to UnderpostRun class ([a5d6a3a09](https://github.com/underpostnet/engine/commit/a5d6a3a09ab8ba439a2a21467a9e290a4f4ed59b))
|
|
69
|
+
|
|
70
|
+
### monitor
|
|
71
|
+
|
|
72
|
+
- Enhance pod status monitoring by adding advanced error checks and tracking for container status regressions ([de54ee20c](https://github.com/underpostnet/engine/commit/de54ee20c1cb76b53898c9785aefe4d2f972e84c))
|
|
73
|
+
- Refactor deployment monitoring and image management; add tests for deployment failure detection ([819d17f30](https://github.com/underpostnet/engine/commit/819d17f306f1d62e0663023fbd667ecf26f8df61))
|
|
74
|
+
|
|
75
|
+
### github-actions
|
|
76
|
+
|
|
77
|
+
- Add GITHUB_USERNAME environment variable to CI workflows for better repository management ([2f47aaaa1](https://github.com/underpostnet/engine/commit/2f47aaaa14e08a30904ae2cc8187b8fabb74a906))
|
|
78
|
+
- Update CI workflows to use environment-specific configuration files for engine core, cyberia, lampp, prototype, and test ([5c94eedf5](https://github.com/underpostnet/engine/commit/5c94eedf59ddd0a575288f028dbe8588c2931766))
|
|
79
|
+
- Add conditional checks to skip commit and push if no changes are detected in CI workflows ([033afed27](https://github.com/underpostnet/engine/commit/033afed27cd0fe9e12d614fb15ef00e056140aa9))
|
|
80
|
+
- Add npm install step to CI workflows for engine core, cyberia, lampp, prototype, and test ([25457022f](https://github.com/underpostnet/engine/commit/25457022f22b3b7e53c1a156cb2a0a7d35c7cd83))
|
|
81
|
+
- Add sparse checkout and configuration updates for engine prototype workflows ([787cbac2b](https://github.com/underpostnet/engine/commit/787cbac2b3694c050335f69656cca4e77d2d62bd))
|
|
82
|
+
- Add prototype ci cd workflows ([147f9c90e](https://github.com/underpostnet/engine/commit/147f9c90e00d36a2f44453432849d5b15200c7f5))
|
|
83
|
+
|
|
84
|
+
### docs
|
|
85
|
+
|
|
86
|
+
- Refactor CLI documentation generation in buildCliDoc ([fd2ef99ba](https://github.com/underpostnet/engine/commit/fd2ef99bac6204bfc3f8188c9e3b9cfb1707f7b9))
|
|
87
|
+
- Update architecture and server documentation ([a3eefadd1](https://github.com/underpostnet/engine/commit/a3eefadd1a26c2c2e1fbed6a6c24fae2bfa21ccf))
|
|
88
|
+
- Refactor documentation for Cyberia and Underpost Platform ([36c8234df](https://github.com/underpostnet/engine/commit/36c8234df258f2af819d21db3da88019f195d354))
|
|
89
|
+
|
|
90
|
+
### bin-build
|
|
91
|
+
|
|
92
|
+
- Enhance build process by adding source repo validation and restoration; implement pullSourceRepo method for managing public source repositories ([7cf35bcd8](https://github.com/underpostnet/engine/commit/7cf35bcd889f5a690f75df03fc0a082ee15f2c87))
|
|
93
|
+
- Enhance build process by adding template rebuild option and refactoring build template logic; streamline deployment template assembly ([eb28b47f3](https://github.com/underpostnet/engine/commit/eb28b47f3d7b53b3f3209b5db763db6cd7abe419))
|
|
94
|
+
- Refactor build main entry logic related to CI workflows and build process for engine components ([d1aba687a](https://github.com/underpostnet/engine/commit/d1aba687a3b0b3b65ebd5ddaf6a32e14c591150b))
|
|
95
|
+
|
|
96
|
+
### catalog
|
|
97
|
+
|
|
98
|
+
- Refactor build process and introduce dynamic product catalogs for Cyberia and Prototype; enhance deployment template assembly and configuration syncing ([65dc9cc6b](https://github.com/underpostnet/engine/commit/65dc9cc6bdc39bf9482d26fec74730ff5a942ecd))
|
|
99
|
+
|
|
100
|
+
### engine-prototype
|
|
101
|
+
|
|
102
|
+
- Add deployment and proxy configurations for dd-prototype-development ([40549234c](https://github.com/underpostnet/engine/commit/40549234c9bae7b3bc62573d1df1104df6bce776))
|
|
103
|
+
|
|
104
|
+
### repository
|
|
105
|
+
|
|
106
|
+
- Refactor CI workflow and enhance repository management with sparse checkout functionality ([27485162d](https://github.com/underpostnet/engine/commit/27485162d728f4c4d1147b0141c3ebe278097043))
|
|
107
|
+
|
|
108
|
+
### engine
|
|
109
|
+
|
|
110
|
+
- Remove update defualt conf.js per deploy-id workflow ([746285d10](https://github.com/underpostnet/engine/commit/746285d10debbd30ed652275dad605a3210b7fd4))
|
|
111
|
+
|
|
112
|
+
### engine-core
|
|
113
|
+
|
|
114
|
+
- Remove no core src ([1a90ce0d7](https://github.com/underpostnet/engine/commit/1a90ce0d7742a88c794ed2d37392632cbf12e11c))
|
|
115
|
+
|
|
116
|
+
## New release v:3.2.12 (2026-05-31)
|
|
4
117
|
|
|
5
118
|
### docs
|
|
6
119
|
|