Browse Source

[DS-9266][feat][server]Implement show dolphinscheduler banner at launch (#9273)

- add banner.txt
- modify application.yaml

This closes #9266
worry 3 years ago
parent
commit
b4b5241797

+ 2 - 2
dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/application.yaml

@@ -21,8 +21,8 @@ spring:
   jackson:
     time-zone: UTC
     date-format: "yyyy-MM-dd HH:mm:ss"
-  main:
-    banner-mode: off
+  banner:
+    charset: UTF-8
   datasource:
     driver-class-name: org.postgresql.Driver
     url: jdbc:postgresql://127.0.0.1:5432/dolphinscheduler

+ 12 - 0
dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/resources/banner.txt

@@ -0,0 +1,12 @@
+${AnsiColor.BLUE}${AnsiStyle.BOLD}
+================================================================================
+     _       _       _     _       ____       _              _       _
+  __| | ___ | |_ __ | |__ (_)_ __ / ___|  ___| |__   ___  __| |_   _| | ___ _ __
+ / _` |/ _ \| | '_ \| '_ \| | '_ \\___ \ / __| '_ \ / _ \/ _` | | | | |/ _ \ '__|
+| (_| | (_) | | |_) | | | | | | | |___) | (__| | | |  __/ (_| | |_| | |  __/ |
+ \__,_|\___/|_| .__/|_| |_|_|_| |_|____/ \___|_| |_|\___|\__,_|\__,_|_|\___|_|
+              |_|
+================================================================================
+${AnsiColor.BLUE}${AnsiStyle.BOLD}
+::  Dolphinscheduler alert server ::  ${application.formatted-version}
+${AnsiStyle.NORMAL}

+ 2 - 2
dolphinscheduler-api/src/main/resources/application.yaml

@@ -30,8 +30,8 @@ server:
 spring:
   application:
     name: api-server
-  main:
-    banner-mode: off
+  banner:
+    charset: UTF-8
   jackson:
     time-zone: UTC
     date-format: "yyyy-MM-dd HH:mm:ss"

+ 12 - 0
dolphinscheduler-api/src/main/resources/banner.txt

@@ -0,0 +1,12 @@
+${AnsiColor.BLUE}${AnsiStyle.BOLD}
+================================================================================
+     _       _       _     _       ____       _              _       _
+  __| | ___ | |_ __ | |__ (_)_ __ / ___|  ___| |__   ___  __| |_   _| | ___ _ __
+ / _` |/ _ \| | '_ \| '_ \| | '_ \\___ \ / __| '_ \ / _ \/ _` | | | | |/ _ \ '__|
+| (_| | (_) | | |_) | | | | | | | |___) | (__| | | |  __/ (_| | |_| | |  __/ |
+ \__,_|\___/|_| .__/|_| |_|_|_| |_|____/ \___|_| |_|\___|\__,_|\__,_|_|\___|_|
+              |_|
+================================================================================
+${AnsiColor.BLUE}${AnsiStyle.BOLD}
+::  Dolphinscheduler api server ::  ${application.formatted-version}
+${AnsiStyle.NORMAL}

+ 2 - 2
dolphinscheduler-master/src/main/resources/application.yaml

@@ -15,8 +15,8 @@
 # limitations under the License.
 #
 spring:
-  main:
-    banner-mode: off
+  banner:
+    charset: UTF-8
   application:
     name: master-server
   jackson:

+ 12 - 0
dolphinscheduler-master/src/main/resources/banner.txt

@@ -0,0 +1,12 @@
+${AnsiColor.BLUE}${AnsiStyle.BOLD}
+================================================================================
+     _       _       _     _       ____       _              _       _
+  __| | ___ | |_ __ | |__ (_)_ __ / ___|  ___| |__   ___  __| |_   _| | ___ _ __
+ / _` |/ _ \| | '_ \| '_ \| | '_ \\___ \ / __| '_ \ / _ \/ _` | | | | |/ _ \ '__|
+| (_| | (_) | | |_) | | | | | | | |___) | (__| | | |  __/ (_| | |_| | |  __/ |
+ \__,_|\___/|_| .__/|_| |_|_|_| |_|____/ \___|_| |_|\___|\__,_|\__,_|_|\___|_|
+              |_|
+================================================================================
+${AnsiColor.BLUE}${AnsiStyle.BOLD}
+::  Dolphinscheduler master server ::  ${application.formatted-version}
+${AnsiStyle.NORMAL}

+ 2 - 2
dolphinscheduler-standalone-server/src/main/resources/application.yaml

@@ -21,8 +21,8 @@ spring:
   jackson:
     time-zone: UTC
     date-format: "yyyy-MM-dd HH:mm:ss"
-  main:
-    banner-mode: off
+  banner:
+    charset: UTF-8
   cache:
     # default enable cache, you can disable by `type: none`
     type: none

+ 12 - 0
dolphinscheduler-standalone-server/src/main/resources/banner.txt

@@ -0,0 +1,12 @@
+${AnsiColor.BLUE}${AnsiStyle.BOLD}
+================================================================================
+     _       _       _     _       ____       _              _       _
+  __| | ___ | |_ __ | |__ (_)_ __ / ___|  ___| |__   ___  __| |_   _| | ___ _ __
+ / _` |/ _ \| | '_ \| '_ \| | '_ \\___ \ / __| '_ \ / _ \/ _` | | | | |/ _ \ '__|
+| (_| | (_) | | |_) | | | | | | | |___) | (__| | | |  __/ (_| | |_| | |  __/ |
+ \__,_|\___/|_| .__/|_| |_|_|_| |_|____/ \___|_| |_|\___|\__,_|\__,_|_|\___|_|
+              |_|
+================================================================================
+${AnsiColor.BLUE}${AnsiStyle.BOLD}
+::  Dolphinscheduler standalone server ::  ${application.formatted-version}
+${AnsiStyle.NORMAL}

+ 2 - 2
dolphinscheduler-worker/src/main/resources/application.yaml

@@ -15,8 +15,8 @@
 # limitations under the License.
 #
 spring:
-  main:
-    banner-mode: off
+  banner:
+    charset: UTF-8
   application:
     name: worker-server
   jackson:

+ 12 - 0
dolphinscheduler-worker/src/main/resources/banner.txt

@@ -0,0 +1,12 @@
+${AnsiColor.BLUE}${AnsiStyle.BOLD}
+================================================================================
+     _       _       _     _       ____       _              _       _
+  __| | ___ | |_ __ | |__ (_)_ __ / ___|  ___| |__   ___  __| |_   _| | ___ _ __
+ / _` |/ _ \| | '_ \| '_ \| | '_ \\___ \ / __| '_ \ / _ \/ _` | | | | |/ _ \ '__|
+| (_| | (_) | | |_) | | | | | | | |___) | (__| | | |  __/ (_| | |_| | |  __/ |
+ \__,_|\___/|_| .__/|_| |_|_|_| |_|____/ \___|_| |_|\___|\__,_|\__,_|_|\___|_|
+              |_|
+================================================================================
+${AnsiColor.BLUE}${AnsiStyle.BOLD}
+::  Dolphinscheduler work server ::  ${application.formatted-version}
+${AnsiStyle.NORMAL}