This is an automated email from the ASF dual-hosted git repository.
zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 80d8439652 [Fix-17785] Fix install_plugsins.sh cannot work in docker
container (#17812)
80d8439652 is described below
commit 80d8439652bdd97199454e30531976c1798616d7
Author: xiangzihao <[email protected]>
AuthorDate: Mon Dec 22 23:07:40 2025 +0800
[Fix-17785] Fix install_plugsins.sh cannot work in docker container (#17812)
---
dolphinscheduler-dist/src/main/docker/alert-server.dockerfile | 6 ++----
dolphinscheduler-dist/src/main/docker/api-server.dockerfile | 6 ++----
dolphinscheduler-dist/src/main/docker/master-server.dockerfile | 6 ++----
dolphinscheduler-dist/src/main/docker/standalone-server.dockerfile | 6 ++----
dolphinscheduler-dist/src/main/docker/tools.dockerfile | 6 ++----
dolphinscheduler-dist/src/main/docker/worker-server.dockerfile | 6 ++----
6 files changed, 12 insertions(+), 24 deletions(-)
diff --git a/dolphinscheduler-dist/src/main/docker/alert-server.dockerfile
b/dolphinscheduler-dist/src/main/docker/alert-server.dockerfile
index 26e39c5447..abc3120582 100644
--- a/dolphinscheduler-dist/src/main/docker/alert-server.dockerfile
+++ b/dolphinscheduler-dist/src/main/docker/alert-server.dockerfile
@@ -28,10 +28,8 @@ RUN apt update ; \
WORKDIR $DOLPHINSCHEDULER_HOME
COPY ./target/apache-dolphinscheduler-*-bin.tar.gz $DOLPHINSCHEDULER_HOME
-RUN tar -zxvf apache-dolphinscheduler-*-bin.tar.gz ; \
- rm -rf apache-dolphinscheduler-*-bin.tar.gz ; \
- mv apache-dolphinscheduler-*-bin/* . ; \
- rm -rf apache-dolphinscheduler-*-bin
+RUN tar -zxvf apache-dolphinscheduler-*-bin.tar.gz --strip-components=1 ; \
+ rm -f apache-dolphinscheduler-*-bin.tar.gz
EXPOSE 12345 25333
diff --git a/dolphinscheduler-dist/src/main/docker/api-server.dockerfile
b/dolphinscheduler-dist/src/main/docker/api-server.dockerfile
index 941a46e79a..6abb7c2c27 100644
--- a/dolphinscheduler-dist/src/main/docker/api-server.dockerfile
+++ b/dolphinscheduler-dist/src/main/docker/api-server.dockerfile
@@ -28,10 +28,8 @@ RUN apt update ; \
WORKDIR $DOLPHINSCHEDULER_HOME
COPY ./target/apache-dolphinscheduler-*-bin.tar.gz $DOLPHINSCHEDULER_HOME
-RUN tar -zxvf apache-dolphinscheduler-*-bin.tar.gz ; \
- rm -rf apache-dolphinscheduler-*-bin.tar.gz ; \
- mv apache-dolphinscheduler-*-bin/* . ; \
- rm -rf apache-dolphinscheduler-*-bin
+RUN tar -zxvf apache-dolphinscheduler-*-bin.tar.gz --strip-components=1 ; \
+ rm -f apache-dolphinscheduler-*-bin.tar.gz
EXPOSE 12345 25333
diff --git a/dolphinscheduler-dist/src/main/docker/master-server.dockerfile
b/dolphinscheduler-dist/src/main/docker/master-server.dockerfile
index a89b6348b0..46c6f869b2 100644
--- a/dolphinscheduler-dist/src/main/docker/master-server.dockerfile
+++ b/dolphinscheduler-dist/src/main/docker/master-server.dockerfile
@@ -28,10 +28,8 @@ RUN apt update ; \
WORKDIR $DOLPHINSCHEDULER_HOME
COPY ./target/apache-dolphinscheduler-*-bin.tar.gz $DOLPHINSCHEDULER_HOME
-RUN tar -zxvf apache-dolphinscheduler-*-bin.tar.gz ; \
- rm -rf apache-dolphinscheduler-*-bin.tar.gz ; \
- mv apache-dolphinscheduler-*-bin/* . ; \
- rm -rf apache-dolphinscheduler-*-bin
+RUN tar -zxvf apache-dolphinscheduler-*-bin.tar.gz --strip-components=1 ; \
+ rm -f apache-dolphinscheduler-*-bin.tar.gz
EXPOSE 12345 25333
diff --git a/dolphinscheduler-dist/src/main/docker/standalone-server.dockerfile
b/dolphinscheduler-dist/src/main/docker/standalone-server.dockerfile
index 0abd547ea2..b6076b1bdf 100644
--- a/dolphinscheduler-dist/src/main/docker/standalone-server.dockerfile
+++ b/dolphinscheduler-dist/src/main/docker/standalone-server.dockerfile
@@ -28,10 +28,8 @@ RUN apt update ; \
WORKDIR $DOLPHINSCHEDULER_HOME
COPY ./target/apache-dolphinscheduler-*-bin.tar.gz $DOLPHINSCHEDULER_HOME
-RUN tar -zxvf apache-dolphinscheduler-*-bin.tar.gz ; \
- rm -rf apache-dolphinscheduler-*-bin.tar.gz ; \
- mv apache-dolphinscheduler-*-bin/* . ; \
- rm -rf apache-dolphinscheduler-*-bin
+RUN tar -zxvf apache-dolphinscheduler-*-bin.tar.gz --strip-components=1 ; \
+ rm -f apache-dolphinscheduler-*-bin.tar.gz
EXPOSE 12345 25333
diff --git a/dolphinscheduler-dist/src/main/docker/tools.dockerfile
b/dolphinscheduler-dist/src/main/docker/tools.dockerfile
index c50d91bc92..e9d2c79139 100644
--- a/dolphinscheduler-dist/src/main/docker/tools.dockerfile
+++ b/dolphinscheduler-dist/src/main/docker/tools.dockerfile
@@ -29,9 +29,7 @@ WORKDIR $DOLPHINSCHEDULER_HOME
# see doc:
https://dolphinscheduler.apache.org/en-us/docs/dev/user_doc/guide/upgrade.html
COPY ./target/apache-dolphinscheduler-*-bin.tar.gz $DOLPHINSCHEDULER_HOME
-RUN tar -zxvf apache-dolphinscheduler-*-bin.tar.gz ; \
- rm -rf apache-dolphinscheduler-*-bin.tar.gz ; \
- mv apache-dolphinscheduler-*-bin/* . ; \
- rm -rf apache-dolphinscheduler-*-bin
+RUN tar -zxvf apache-dolphinscheduler-*-bin.tar.gz --strip-components=1 ; \
+ rm -f apache-dolphinscheduler-*-bin.tar.gz
ENTRYPOINT [ "/bin/bash" ]
diff --git a/dolphinscheduler-dist/src/main/docker/worker-server.dockerfile
b/dolphinscheduler-dist/src/main/docker/worker-server.dockerfile
index 4f4dfdb7cc..f3c32baafb 100644
--- a/dolphinscheduler-dist/src/main/docker/worker-server.dockerfile
+++ b/dolphinscheduler-dist/src/main/docker/worker-server.dockerfile
@@ -28,10 +28,8 @@ RUN apt update ; \
WORKDIR $DOLPHINSCHEDULER_HOME
COPY ./target/apache-dolphinscheduler-*-bin.tar.gz $DOLPHINSCHEDULER_HOME
-RUN tar -zxvf apache-dolphinscheduler-*-bin.tar.gz ; \
- rm -rf apache-dolphinscheduler-*-bin.tar.gz ; \
- mv apache-dolphinscheduler-*-bin/* . ; \
- rm -rf apache-dolphinscheduler-*-bin
+RUN tar -zxvf apache-dolphinscheduler-*-bin.tar.gz --strip-components=1 ; \
+ rm -f apache-dolphinscheduler-*-bin.tar.gz
EXPOSE 12345 25333