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

leonbao 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 cd1eb49  add environment func doc. (#460)
cd1eb49 is described below

commit cd1eb491d7bceae95164d8cb7af1e63a72306020
Author: Kerwin <[email protected]>
AuthorDate: Fri Oct 22 21:03:58 2021 +0800

    add environment func doc. (#460)
    
    * add environment func doc.
    
    * update quick-start
    
    * update en-us doc
---
 docs/en-us/dev/user_doc/guide/quick-start.md |   6 ++++++
 docs/en-us/dev/user_doc/guide/security.md    |  24 ++++++++++++++++++++++++
 docs/zh-cn/dev/user_doc/guide/quick-start.md |   5 +++++
 docs/zh-cn/dev/user_doc/guide/security.md    |  26 +++++++++++++++++++++++++-
 img/create-environment.png                   | Bin 0 -> 192706 bytes
 img/use-environment.png                      | Bin 0 -> 110154 bytes
 6 files changed, 60 insertions(+), 1 deletion(-)

diff --git a/docs/en-us/dev/user_doc/guide/quick-start.md 
b/docs/en-us/dev/user_doc/guide/quick-start.md
index 24fb1f7..418248a 100644
--- a/docs/en-us/dev/user_doc/guide/quick-start.md
+++ b/docs/en-us/dev/user_doc/guide/quick-start.md
@@ -36,6 +36,12 @@
    <p align="center">
       <img src="/img/worker-group-en.png" width="60%" />
     </p>
+
+   * Create environment
+
+   <p align="center">
+    <img src="/img/create-environment.png" width="60%" />
+   </p>
     
  * Create a token
   
diff --git a/docs/en-us/dev/user_doc/guide/security.md 
b/docs/en-us/dev/user_doc/guide/security.md
index df45546..8a1aebe 100644
--- a/docs/en-us/dev/user_doc/guide/security.md
+++ b/docs/en-us/dev/user_doc/guide/security.md
@@ -136,3 +136,27 @@ When the task is executed, the task can be assigned to the 
specified worker grou
 ```conf
 worker.groups=default,test
 ```
+
+## Environmental Management
+
+* Configure the Worker operating environment online. A Worker can specify 
multiple environments, and each environment is equivalent to the 
dolphinscheduler_env.sh file.
+
+* The default environment is the dolphinscheduler_env.sh file.
+
+* When the task is executed, the task can be assigned to the designated worker 
group, and the corresponding environment can be selected according to the 
worker group. Finally, the worker node executes the environment first and then 
executes the task.
+
+> Add/Update environment
+
+- The environment configuration is equivalent to the configuration in the 
dolphinscheduler_env.sh file.
+
+  <p align="center">
+      <img src="/img/create-environment.png" width="80%" />
+  </p>
+
+> Use environment
+
+- Create a task node in the workflow definition and select the environment 
corresponding to the Worker group and the Worker group. When the task is 
executed, the Worker will execute the environment first before executing the 
task.
+
+    <p align="center">
+        <img src="/img/use-environment.png" width="80%" />
+    </p>
\ No newline at end of file
diff --git a/docs/zh-cn/dev/user_doc/guide/quick-start.md 
b/docs/zh-cn/dev/user_doc/guide/quick-start.md
index c82ef72..9b83a56 100644
--- a/docs/zh-cn/dev/user_doc/guide/quick-start.md
+++ b/docs/zh-cn/dev/user_doc/guide/quick-start.md
@@ -34,6 +34,11 @@
  <p align="center">
     <img src="/img/worker_group.png" width="60%" />
   </p>
+
+* 创建环境
+ <p align="center">
+    <img src="/img/create-environment.png" width="60%" />
+  </p>
  
  * 创建token令牌
  <p align="center">
diff --git a/docs/zh-cn/dev/user_doc/guide/security.md 
b/docs/zh-cn/dev/user_doc/guide/security.md
index fd201a1..3e6a6c2 100644
--- a/docs/zh-cn/dev/user_doc/guide/security.md
+++ b/docs/zh-cn/dev/user_doc/guide/security.md
@@ -137,4 +137,28 @@
 ```conf
 示例: 
 worker.groups=default,test
-```
\ No newline at end of file
+```
+
+## 环境管理
+
+* 在线配置Worker运行环境,一个Worker可以指定多个环境,每个环境等价于dolphinscheduler_env.sh文件.
+
+* 默认环境为dolphinscheduler_env.sh文件.
+
+* 在任务执行时,可以将任务分配给指定worker分组,根据worker分组选择对应的环境,最终由该组中的worker节点执行环境后执行该任务.
+
+> 创建/更新 环境
+
+- 环境配置等价于dolphinscheduler_env.sh文件内配置
+
+  <p align="center">
+      <img src="/img/create-environment.png" width="80%" />
+  </p>
+
+> 使用 环境
+
+- 在工作流定义中创建任务节点选择Worker分组和Worker分组对应的环境,任务执行时Worker会先执行环境在执行任务.
+
+    <p align="center">
+        <img src="/img/use-environment.png" width="80%" />
+    </p>
diff --git a/img/create-environment.png b/img/create-environment.png
new file mode 100644
index 0000000..9befbdc
Binary files /dev/null and b/img/create-environment.png differ
diff --git a/img/use-environment.png b/img/use-environment.png
new file mode 100644
index 0000000..c1394a0
Binary files /dev/null and b/img/use-environment.png differ

Reply via email to