-
Notifications
You must be signed in to change notification settings - Fork 80
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
Provide default directory for js plugins #3070
Provide default directory for js plugins #3070
Conversation
Would be able to update and simplify https://github.com/deephaven/deephaven.io/pull/1947 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devinrsmith Can we log some feedback on what JS plugin directory was loaded? Right now it doesn't print anything, and as someone trying it out I don't know what directory it's checking, or what directory was loaded, etc.
For example, if I'm running:
DEEPHAVEN_DATA_DIR=/Users/bender/tmp/deephaven-data ./gradlew server-jetty-app:run
What directory is being used for js-plugins
? I have no idea, I tried putting a manifest.json
in /Users/bender/tmp/deephaven-data/js-plugins/manifest.json
and at /Users/bender/tmp/deephaven-data/storage/js-plugins/manifest.json
, and it didn't seem to pick it up. I really don't know where this is actually looking.
This is a fine feature request, irrespective of this PR IMO. Y̶o̶u̶ ̶c̶a̶n̶'̶t̶ ̶p̶a̶s̶s̶ ̶e̶n̶v̶i̶r̶o̶n̶m̶e̶n̶t̶ ̶v̶a̶r̶i̶a̶b̶l̶e̶s̶ ̶t̶h̶r̶o̶u̶g̶h̶ ̶ Edit: my bad, you can pass environment variables through |
@mofojed - if you try your previous run with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting DEEPHAVEN_CONFIG_DIR
instead of DEEPHAVEN_DATA_DIR
worked.
Labels indicate documentation is required. Issues for documentation have been opened: How-to: https://github.com/deephaven/deephaven.io/issues/2039 |
I'd like to consider moving towards a model where "if you follow directory conventions, you don't need to explicitly set configuration properties".
As a motivating example, I'd like consumers of our docker images to install a JS plugins without needing to explicitly include a configuration property (file or system property).
As it stands now, the user would either need to explicitly add
deephaven.prop
:COPY --link deephaven.prop /opt/deephaven/config/deephaven.prop
or, add a system property (which I want to try and discourage as much as possible):
This example is based off of deephaven-examples/deephaven-matplotlib-base#3