Skip to content

Commit

Permalink
[Bug][Worker] Replace jre with jdk (#15764)
Browse files Browse the repository at this point in the history
Signed-off-by: Gallardot <[email protected]>
  • Loading branch information
Gallardot authored Mar 26, 2024
1 parent bcf1b67 commit 5466117
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/docs/en/guide/task/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
1 change: 1 addition & 0 deletions docs/docs/zh/guide/task/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ java任务类型有两种运行模式,这里以JAVA模式为例进行演示。

使用JAVA运行类型时代码中必须存在public类,可以不写package语句

基于安全原因,执行JAVA任务时,请使用环境管理功能配置JDK环境,例如`JAVA_HOME`等环境变量
2 changes: 1 addition & 1 deletion dolphinscheduler-worker/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5466117

Please sign in to comment.