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

chengshiwen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 5e03479  Optimize the docs to build docker image (#349)
5e03479 is described below

commit 5e03479e8d3b6c7e017bcf19fcdc5bdc2020ab79
Author: Shiwen Cheng <[email protected]>
AuthorDate: Fri Apr 30 19:22:19 2021 +0800

    Optimize the docs to build docker image (#349)
---
 docs/en-us/1.3.6/user_doc/docker-deployment.md | 21 ++++++++++++++++-----
 docs/zh-cn/1.3.6/user_doc/docker-deployment.md | 21 ++++++++++++++++-----
 2 files changed, 32 insertions(+), 10 deletions(-)

diff --git a/docs/en-us/1.3.6/user_doc/docker-deployment.md 
b/docs/en-us/1.3.6/user_doc/docker-deployment.md
index 193d9d5..4a1df11 100644
--- a/docs/en-us/1.3.6/user_doc/docker-deployment.md
+++ b/docs/en-us/1.3.6/user_doc/docker-deployment.md
@@ -301,22 +301,33 @@ docker service scale 
dolphinscheduler_dolphinscheduler-worker=3
 
 ### How to build a Docker image?
 
-You can build a docker image in A Unix-like operating system, and you can also 
build it in Windows operating system.
+#### 1. Build from the source code (Require Maven 3.3+ & JDK 1.8+)
 
-In Unix-Like, Example:
+In Unix-Like, execute in Terminal:
 
-```sh
+```
 $ sh ./docker/build/hooks/build
 ```
 
-In Windows, Example:
+In Windows, execute in cmd or PowerShell:
 
 ```bat
-C:\dolphinscheduler>.\docker\build\hooks\build.bat
+C:\dolphinscheduler-src>.\docker\build\hooks\build.bat
 ```
 
 Please read `./docker/build/hooks/build` `./docker/build/hooks/build.bat` 
script files if you don't understand
 
+#### 2. Build from the binary distribution (Not require Maven 3.3+ & JDK 1.8+)
+
+Please download the binary distribution package 
apache-dolphinscheduler-1.3.6-bin.tar.gz, download address: 
[download](/en-us/download/download.html). And put 
apache-dolphinscheduler-1.3.6-bin.tar.gz into the 
`apache-dolphinscheduler-1.3.6-src/docker/build` directory, execute in Terminal 
or PowerShell:
+
+```
+$ cd apache-dolphinscheduler-1.3.6-src/docker/build
+$ docker build --build-arg VERSION=1.3.6 -t apache/dolphinscheduler:1.3.6 .
+```
+
+> PowerShell should use `cd apache-dolphinscheduler-1.3.6-src/docker/build`
+
 ### How to add an environment variable for Docker?
 
 If you would like to do additional initialization in an image derived from 
this one, add one or more environment variables under 
`/root/start-init-conf.sh`, and modify template files in 
`/opt/dolphinscheduler/conf/*.tpl`.
diff --git a/docs/zh-cn/1.3.6/user_doc/docker-deployment.md 
b/docs/zh-cn/1.3.6/user_doc/docker-deployment.md
index f314f9e..b837ee3 100644
--- a/docs/zh-cn/1.3.6/user_doc/docker-deployment.md
+++ b/docs/zh-cn/1.3.6/user_doc/docker-deployment.md
@@ -301,22 +301,33 @@ docker service scale 
dolphinscheduler_dolphinscheduler-worker=3
 
 ### 如何构建一个 Docker 镜像?
 
-你可以在类Unix系统和Windows系统中构建一个docker镜像。
+#### 1. 从源码构建 (需要 Maven 3.3+ & JDK 1.8+)
 
-类Unix系统, 如下:
+类 Unix 系统,在 Terminal 中执行:
 
-```sh
+```
 $ sh ./docker/build/hooks/build
 ```
 
-Windows系统, 如下:
+Windows 系统,在 cmd 或 PowerShell 中执行:
 
 ```bat
-C:\dolphinscheduler>.\docker\build\hooks\build.bat
+C:\dolphinscheduler-src>.\docker\build\hooks\build.bat
 ```
 
 如果你不理解 `./docker/build/hooks/build` `./docker/build/hooks/build.bat` 
这些脚本,请阅读里面的内容
 
+#### 2. 从二进制包构建 (不需要 Maven 3.3+ & JDK 1.8+)
+
+请下载二进制包 apache-dolphinscheduler-1.3.6-bin.tar.gz,下载地址: 
[下载](/zh-cn/download/download.html). 然后将 
apache-dolphinscheduler-1.3.6-bin.tar.gz 放到 
`apache-dolphinscheduler-1.3.6-src/docker/build` 目录里,在 Terminal 或 PowerShell 
中执行:
+
+```
+$ cd apache-dolphinscheduler-1.3.6-src/docker/build
+$ docker build --build-arg VERSION=1.3.6 -t apache/dolphinscheduler:1.3.6 .
+```
+
+> PowerShell 应该使用 `cd apache-dolphinscheduler-1.3.6-src/docker/build`
+
 ### 如何为 Docker 添加一个环境变量?
 
 
如果你想在编译的时候或者运行的时候附加一些其它的操作及新增一些环境变量,你可以在`/root/start-init-conf.sh`文件中进行修改,同时如果涉及到配置文件的修改,请在`/opt/dolphinscheduler/conf/*.tpl`中修改相应的配置文件

Reply via email to