Skip to content

Commit

Permalink
[chore] bump backend node engine (#14034)
Browse files Browse the repository at this point in the history
* [chore] bump backend node engine

- bump to v20, latest LTS

* [chore] replaced node versions in docs
  • Loading branch information
Kharonus authored Nov 2, 2023
1 parent fc6f39f commit 029c059
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docker/ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ARG RUBY_VERSION
FROM ruby:${RUBY_VERSION}-bullseye

ENV NODE_VERSION="16.17.0"
ENV NODE_VERSION="20.9.0"
ENV BUNDLER_VERSION="2.4.21"
ENV DEBIAN_FRONTEND=noninteractive
ENV BUNDLE_WITHOUT="development:production:docker"
Expand Down
6 changes: 5 additions & 1 deletion docker/dev/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ARG DEV_GID=1001

ENV USER=dev
ENV RAILS_ENV=development
ENV NODE_MAJOR=20

ENV BUNDLER_VERSION "2.4.7"

Expand All @@ -27,7 +28,10 @@ RUN apt-get update -qq && \

# Setup node source and install nodejs. Needed for running certain scripts in backend container,
# as the `./scripts/api/validate_spec`.
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get install -y nodejs

# Install watchexec for continuous test execution.
Expand Down
2 changes: 1 addition & 1 deletion docker/dev/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.15
FROM node:20.9
MAINTAINER [email protected]

ARG DEV_UID=1000
Expand Down
2 changes: 1 addition & 1 deletion docker/prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG RUBY_VERSION="3.2.2"
ARG NODE_VERSION="16.17.0"
ARG NODE_VERSION="20.9.0"
ARG BUNDLER_VERSION="2.4.7"
ARG DEBIAN_FRONTEND=noninteractive

Expand Down
2 changes: 1 addition & 1 deletion docker/pullpreview-storybook/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.17 as build
FROM node:20.9 as build

COPY . /build
WORKDIR /build/frontend
Expand Down
10 changes: 5 additions & 5 deletions docs/development/development-environment-osx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ $ nodenv init

You can find the latest LTS version here: [nodejs.org/en/download](https://nodejs.org/en/download/)

At the time of writing this is v16.17.0. Install and activate it with:
At the time of writing this is v20.9.0. Install and activate it with:

```shell
nodenv install 16.17.0
nodenv global 16.17.0
nodenv install 20.9.0
nodenv global 20.9.0
```

### Update NPM to the latest version
Expand All @@ -129,10 +129,10 @@ $ bundler --version
Bundler version 2.4.7

node --version
v16.17.0
v20.9.0

npm --version
8.12.1
10.1.0
```

# Install OpenProject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ time to finish.
To check our Node installation we run `node --version`. It should output something very similar to:

```
v16.17.0
v20.9.0
```

## Installation of OpenProject
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"private": true,
"engines": {
"node": "~16.17.0",
"npm": "~8.12.1"
"node": "^20.9.0",
"npm": "^10.1.0"
},
"devDependencies": {
"@redocly/openapi-cli": "^1.0.0-beta.80",
Expand Down

0 comments on commit 029c059

Please sign in to comment.