Skip to content

Commit 7d1fb6a

Browse files
authored
BT-628 Upgrade node to 14 (#747)
* Ping CI * Isolated upgrade to 14 * Remove comment * Add comment
1 parent 8eb82ed commit 7d1fb6a

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.circleci/config.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,12 @@ jobs:
5050
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
5151
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
5252
53-
# The CI code that ran on the previous "latest" Circle machine image used the nvm included on that image
54-
# to install what that version of nvm considered to be the LTS version of Node. However the current Node LTS
55-
# is now 16 and some of JMUI's dependencies break with Node 14+, so install Node 12 explicitly.
56-
#
57-
# npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
58-
nvm install 12
53+
nvm install 14
5954
6055
cd ui
6156
npm install
6257
63-
# node-sass was apparently built for Node 6 and requires this extra step for Node 12.
58+
# node-sass was apparently built for Node 6 and requires this extra step for Node 14.
6459
npm rebuild node-sass
6560
6661
npm install -g @angular/cli@1.7.4
@@ -79,7 +74,7 @@ jobs:
7974
# nvm setup commands and Node install reprised
8075
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
8176
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
82-
nvm install 12
77+
nvm install 14
8378
ng lint --type-check
8479
- run:
8580
name: Run UI unit tests
@@ -88,7 +83,7 @@ jobs:
8883
# nvm setup commands and Node install reprised
8984
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
9085
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
91-
nvm install 12
86+
nvm install 14
9287
ng test --single-run -sm=false --browsers=ChromeHeadless
9388
- run:
9489
name: Ensure the UI builds for prod
@@ -100,7 +95,7 @@ jobs:
10095
# nvm setup commands and Node install reprised
10196
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
10297
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
103-
nvm install 12
98+
nvm install 14
10499
ng build --target=production --environment=dev
105100
106101
backends:

ui/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ADD ./ /job-manager
66

77
RUN /bin/bash -c scripts/rebuild_swagger.sh
88

9-
FROM us.gcr.io/broad-dsp-gcr-public/base/nodejs:12-debian
9+
FROM us.gcr.io/broad-dsp-gcr-public/base/nodejs:14-debian
1010

1111
WORKDIR /ui
1212

ui/Dockerfile.dev

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Note: This is the dockerfile for development purposes
22

3+
# We are aware that some dev dependencies are broken in node 14, for example chokidar
4+
# npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+.
35
FROM node:14
46

57
# Install python 2, needed for npm packages

0 commit comments

Comments
 (0)