-
Notifications
You must be signed in to change notification settings - Fork 277
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
[Build] bundle OpenSearch Dashboards #590
[Build] bundle OpenSearch Dashboards #590
Conversation
7b2665c
to
b5f3140
Compare
Previous PR: #435 |
508c001
to
466268d
Compare
Produce an OpenSearch Dashboards bundle with plugins provided by a manifest. This requires the manifest to be in order with plugins first and then Dashboards being last. The plugins will need to pulled down and placed in the plugins folder. Then we need to bootstrap to generate the modules so that we can actually install the plugins to the release build. What is missing or not verified * Environment setup, this requires nvm and yarn to be already set up. We will need to set that up. * Dropping the custom config into the bundle * Signing of the artifact * Tests Related Issue: opensearch-project#158 Signed-off-by: Kawika Avilla <[email protected]>
466268d
to
4acf66c
Compare
Codecov Report
@@ Coverage Diff @@
## main #590 +/- ##
==========================================
- Coverage 82.65% 82.46% -0.19%
==========================================
Files 61 61
Lines 1660 1671 +11
==========================================
+ Hits 1372 1378 +6
- Misses 288 293 +5
Continue to review full report at Codecov.
|
Good. I can take the refactoring of the dashboards |
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.
This is nice, love to see Dashboards coming along quickly.
mkdir -p $OUTPUT/plugins | ||
PLUGIN_NAME=$(basename "$PWD") | ||
# TODO: [CLEANUP] Needed OpenSearch Dashboards git repo to build the required modules for plugins | ||
# This makes it so there is a dependency on having Dashboards pulled already. | ||
cp -r ../$PLUGIN_NAME/ ../OpenSearch-Dashboards/plugins | ||
echo "BUILD MODULES FOR $PLUGIN_NAME" | ||
(cd ../OpenSearch-Dashboards && yarn osd bootstrap) | ||
echo "BUILD RELEASE ZIP FOR $PLUGIN_NAME" | ||
(cd ../OpenSearch-Dashboards/plugins/$PLUGIN_NAME && yarn plugin-helpers build) | ||
echo "COPY $PLUGIN_NAME.zip" | ||
cp -r ../OpenSearch-Dashboards/plugins/$PLUGIN_NAME/build/$PLUGIN_NAME-$VERSION.zip $OUTPUT/plugins/ | ||
else | ||
./gradlew assemble --no-daemon --refresh-dependencies -DskipTests=true -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT | ||
|
||
zipPath=$(find . -path \*build/distributions/*.zip) | ||
distributions="$(dirname "${zipPath}")" | ||
|
||
echo "COPY ${distributions}/*.zip" | ||
mkdir -p $OUTPUT/plugins | ||
cp ${distributions}/*.zip ./$OUTPUT/plugins | ||
fi |
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.
We should test these scripts as part of our CI workflows.
A follow up for both OpenSearch and Dashboards.
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.
Opened up an issue: #591
Description
Produce an OpenSearch Dashboards bundle with plugins provided by a manifest.
This requires the manifest to be in order with plugins first and then Dashboards
being last. The plugins will need to pulled down and placed in the plugins
folder. Then we need to bootstrap to generate the modules so that we can actually
install the plugins to the release build.
What is missing or not verified
We will need to set that up.
Signed-off-by: Kawika Avilla [email protected]
Issues Resolved
Partial #158
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.