-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[DSIP-38] Add plugin directory in binary package #16613
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
...src/main/java/org/apache/dolphinscheduler/plugin/alert/prometheus/PrometheusAlertSender.java
Outdated
Show resolved
Hide resolved
@@ -477,64 +507,6 @@ | |||
<groupId>org.codehaus.mojo</groupId> | |||
<artifactId>exec-maven-plugin</artifactId> | |||
<version>${exec-maven-plugin.version}</version> | |||
<executions> |
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.
Why remove this?
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.
Move docker build logic to the dolphinscheduler-dist
module since docker build logic refactored.
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 |
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 use maven assembly plugin to manage the plugin directory
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.
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 |
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.
LGTM
Seems there were some network issues when I clicked |
Purpose of the pull request
close #16096
close #16097
Brief change log
dolphinscheduler-common
provided fromdolphinscheduler-spi
anddolphinscheduler-plugin
module.API-Test-Result
to 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