This is an automated email from the ASF dual-hosted git repository.

xincheng 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 5466117838 [Bug][Worker] Replace jre with jdk (#15764)
5466117838 is described below

commit 54661178385e29b6898ab674f427f56c9a1f05e1
Author: Gallardot <[email protected]>
AuthorDate: Tue Mar 26 11:39:28 2024 +0800

    [Bug][Worker] Replace jre with jdk (#15764)
    
    Signed-off-by: Gallardot <[email protected]>
---
 docs/docs/en/guide/task/java.md                    | 2 ++
 docs/docs/zh/guide/task/java.md                    | 1 +
 dolphinscheduler-worker/src/main/docker/Dockerfile | 2 +-
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/docs/en/guide/task/java.md b/docs/docs/en/guide/task/java.md
index 5e9eeac7d4..cf6702ce3b 100644
--- a/docs/docs/en/guide/task/java.md
+++ b/docs/docs/en/guide/task/java.md
@@ -39,3 +39,5 @@ The main configuration parameters are as follows:
 ## Note
 
 When you run the task in JAVA execution mode, the public class must exist in 
the code, and you could omit writing a package statement.
+
+For security reasons, when executing JAVA tasks, please use the environment 
management module to configure the JDK environment, such as `JAVA_HOME` and 
other environment variables.
diff --git a/docs/docs/zh/guide/task/java.md b/docs/docs/zh/guide/task/java.md
index f6de14e3f6..3f29741acf 100644
--- a/docs/docs/zh/guide/task/java.md
+++ b/docs/docs/zh/guide/task/java.md
@@ -43,3 +43,4 @@ java任务类型有两种运行模式,这里以JAVA模式为例进行演示。
 
 使用JAVA运行类型时代码中必须存在public类,可以不写package语句
 
+基于安全原因,执行JAVA任务时,请使用环境管理功能配置JDK环境,例如`JAVA_HOME`等环境变量
diff --git a/dolphinscheduler-worker/src/main/docker/Dockerfile 
b/dolphinscheduler-worker/src/main/docker/Dockerfile
index 6eeb49b47d..38e8bd6a33 100644
--- a/dolphinscheduler-worker/src/main/docker/Dockerfile
+++ b/dolphinscheduler-worker/src/main/docker/Dockerfile
@@ -15,7 +15,7 @@
 # limitations under the License.
 #
 
-FROM eclipse-temurin:8-jre
+FROM eclipse-temurin:8-jdk
 
 ENV DOCKER true
 ENV TZ Asia/Shanghai

Reply via email to