deploy-spring-boot-admin
deploy-spring-boot-admin is a plugin for spring-boot-admin
Screenshots
Page after executing deploy actions
sample-project
You can add custom plugins to deploy-spring-boot-admin like sample-project.
see sample
Sample-project Page after executing custom action
quick-start
Add below dependencies to your pom
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server</artifactId>
<version>${spring.boot.admin.version}</version>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server-ui</artifactId>
<version>${spring.boot.admin.version}</version>
</dependency>
<dependency>
<groupId>io.github.jianzhichun</groupId>
<artifactId>deploy-spring-boot-admin</artifactId>
<version>0.1.6</version>
</dependency>
Meanwhile, you can add spring-boot-starter-mail for mail-notification function
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
Add configuration to your application.yml
spring.boot.admin:
notify:
mail:
enabled: false
url: http://localhost:8080
deploy:
# when project start will run the actions in bootstrap
bootstrap:
- foo
- bar
# charset should be charset in deployed server
charset: gbk
mail:
enabled: false
simpleMailMessage:
from: [email protected]
to:
- [email protected]
subject: test
text: Hi,
# action means script in deployed server
actions:
foo:
-
exec: ipconfig
bar:
-
exec: ping
args:
- www.baidu.com
-
exec: ipconfig