From fda4cbc47c557136b83700ac49c05392790cad8d Mon Sep 17 00:00:00 2001 From: smallchill Date: Thu, 6 Aug 2020 20:39:16 +0800 Subject: [PATCH] =?UTF-8?q?:heavy=5Fplus=5Fsign:=20=E6=96=B0=E5=A2=9EURepo?= =?UTF-8?q?rt=E5=B7=A5=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blade-ops/blade-report/Dockerfile | 15 ++++++++ blade-ops/blade-report/pom.xml | 33 +++++++++++++++++ .../springblade/report/ReportApplication.java | 35 +++++++++++++++++++ .../src/main/resources/application-dev.yml | 6 ++++ .../src/main/resources/application-prod.yml | 6 ++++ .../src/main/resources/application-test.yml | 6 ++++ .../src/main/resources/application.yml | 3 ++ blade-ops/pom.xml | 1 + 8 files changed, 105 insertions(+) create mode 100644 blade-ops/blade-report/Dockerfile create mode 100644 blade-ops/blade-report/pom.xml create mode 100644 blade-ops/blade-report/src/main/java/org/springblade/report/ReportApplication.java create mode 100644 blade-ops/blade-report/src/main/resources/application-dev.yml create mode 100644 blade-ops/blade-report/src/main/resources/application-prod.yml create mode 100644 blade-ops/blade-report/src/main/resources/application-test.yml create mode 100644 blade-ops/blade-report/src/main/resources/application.yml diff --git a/blade-ops/blade-report/Dockerfile b/blade-ops/blade-report/Dockerfile new file mode 100644 index 00000000..e6316019 --- /dev/null +++ b/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"] diff --git a/blade-ops/blade-report/pom.xml b/blade-ops/blade-report/pom.xml new file mode 100644 index 00000000..b5f7b880 --- /dev/null +++ b/blade-ops/blade-report/pom.xml @@ -0,0 +1,33 @@ + + + + blade-ops + org.springblade + 2.5.2.SNAPSHOT + + 4.0.0 + + blade-report + ${project.artifactId} + ${bladex.project.version} + jar + + + + + org.springblade + blade-common + + + org.springblade + blade-core-boot + + + org.springblade + blade-starter-report + + + + diff --git a/blade-ops/blade-report/src/main/java/org/springblade/report/ReportApplication.java b/blade-ops/blade-report/src/main/java/org/springblade/report/ReportApplication.java new file mode 100644 index 00000000..d1bcfe54 --- /dev/null +++ b/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); + } + +} diff --git a/blade-ops/blade-report/src/main/resources/application-dev.yml b/blade-ops/blade-report/src/main/resources/application-dev.yml new file mode 100644 index 00000000..97f23c86 --- /dev/null +++ b/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} diff --git a/blade-ops/blade-report/src/main/resources/application-prod.yml b/blade-ops/blade-report/src/main/resources/application-prod.yml new file mode 100644 index 00000000..c238494f --- /dev/null +++ b/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} diff --git a/blade-ops/blade-report/src/main/resources/application-test.yml b/blade-ops/blade-report/src/main/resources/application-test.yml new file mode 100644 index 00000000..5738832a --- /dev/null +++ b/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} diff --git a/blade-ops/blade-report/src/main/resources/application.yml b/blade-ops/blade-report/src/main/resources/application.yml new file mode 100644 index 00000000..8447a378 --- /dev/null +++ b/blade-ops/blade-report/src/main/resources/application.yml @@ -0,0 +1,3 @@ +#服务器端口 +server: + port: 8108 diff --git a/blade-ops/pom.xml b/blade-ops/pom.xml index d44a0200..2a9ca8bd 100644 --- a/blade-ops/pom.xml +++ b/blade-ops/pom.xml @@ -20,6 +20,7 @@ blade-flow blade-flow-design blade-log + blade-report blade-resource blade-turbine blade-zipkin