[DSIP-38] Add plugin directory in binary package#16613
Merged
SbloodyS merged 47 commits intoapache:devfrom Sep 23, 2024
Merged
Conversation
...hinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/config/IPropertyDelegate.java
Fixed
Show fixed
Hide fixed
...hinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/config/IPropertyDelegate.java
Fixed
Show fixed
Hide fixed
...hinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/config/IPropertyDelegate.java
Fixed
Show fixed
Hide fixed
...hinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/config/IPropertyDelegate.java
Fixed
Show fixed
Hide fixed
...hinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/config/IPropertyDelegate.java
Fixed
Show fixed
Hide fixed
dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/utils/FileUtils.java
Fixed
Show fixed
Hide fixed
dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/utils/FileUtils.java
Fixed
Show fixed
Hide fixed
dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/utils/JSONUtils.java
Fixed
Show fixed
Hide fixed
dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/utils/JSONUtils.java
Fixed
Show fixed
Hide fixed
dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/utils/JSONUtils.java
Fixed
Show fixed
Hide fixed
ruanwenjun
reviewed
Sep 20, 2024
...src/main/java/org/apache/dolphinscheduler/plugin/alert/prometheus/PrometheusAlertSender.java
Show resolved
Hide resolved
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>exec-maven-plugin</artifactId> | ||
| <version>${exec-maven-plugin.version}</version> | ||
| <executions> |
Member
Author
There was a problem hiding this comment.
Move docker build logic to the dolphinscheduler-dist module since docker build logic refactored.
Comment on lines
+39
to
+44
| for plugin_path in ${PLUGINS_PATH[@]} | ||
| do | ||
| cd $BIN_DIR/plugins/$plugin_path | ||
| find ./* -name "*.jar" | xargs -I {} mv {} ./ | ||
| ls -d */ | xargs -I {} rm -rf {} | ||
| done |
Member
There was a problem hiding this comment.
We should use maven assembly plugin to manage the plugin directory
Member
Author
There was a problem hiding this comment.
Assemby packaged directory:
- plugins
- alert-plugins
- dolphinscheduler-alert-dingtalk/taget/dolphinscheduler-alert-dingtalk-shade.jar
- alert-plugins
Directory processed with shell:
- plugins
- alert-plugins
- dolphinscheduler-alert-dingtalk-shade.jar
- alert-plugins
Assemby fuzzy matching directory can't remove the file path, so it needs secondary processing with shell.
dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/bin/start.sh
Show resolved
Hide resolved
3ca1e61 to
319bba4
Compare
|
Please retry analysis of this Pull-Request directly on SonarCloud |
EricGao888
approved these changes
Sep 23, 2024
EricGao888
approved these changes
Sep 23, 2024
EricGao888
approved these changes
Sep 23, 2024
Member
|
Seems there were some network issues when I clicked |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of the pull request
close #16096
close #16097
Brief change log
dolphinscheduler-commonprovided fromdolphinscheduler-spianddolphinscheduler-pluginmodule.API-Test-Resultto mergeable check.Then the new binary package will be like
binary package size
before: 1.2G
after(without plugins directory): 450M
Todo
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
Pull Request Notice
Pull Request Notice
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md