Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an ability to use custom Node.js for running VS Code #120

Merged
merged 3 commits into from
Oct 6, 2022

Conversation

RomanNikitenko
Copy link
Contributor

@RomanNikitenko RomanNikitenko commented Sep 27, 2022

Issue: eclipse-che/che#21629, https://issues.redhat.com/browse/CRW-3261

At the moment for running VS Code che-code uses Node.js 16.14.0 that requires OpenSSL 1.1.1.
There is no problem when UBI 8 based image is used in a devfile (UBI 8 image uses 1.1.1 version of openssl). But it's impossible to start a workspace when UBI 9 based custom image is used (UBI 9 image uses 3.0.1 version of openssl). Please see screenshots here.

The changes allow a user to use an UBI 9 based custom image in a devfile. The requirements are:

  • install Node.js 16 which statically links against OpenSSL 3
  • provide VSCODE_NODEJS_RUNTIME_DIR environment variable with path to the installed node

image

At the same time within a custom image a user can use any version of Node.js as default - I don't see here a problem.

node_versions

Signed-off-by: Roman Nikitenko rnikiten@redhat.com

Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
@azatsarynnyy azatsarynnyy enabled auto-merge (squash) October 5, 2022 17:10
@azatsarynnyy azatsarynnyy merged commit c2f2c94 into che-incubator:main Oct 6, 2022
@che-bot che-bot added this to the 7.55 milestone Oct 6, 2022
@RomanNikitenko RomanNikitenko deleted the nodejs_ubi_9 branch October 6, 2022 09:00
azatsarynnyy pushed a commit that referenced this pull request Oct 7, 2022
* Add an ability to use custom Node.js for running VS Code

Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
azatsarynnyy pushed a commit that referenced this pull request Oct 9, 2022
* Add an ability to use custom Node.js for running VS Code

Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants