From bedfbaef4fb287cca2a16ad065ca68b74c99b67b Mon Sep 17 00:00:00 2001 From: Luc Everse <luc@wukl.net> Date: Mon, 12 Sep 2022 14:30:12 +0200 Subject: [PATCH] Upgrade to Node 18 --- build-env.Dockerfile | 2 +- core/build.gradle | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build-env.Dockerfile b/build-env.Dockerfile index a58e771d6..901f66ab7 100644 --- a/build-env.Dockerfile +++ b/build-env.Dockerfile @@ -10,7 +10,7 @@ RUN sh -c 'apt-get update \ && apt-get install -y --no-install-recommends openjdk-11-jdk-headless python3 ruby ruby-dev \ build-essential libicu67 libicu-dev zlib1g zlib1g-dev cmake pkg-config libssl1.1 \ libssl-dev git python3-pip curl \ - && curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \ + && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ && apt-get install -y nodejs \ && pip3 install profanity-check pylint==2.14.5 \ && gem install -N github-linguist \ diff --git a/core/build.gradle b/core/build.gradle index a5f162205..0d6f1aed4 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -67,6 +67,7 @@ task initUi(type: Exec) { workingDir "${rootProject.projectDir}/ui" + environment 'NODE_OPTIONS', '--openssl-legacy-provider' commandLine 'npm', 'install' outputs.file("${uiRoot}/package-lock.json") @@ -77,6 +78,7 @@ task buildUi(type: Exec) { workingDir "${rootProject.projectDir}/ui" + environment 'NODE_OPTIONS', '--openssl-legacy-provider' commandLine 'npm', 'run', 'build' outputs.dir("${rootProject.projectDir}/ui/dist/") -- GitLab