Skip to content

Commit

Permalink
Add an ability to use custom Node.js for running VS Code (#120)
Browse files Browse the repository at this point in the history
* Add an ability to use custom Node.js for running VS Code

Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
  • Loading branch information
RomanNikitenko authored Oct 6, 2022
1 parent 1fbf7c8 commit c2f2c94
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build/scripts/entrypoint-volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,11 @@ if [ -f /tmp/che/secret/ca.crt ]; then
export NODE_EXTRA_CA_CERTS=/tmp/che/secret/ca.crt
fi

if [ -z "$VSCODE_NODEJS_RUNTIME_DIR" ]; then
VSCODE_NODEJS_RUNTIME_DIR="$(pwd)"
fi

echo "Node.js dir for running VS Code: $VSCODE_NODEJS_RUNTIME_DIR"

# Launch che without connection-token, security is managed by Che
./node out/server-main.js --host "${CODE_HOST}" --port 3100 --without-connection-token
"$VSCODE_NODEJS_RUNTIME_DIR/node" out/server-main.js --host "${CODE_HOST}" --port 3100 --without-connection-token

0 comments on commit c2f2c94

Please sign in to comment.