-
Notifications
You must be signed in to change notification settings - Fork 885
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
[FEATURE] Add support for OPENSEARCH_DASHBOARDS_NODE_HOME (or OSD_NODE_HOME) #1219
Comments
I am coming from opensearch-project/OpenSearch#2001 (comment), but I am not convinced that users want to use an external version of node. |
@jcgraybill Do you have links to any mentions of users wanting to run Dashboards with a different/system version of node than the one bundled? |
This is already possible - see
I thought we were just discussing how this will work. Are you looking to make a case that it should be removed altogether? |
I am not saying that we should remove the code above. This code makes it possible to use a specific version of node by removing node from the distribution, and then adding it to PATH. It feels like an (undocumented) side effect as opposed to a feature that lets me deliberately state which node.js I'd like to use. Most use-cases seem to want to deliberately switch from one to another, especially when there are multiple versions of node installed on the system. So this feature request is to discuss adding the environment variable that lets me control what node.js to use without any ambiguity. |
Nb this PR #1189 |
I'm not sure I fully follow what the ask is here @dblock. We use the .nvmrc file that explicitly contains the node version being used. If you do |
@boktorbb-amzn To avoid any ambiguity, I am talking about users installing OpenSearch Dashboards, not during development. Is A bit more background. Many users don't use the bundled version of Java in OpenSearch, but use the globally provided one. Thus OpenSearch distributes a no-JDK version and officially supports multiple versions of Java. Does this also happen for OpenSearch Dashboards wrt node.js? Note #1219 (comment) which shows that Dashboards already supports a global version of node.js, but if you're upgrading this is not helpful. |
I don't have data to support that this or isn't a common setup for many users. Original when that code was introduced I believe it was due to the build not correctly bundling Node for that specific operating system so then it would default to using the Node within the system. Nothing does stop from deleting the Node folder so then it defaults to using the global version of Node. We could support this because it makes life easier but I do think it should be documented that the code was developed, built, and verified it was done with a specific version of Node. So this setting could be used but have some consequences if there were any API changes. However, even if this variable is set, should we still prevent them from running if they try to run any node version that isn't just a different in patch versions? |
Looks like #1189 is timely and awesome. |
bumping to |
I am not sure I understand the motivation behind this. I would support adding
Am I missing something? PS, I feel the OpenSearch issue was that they had the variable erroneously documented and instead of revoking the docs, they decided to honor it. If this is purely for consistency, i could support it... reluctantly; Dashboards never had |
Is your feature request related to a problem? Please describe.
Similar to opensearch-project/OpenSearch#1872, add support for a
OPENSEARCH_DASHBOARDS_NODE_HOME
orOSD_NODE_HOME
.A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
This would enable a similar affordance to OpenSearch to configure an external version of node.
Additional context
I am coming from opensearch-project/OpenSearch#2001 (comment).
The text was updated successfully, but these errors were encountered: