Skip to content

Commit

Permalink
update node.js version from 20 to 22.7.0
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Pandey <[email protected]>
  • Loading branch information
aspandey committed Sep 2, 2024
1 parent 23add37 commit bd3a718
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.11.0
22.7.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"@types/jest": "29.5.12",
"@types/lodash": "4.17.7",
"@types/mongodb": "4.0.7",
"@types/node": "20.16.1",
"@types/node": "22.5.0",
"@types/pg": "8.11.6",
"@types/request": "2.48.12",
"eslint": "8.57.0",
Expand Down
8 changes: 4 additions & 4 deletions src/deploy/NVA_build/NooBaa.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ ENV PORT 8080
ENV SSL_PORT 8443
ENV ENDPOINT_PORT 6001
ENV ENDPOINT_SSL_PORT 6443
ENV WEB_NODE_OPTIONS ''
ENV BG_NODE_OPTIONS ''
ENV HOSTED_AGENTS_NODE_OPTIONS ''
ENV ENDPOINT_NODE_OPTIONS ''
ENV WEB_NODE_OPTIONS '--no-experimental-websocket'
ENV BG_NODE_OPTIONS '--no-experimental-websocket'
ENV HOSTED_AGENTS_NODE_OPTIONS '--no-experimental-websocket'
ENV ENDPOINT_NODE_OPTIONS '--no-experimental-websocket'

##############################################################
# Layers:
Expand Down
6 changes: 3 additions & 3 deletions src/deploy/NVA_build/noobaa_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ init_endpoint() {
fi

cd /root/node_modules/noobaa-core/
run_internal_process node --unhandled-rejections=warn ./src/s3/s3rver_starter.js
run_internal_process node --no-experimental-websocket --unhandled-rejections=warn ./src/s3/s3rver_starter.js
}

init_noobaa_server() {
Expand All @@ -214,14 +214,14 @@ init_noobaa_agent() {

cd /root/node_modules/noobaa-core/
prepare_agent_conf
run_internal_process node --unhandled-rejections=warn ./src/agent/agent_cli
run_internal_process node --no-experimental-websocket --unhandled-rejections=warn ./src/agent/agent_cli
}

migrate_dbs() {
fix_non_root_user

cd /root/node_modules/noobaa-core/
/usr/local/bin/node --unhandled-rejections=warn src/upgrade/migration_to_postgres.js
/usr/local/bin/node --no-experimental-websocket --unhandled-rejections=warn src/upgrade/migration_to_postgres.js
}

if [ "${RUN_INIT}" == "agent" ]
Expand Down

0 comments on commit bd3a718

Please sign in to comment.