Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 2ecb1871 authored by Jean-François HOVINNE's avatar Jean-François HOVINNE
Browse files

feat: Add Node.js 23.x support (fixes #38)

parent 3b7a4ad8
No related branches found
Tags 2.4.9
1 merge request!38feat: Add Node.js 23.x support (fixes #38)
......@@ -22,15 +22,15 @@ Optionally, in order to install a specific version from a downloadable archive,
- `nodejs_checksum`: The archive checksum
- `nodejs_install_path`: The path where Node.js will be installed
About Node.js 18.x, 20.x and 22.x on Amazon Linux 2
---------------------------------------------------
About Node.js 18.x, 20.x, 22.x and 23.x on Amazon Linux 2
---------------------------------------------------------
Official Node.js 18.x, 20.x and 22.x pre-built binaries cannot be used on Amazon Linux 2,
Official Node.js 18.x, 20.x, 22.x and 23.x pre-built binaries cannot be used on Amazon Linux 2,
due to binary incompatibilities (missing glibc symbol versions).
AWS recommends to build those Node.js versions from source, when using Amazon Linux 2 (AL2).
Pre-built Node.js 18x, 20.x and 22.x binaries for Amazon Linux 2 can be found at
Pre-built Node.js 18x, 20.x, 22.x and 23.x binaries for Amazon Linux 2 can be found at
https://code.europa.eu/ecgalaxy/amazonlinux2-nodejs/-/packages
They are downloaded by this Ansible role (when executed on AL2),
......@@ -43,7 +43,7 @@ You may want to update your `$PATH` as well, pointing to the `/opt/nodejs/<nodej
Usage with `nvm` has been tested successfully; the command `nvm use system` will correctly point to the "global"
Node.js version (saved into `/opt/nodejs/<nodejs_version>`).
You can also execute this role to globally install 18.x, 20.x and 22.x, then overwrite the contents of
You can also execute this role to globally install 18.x, 20.x, 22.x and 23.x then overwrite the contents of
`~/.nvm/versions/node/v<nodejs_version>` for each, which will allow switching from one version to another
with `nvm use`.
......@@ -69,9 +69,9 @@ To globally install the default Node.js version:
bash <(curl -s https://code.europa.eu/-/snippets/1/raw/main/ansible-role.sh) ecgalaxy.nodejs
To globally install Node.js 18.x:
To globally install Node.js 22.x:
bash <(curl -s https://code.europa.eu/-/snippets/1/raw/main/ansible-role.sh) ecgalaxy.nodejs --extra-vars '{"nodejs_version":"18.x"}'
bash <(curl -s https://code.europa.eu/-/snippets/1/raw/main/ansible-role.sh) ecgalaxy.nodejs --extra-vars '{"nodejs_version":"22.x"}'
See [ansible-role](https://code.europa.eu/-/snippets/1) for instructions.
......
# Releases
## 2.5.x
- Node.js 23.x support for Amazon Linux 2, Ubuntu 20.04 and 22.04 added.
## 2.4.x
- Node.js 22.x support added.
......
......@@ -9,9 +9,9 @@
vars:
nodejs_version: "{{ version }}"
loop:
- "22.x"
- "18.x"
- "23.x"
- "20.x"
- "22.x"
loop_control:
loop_var: version
environment:
......
......@@ -11,6 +11,13 @@ platforms:
http_proxy: "${http_proxy}"
https_proxy: "${https_proxy}"
no_proxy: "${no_proxy}"
- name: ubuntu2004-${CI_JOB_ID:-0}
image: code.europa.eu:4567/ecgalaxy/ubuntu2004-ansible:latest
pre_build_image: true
environment:
http_proxy: "${http_proxy}"
https_proxy: "${https_proxy}"
no_proxy: "${no_proxy}"
- name: ubuntu2204-${CI_JOB_ID:-0}
image: code.europa.eu:4567/ecgalaxy/ubuntu2204-ansible:latest
pre_build_image: true
......
......@@ -17,6 +17,12 @@
nodejs_checksum: "sha256:376be29911f9e3bc312903208b31607edd524d2cc5e032e68a6f9c423b8b4570"
when: nodejs_version_major | int == 22
- name: Set Node.js release
ansible.builtin.set_fact:
nodejs_release: "23.0.0"
nodejs_checksum: "sha256:15a524f40761c4c42ca8fbc2b3979884e314f74ca25dc964cfc03e1eb4dd7078"
when: nodejs_version_major | int == 23
- name: Set artifact download URL
ansible.builtin.set_fact:
nodejs_download_url: "https://code.europa.eu/api/v4/projects/569/packages/generic/amazonlinux2-nodejs/{{ nodejs_release }}/nodejs-v{{ nodejs_release }}.tar.gz"
......
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