Skip to content
Snippets Groups Projects
Commit 42bf24e9 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

fix(1421): Upgrade to NodeJS 20, and Level 8 and abstract-level - close #1421

parent b639f1c4
No related branches found
No related tags found
No related merge requests found
Pipeline #32269 waiting for manual action
...@@ -22,14 +22,14 @@ workflow: ...@@ -22,14 +22,14 @@ workflow:
- server.ts - server.ts
.env: &env .env: &env
image: registry.duniter.org/docker/duniter-ci:v0.0.4 image: registry.duniter.org/docker/duniter-ci:v0.2.0
tags: tags:
- redshift - redshift
before_script: before_script:
- export NVM_DIR="$HOME/.nvm" - export NVM_DIR="$HOME/.nvm"
- . "$NVM_DIR/nvm.sh" - . "$NVM_DIR/nvm.sh"
- nvm install 10 - nvm install 20.2.0
- nvm use 10 - nvm use 20.2.0
- export RUSTFLAGS="-D warnings" - export RUSTFLAGS="-D warnings"
......
...@@ -35,9 +35,9 @@ Nvm: ...@@ -35,9 +35,9 @@ Nvm:
Check the required node version in the `package.json` file on line 5. Check the required node version in the `package.json` file on line 5.
If, for example, version 10 is expected, install and select it with the following command: If, for example, version 20 is expected, install and select it with the following command:
nvm install 10 && nvm use 10 nvm install 20 && nvm use 20
### Build the project and play automated tests ### Build the project and play automated tests
......
...@@ -74,9 +74,9 @@ Go to the root of the folder where you extracted the source code (or possibly cl ...@@ -74,9 +74,9 @@ Go to the root of the folder where you extracted the source code (or possibly cl
Check the required node version in the `package.json` file on line 5. Check the required node version in the `package.json` file on line 5.
If, for example, version 10 is expected, install and select it with the following command: If, for example, version 20 is expected, install and select it with the following command:
nvm install 10 && nvm use 10 nvm install 20 && nvm use 20
### Optionally add GUI ### Optionally add GUI
......
...@@ -15,13 +15,13 @@ You'll need nvm and rust: ...@@ -15,13 +15,13 @@ You'll need nvm and rust:
- [nvm install instructions](https://github.com/nvm-sh/nvm#installing-and-updating) - [nvm install instructions](https://github.com/nvm-sh/nvm#installing-and-updating)
- [rust install instructions](https://www.rust-lang.org/learn/get-started) - [rust install instructions](https://www.rust-lang.org/learn/get-started)
Once these tools are installed, use nvm to install node 10: Once these tools are installed, use nvm to install node 20:
nvm install 10 nvm install 20
Finally, before each work session on Duniteroxide, select Node 10: Finally, before each work session on Duniteroxide, select Node 10:
nvm use 10 nvm use 20
### Compile ### Compile
...@@ -31,7 +31,7 @@ Run the following command at the root of the repository: ...@@ -31,7 +31,7 @@ Run the following command at the root of the repository:
npm install npm install
### Test ### Test
Run the following command at the root of the repository: Run the following command at the root of the repository:
......
...@@ -6,7 +6,7 @@ export NVM_DIR="$HOME/.nvm" ...@@ -6,7 +6,7 @@ export NVM_DIR="$HOME/.nvm"
# Prepare # Prepare
NODE_VERSION=10.20.1 NODE_VERSION=20.2.0
ARCH="`uname -m | sed -e \"s/86_//\"`" ARCH="`uname -m | sed -e \"s/86_//\"`"
NVER="v$NODE_VERSION" NVER="v$NODE_VERSION"
DUNITER_TAG=$1 DUNITER_TAG=$1
......
...@@ -79,7 +79,7 @@ build_deb_pack() { ...@@ -79,7 +79,7 @@ build_deb_pack() {
# Install tools needed to build # Install tools needed to build
# ----------------------------- # -----------------------------
NODE_VERSION=10.20.1 NODE_VERSION=20.2.0
NVER="v${NODE_VERSION}" NVER="v${NODE_VERSION}"
DUNITER_TAG="v${1}" DUNITER_TAG="v${1}"
DUNITER_DEB_VER=" ${1}" DUNITER_DEB_VER=" ${1}"
......
set ADDON_VERSION=64 set ADDON_VERSION=64
set NW_VERSION=0.33.1 set NW_VERSION=0.77.0
set NODEJS_VERSION=10.11.0 set NODEJS_VERSION=20.2.0
set NW_RELEASE=v%NW_VERSION% set NW_RELEASE=v%NW_VERSION%
set NW=nwjs-%NW_RELEASE%-win-x64 set NW=nwjs-%NW_RELEASE%-win-x64
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Build Stage # Build Stage
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
FROM node:10-alpine as build FROM node:20-alpine as build
LABEL maintainer="elois <elois@duniter.org>" LABEL maintainer="elois <elois@duniter.org>"
LABEL version="0.1.0" LABEL version="0.1.0"
...@@ -34,7 +34,7 @@ RUN PATH=${HOME}/.cargo/bin:${PATH} \ ...@@ -34,7 +34,7 @@ RUN PATH=${HOME}/.cargo/bin:${PATH} \
# Final Stage # Final Stage
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
FROM node:10-alpine FROM node:20-alpine
# create group and user duniter # create group and user duniter
RUN addgroup -S -g 1111 duniter && \ RUN addgroup -S -g 1111 duniter && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment