Browse Source

新增UReport工程

test
smallchill 5 years ago
parent
commit
fda4cbc47c
  1. 15
      blade-ops/blade-report/Dockerfile
  2. 33
      blade-ops/blade-report/pom.xml
  3. 35
      blade-ops/blade-report/src/main/java/org/springblade/report/ReportApplication.java
  4. 6
      blade-ops/blade-report/src/main/resources/application-dev.yml
  5. 6
      blade-ops/blade-report/src/main/resources/application-prod.yml
  6. 6
      blade-ops/blade-report/src/main/resources/application-test.yml
  7. 3
      blade-ops/blade-report/src/main/resources/application.yml
  8. 1
      blade-ops/pom.xml

15
blade-ops/blade-report/Dockerfile

@ -0,0 +1,15 @@
FROM adoptopenjdk/openjdk8-openj9:alpine-slim
MAINTAINER smallchill@163.com
RUN mkdir -p /blade/report
WORKDIR /blade/report
EXPOSE 7003
ADD ./target/blade-report.jar ./app.jar
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
CMD ["--spring.profiles.active=test"]

33
blade-ops/blade-report/pom.xml

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>blade-ops</artifactId>
<groupId>org.springblade</groupId>
<version>2.5.2.SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>blade-report</artifactId>
<name>${project.artifactId}</name>
<version>${bladex.project.version}</version>
<packaging>jar</packaging>
<dependencies>
<!--Blade-->
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-common</artifactId>
</dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-core-boot</artifactId>
</dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-starter-report</artifactId>
</dependency>
</dependencies>
</project>

35
blade-ops/blade-report/src/main/java/org/springblade/report/ReportApplication.java

@ -0,0 +1,35 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.report;
import org.springblade.core.launch.BladeApplication;
import org.springblade.core.launch.constant.AppConstant;
import org.springframework.cloud.client.SpringCloudApplication;
/**
* UReport启动器
*
* @author Chill
*/
@SpringCloudApplication
public class ReportApplication {
public static void main(String[] args) {
BladeApplication.run(AppConstant.APPLICATION_REPORT_NAME, ReportApplication.class, args);
}
}

6
blade-ops/blade-report/src/main/resources/application-dev.yml

@ -0,0 +1,6 @@
#数据源配置
spring:
datasource:
url: ${blade.datasource.dev.url}
username: ${blade.datasource.dev.username}
password: ${blade.datasource.dev.password}

6
blade-ops/blade-report/src/main/resources/application-prod.yml

@ -0,0 +1,6 @@
#数据源配置
spring:
datasource:
url: ${blade.datasource.prod.url}
username: ${blade.datasource.prod.username}
password: ${blade.datasource.prod.password}

6
blade-ops/blade-report/src/main/resources/application-test.yml

@ -0,0 +1,6 @@
#数据源配置
spring:
datasource:
url: ${blade.datasource.test.url}
username: ${blade.datasource.test.username}
password: ${blade.datasource.test.password}

3
blade-ops/blade-report/src/main/resources/application.yml

@ -0,0 +1,3 @@
#服务器端口
server:
port: 8108

1
blade-ops/pom.xml

@ -20,6 +20,7 @@
<module>blade-flow</module>
<module>blade-flow-design</module>
<module>blade-log</module>
<module>blade-report</module>
<module>blade-resource</module>
<module>blade-turbine</module>
<module>blade-zipkin</module>

Loading…
Cancel
Save