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

kezhenxu94 pushed a commit to branch fix/env
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git

commit 2cc22b4e7286427efae5e1314ae05c7603159d28
Author: kezhenxu94 <[email protected]>
AuthorDate: Wed Sep 14 09:53:41 2022 +0800

    Remove sensitive configs from dolphinscheduler_env.sh
---
 .../cluster-test/mysql/dolphinscheduler_env.sh          | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/.github/workflows/cluster-test/mysql/dolphinscheduler_env.sh 
b/.github/workflows/cluster-test/mysql/dolphinscheduler_env.sh
index 458fb9d5b2..df40c8e318 100755
--- a/.github/workflows/cluster-test/mysql/dolphinscheduler_env.sh
+++ b/.github/workflows/cluster-test/mysql/dolphinscheduler_env.sh
@@ -18,21 +18,8 @@
 # JAVA_HOME, will use it to start DolphinScheduler server
 export JAVA_HOME=${JAVA_HOME:-/usr/local/openjdk-8}
 
-# Database related configuration, set database type, username and password
-export DATABASE=${DATABASE:-mysql}
-export SPRING_PROFILES_ACTIVE=${DATABASE}
-export 
SPRING_DATASOURCE_URL="jdbc:mysql://mysql:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8&useSSL=false"
-export SPRING_DATASOURCE_USERNAME=root
-export SPRING_DATASOURCE_PASSWORD=123456
-
-# DolphinScheduler server related configuration
-export SPRING_CACHE_TYPE=${SPRING_CACHE_TYPE:-none}
-export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-UTC}
-export MASTER_FETCH_COMMAND_NUM=${MASTER_FETCH_COMMAND_NUM:-10}
-
-# Registry center configuration, determines the type and link of the registry 
center
-export REGISTRY_TYPE=${REGISTRY_TYPE:-zookeeper}
-export 
REGISTRY_ZOOKEEPER_CONNECT_STRING=${REGISTRY_ZOOKEEPER_CONNECT_STRING:-zoo1:2181,zoo2:2182,zoo3:2183}
+# Never put sensitive config such as database password here in your production 
environment,
+# this file will be sourced everytime a new task is started.
 
 # Tasks related configurations, need to change the configuration if you use 
the related tasks.
 export HADOOP_HOME=${HADOOP_HOME:-/opt/soft/hadoop}

Reply via email to