Skip to content

Latest commit

 

History

History
97 lines (81 loc) · 2.27 KB

README.md

File metadata and controls

97 lines (81 loc) · 2.27 KB

deploy-spring-boot-admin

deploy-spring-boot-admin is a plugin for spring-boot-admin

Screenshots

DeployPage Page with deploy actions

DeployPage Edit Page when edit deploy action

DeployPage After Execute Page after executing deploy actions

sample-project

You can add custom plugins to deploy-spring-boot-admin like sample-project.

see sample

SamplePage Sample-project Page

SamplePage After Running 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: xxxxx@gmail.com
        to:
          - xxxx@qq.com
        subject: test
        text: Hi, 
    # action means script in deployed server
    actions:
      foo: 
        -
          exec: ipconfig
      bar: 
        -
          exec: ping
          args:
            - www.baidu.com
        -
          exec: ipconfig

thanks

xigongdaEricyang

enjoy