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:
- server.ts
.env: &env
image: registry.duniter.org/docker/duniter-ci:v0.0.4
image: registry.duniter.org/docker/duniter-ci:v0.2.0
tags:
- redshift
before_script:
- export NVM_DIR="$HOME/.nvm"
- . "$NVM_DIR/nvm.sh"
- nvm install 10
- nvm use 10
- nvm install 20.2.0
- nvm use 20.2.0
- export RUSTFLAGS="-D warnings"
......
......@@ -35,9 +35,9 @@ Nvm:
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
......
......@@ -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.
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
......
......@@ -15,13 +15,13 @@ You'll need nvm and rust:
- [nvm install instructions](https://github.com/nvm-sh/nvm#installing-and-updating)
- [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:
nvm use 10
nvm use 20
### Compile
......@@ -31,7 +31,7 @@ Run the following command at the root of the repository:
npm install
### Test
### Test
Run the following command at the root of the repository:
......
......@@ -6,7 +6,7 @@ export NVM_DIR="$HOME/.nvm"
# Prepare
NODE_VERSION=10.20.1
NODE_VERSION=20.2.0
ARCH="`uname -m | sed -e \"s/86_//\"`"
NVER="v$NODE_VERSION"
DUNITER_TAG=$1
......
......@@ -79,7 +79,7 @@ build_deb_pack() {
# Install tools needed to build
# -----------------------------
NODE_VERSION=10.20.1
NODE_VERSION=20.2.0
NVER="v${NODE_VERSION}"
DUNITER_TAG="v${1}"
DUNITER_DEB_VER=" ${1}"
......
set ADDON_VERSION=64
set NW_VERSION=0.33.1
set NODEJS_VERSION=10.11.0
set NW_VERSION=0.77.0
set NODEJS_VERSION=20.2.0
set NW_RELEASE=v%NW_VERSION%
set NW=nwjs-%NW_RELEASE%-win-x64
......
......@@ -2,7 +2,7 @@
# Build Stage
# ------------------------------------------------------------------------------
FROM node:10-alpine as build
FROM node:20-alpine as build
LABEL maintainer="elois <elois@duniter.org>"
LABEL version="0.1.0"
......@@ -34,7 +34,7 @@ RUN PATH=${HOME}/.cargo/bin:${PATH} \
# Final Stage
# ------------------------------------------------------------------------------
FROM node:10-alpine
FROM node:20-alpine
# create group and user 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