Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/alert-manager/build/alert-handler.common.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ WORKDIR /usr/src/app
COPY ./src/alert-handler/package.json ./src/alert-handler/yarn.lock* ./src/alert-handler/.yarnrc.yml ./

RUN corepack enable && corepack install -g yarn@4.2.2
RUN yarn workspaces focus --production
RUN yarn install
RUN for dep in $(node -pe "Object.keys(require('./package.json').devDependencies || {}).join(' ')"); do \
rm -rf node_modules/$dep; \
done
Comment thread
hippogr marked this conversation as resolved.

COPY ./src/alert-handler .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ COPY ./src/job-status-change-notification/package.json ./src/job-status-change-n
COPY ./src/job-status-change-notification/openpaidbsdk ./openpaidbsdk

RUN corepack enable && corepack install -g yarn@4.2.2
RUN yarn workspaces focus --production
RUN yarn install
RUN for dep in $(node -pe "Object.keys(require('./package.json').devDependencies || {}).join(' ')"); do \
rm -rf node_modules/$dep; \
done
Comment thread
hippogr marked this conversation as resolved.

# Copy application source
COPY ./src/job-status-change-notification .
Expand Down
12 changes: 7 additions & 5 deletions src/alert-manager/src/alert-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"dependencies": {
"@kubernetes/client-node": "1.2.0",
"axios": "^1.15.0",
"axios": "^1.16.0",
"body-parser": "^2.2.1",
"cookie-parser": "^1.4.7",
"ejs": "^3.1.10",
Expand All @@ -46,7 +46,7 @@
"module-alias": "^2.2.3",
"nodemailer": "^8.0.5",
"winston": "2",
"ws": "^8.18.2"
"ws": "^8.20.1"
},
"overrides": {
"express@*": "5.2.1",
Expand All @@ -64,18 +64,20 @@
"@eslint/plugin-kit": "^0.3.3",
"qs": "^6.14.2",
"lodash": "^4.18.0",
"axios": "^1.15.0",
"axios": "^1.16.0",
"minimatch": "^10.2.3",
"form-data": "^4.0.4",
"underscore": "^1.13.8",
"path-to-regexp": "^8.4.0",
"brace-expansion": "^5.0.5",
"brace-expansion": "^5.0.6",
"mailparser": "^3.9.3",
"flatted": "^3.4.2",
"ajv": "^6.14.0",
"nodemailer": "^8.0.5",
"follow-redirects": "^1.16.0",
"ip-address": "^10.1.1"
"ip-address": "^10.1.1",
"ws": "^8.20.1",
"uuid": "11.1.1"
},
"scripts": {
"lint": "eslint .",
Expand Down
80 changes: 50 additions & 30 deletions src/alert-manager/src/alert-handler/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,15 @@ __metadata:
languageName: node
linkType: hard

"agent-base@npm:6":
version: 6.0.2
resolution: "agent-base@npm:6.0.2"
dependencies:
debug: "npm:4"
checksum: 10c0/dc4f757e40b5f3e3d674bc9beb4f1048f4ee83af189bae39be99f57bf1f48dde166a8b0a5342a84b5944ee8e6ed1e5a9d801858f4ad44764e84957122fe46261
languageName: node
linkType: hard

"agent-base@npm:^7.1.2":
version: 7.1.4
resolution: "agent-base@npm:7.1.4"
Expand Down Expand Up @@ -856,14 +865,15 @@ __metadata:
languageName: node
linkType: hard

"axios@npm:^1.15.0":
version: 1.15.2
resolution: "axios@npm:1.15.2"
"axios@npm:^1.16.0":
version: 1.16.1
resolution: "axios@npm:1.16.1"
dependencies:
follow-redirects: "npm:^1.15.11"
follow-redirects: "npm:^1.16.0"
form-data: "npm:^4.0.5"
https-proxy-agent: "npm:^5.0.1"
proxy-from-env: "npm:^2.1.0"
checksum: 10c0/4eeae0feeaa7fdc1ef24f81f8b378fdadedf4aebdd6bf224484675160f8744cf17b9b0d1c215279979940f7e8ce463beffa2f713099612e428eac238515c81d5
checksum: 10c0/2f77e37e6552bbff8a772d058fb09500198e9188c6b20dc799d82dbe12a8cb506f6eed4e4e62a9ba612a35cbab496faa26d68f9bff14a53af6d15c3e136391a7
languageName: node
linkType: hard

Expand Down Expand Up @@ -998,12 +1008,12 @@ __metadata:
languageName: node
linkType: hard

"brace-expansion@npm:^5.0.5":
version: 5.0.5
resolution: "brace-expansion@npm:5.0.5"
"brace-expansion@npm:^5.0.6":
version: 5.0.6
resolution: "brace-expansion@npm:5.0.6"
dependencies:
balanced-match: "npm:^4.0.2"
checksum: 10c0/4d238e14ed4f5cc9c07285550a41cef23121ca08ba99fa9eb5b55b580dcb6bf868b8210aa10526bdc9f8dc97f33ca2a7259039c4cc131a93042beddb424c48e3
checksum: 10c0/8c919869b90f61d533b341d3340be5ee4413232ea89b8246cbc2f38eb014f1d8182785c98a006eaf6111d02dc9eeffefdc240d5ac158625b2ed084dccd4bbf9b
languageName: node
linkType: hard

Expand Down Expand Up @@ -1303,16 +1313,7 @@ __metadata:
languageName: node
linkType: hard

"debug@npm:^3.2.7":
version: 3.2.7
resolution: "debug@npm:3.2.7"
dependencies:
ms: "npm:^2.1.1"
checksum: 10c0/37d96ae42cbc71c14844d2ae3ba55adf462ec89fd3a999459dec3833944cd999af6007ff29c780f1c61153bcaaf2c842d1e4ce1ec621e4fc4923244942e4a02a
languageName: node
linkType: hard

"debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4, debug@npm:^4.3.5, debug@npm:^4.4.0, debug@npm:^4.4.3":
"debug@npm:4, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4, debug@npm:^4.3.5, debug@npm:^4.4.0, debug@npm:^4.4.3":
version: 4.4.3
resolution: "debug@npm:4.4.3"
dependencies:
Expand All @@ -1324,6 +1325,15 @@ __metadata:
languageName: node
linkType: hard

"debug@npm:^3.2.7":
version: 3.2.7
resolution: "debug@npm:3.2.7"
dependencies:
ms: "npm:^2.1.1"
checksum: 10c0/37d96ae42cbc71c14844d2ae3ba55adf462ec89fd3a999459dec3833944cd999af6007ff29c780f1c61153bcaaf2c842d1e4ce1ec621e4fc4923244942e4a02a
languageName: node
linkType: hard

"deep-extend@npm:^0.6.0":
version: 0.6.0
resolution: "deep-extend@npm:0.6.0"
Expand Down Expand Up @@ -2533,6 +2543,16 @@ __metadata:
languageName: node
linkType: hard

"https-proxy-agent@npm:^5.0.1":
version: 5.0.1
resolution: "https-proxy-agent@npm:5.0.1"
dependencies:
agent-base: "npm:6"
debug: "npm:4"
checksum: 10c0/6dd639f03434003577c62b27cafdb864784ef19b2de430d8ae2a1d45e31c4fd60719e5637b44db1a88a046934307da7089e03d6089ec3ddacc1189d8de8897d1
languageName: node
linkType: hard

"i18n-locales@npm:^0.0.5":
version: 0.0.5
resolution: "i18n-locales@npm:0.0.5"
Expand Down Expand Up @@ -3593,7 +3613,7 @@ __metadata:
resolution: "pai-alert-handler@workspace:."
dependencies:
"@kubernetes/client-node": "npm:1.2.0"
axios: "npm:^1.15.0"
axios: "npm:^1.16.0"
body-parser: "npm:^2.2.1"
cookie-parser: "npm:^1.4.7"
dotenv: "npm:^16.5.0"
Expand All @@ -3613,7 +3633,7 @@ __metadata:
nodemailer: "npm:^8.0.5"
prettier: "npm:~3.5.3"
winston: "npm:2"
ws: "npm:^8.18.2"
ws: "npm:^8.20.1"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -4716,12 +4736,12 @@ __metadata:
languageName: node
linkType: hard

"uuid@npm:^9.0.1":
version: 9.0.1
resolution: "uuid@npm:9.0.1"
"uuid@npm:11.1.1":
version: 11.1.1
resolution: "uuid@npm:11.1.1"
bin:
uuid: dist/bin/uuid
checksum: 10c0/1607dd32ac7fc22f2d8f77051e6a64845c9bce5cd3dd8aa0070c074ec73e666a1f63c7b4e0f4bf2bc8b9d59dc85a15e17807446d9d2b17c8485fbc2147b27f9b
uuid: dist/esm/bin/uuid
checksum: 10c0/9e3af58eba872ece5a5e76f4773a94fc78a0ef2c2444c38dbe6b42f41dadf76c01850fd783604f27986f6195e6286aef064d45987d401b2a33127b98ddf7c0c5
languageName: node
linkType: hard

Expand Down Expand Up @@ -4900,9 +4920,9 @@ __metadata:
languageName: node
linkType: hard

"ws@npm:^8.18.2":
version: 8.18.3
resolution: "ws@npm:8.18.3"
"ws@npm:^8.20.1":
version: 8.21.0
resolution: "ws@npm:8.21.0"
peerDependencies:
bufferutil: ^4.0.1
utf-8-validate: ">=5.0.2"
Expand All @@ -4911,7 +4931,7 @@ __metadata:
optional: true
utf-8-validate:
optional: true
checksum: 10c0/eac918213de265ef7cb3d4ca348b891a51a520d839aa51cdb8ca93d4fa7ff9f6ccb339ccee89e4075324097f0a55157c89fa3f7147bde9d8d7e90335dc087b53
checksum: 10c0/ef4a243476283fc49bc7550966c4af4aa0eef56273837211e700de3b664e08604a760cdddcb5ba43c049140e74ccfec5b0ee0bb439e08c2adf9138902fdde5f9
languageName: node
linkType: hard

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@
"underscore": ">=1.13.8",
"path-to-regexp": ">=8.4.0",
"nodemailer": ">=8.0.4",
"brace-expansion": "^5.0.5",
"brace-expansion": "5.0.6",
"mailparser": ">=3.9.3",
"validator": "^13.15.22",
"semver": "^6.3.1",
"follow-redirects": "^1.16.0",
"axios": "^1.15.1",
"fast-uri": "^3.1.1"
"fast-uri": "^3.1.1",
"uuid": "11.1.1"
},
"scripts": {
"lint": "eslint .",
Expand Down
Loading
Loading