smallchill
6 years ago
11 changed files with 239 additions and 5 deletions
@ -0,0 +1,15 @@
|
||||
FROM anapsix/alpine-java:8_server-jre_unlimited |
||||
|
||||
MAINTAINER smallchill@163.com |
||||
|
||||
RUN mkdir -p /blade/admin |
||||
|
||||
WORKDIR /blade/admin |
||||
|
||||
EXPOSE 7002 |
||||
|
||||
ADD ./target/blade-flowable.jar ./app.jar |
||||
|
||||
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] |
||||
|
||||
CMD ["--spring.profiles.active=test"] |
@ -0,0 +1,30 @@
|
||||
<?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.0.0.RC8</version> |
||||
</parent> |
||||
<modelVersion>4.0.0</modelVersion> |
||||
|
||||
<artifactId>blade-flowable</artifactId> |
||||
<name>${project.artifactId}</name> |
||||
<version>${bladex.project.version}</version> |
||||
<packaging>jar</packaging> |
||||
|
||||
<dependencies> |
||||
<dependency> |
||||
<groupId>org.springblade</groupId> |
||||
<artifactId>blade-core-boot</artifactId> |
||||
<version>${bladex.tool.version}</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springblade</groupId> |
||||
<artifactId>blade-common</artifactId> |
||||
<version>${bladex.project.version}</version> |
||||
</dependency> |
||||
</dependencies> |
||||
|
||||
</project> |
@ -0,0 +1,38 @@
|
||||
/* |
||||
* 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.flowable; |
||||
|
||||
import org.springblade.core.cloud.feign.EnableBladeFeign; |
||||
import org.springblade.core.launch.BladeApplication; |
||||
import org.springblade.core.launch.constant.AppConstant; |
||||
import org.springframework.cloud.client.SpringCloudApplication; |
||||
|
||||
/** |
||||
* Flowable启动器 |
||||
* |
||||
* @author Chill |
||||
*/ |
||||
@EnableBladeFeign |
||||
@SpringCloudApplication |
||||
public class FlowableApplication { |
||||
|
||||
public static void main(String[] args) { |
||||
BladeApplication.run(AppConstant.APPLICATION_FLOWABLE_NAME, FlowableApplication.class, args); |
||||
} |
||||
|
||||
} |
||||
|
@ -0,0 +1,10 @@
|
||||
#服务器端口 |
||||
server: |
||||
port: 8008 |
||||
|
||||
#数据源配置 |
||||
spring: |
||||
datasource: |
||||
url: ${blade.datasource.dev.url} |
||||
username: ${blade.datasource.dev.username} |
||||
password: ${blade.datasource.dev.password} |
@ -0,0 +1,10 @@
|
||||
#服务器端口 |
||||
server: |
||||
port: 8008 |
||||
|
||||
#数据源配置 |
||||
spring: |
||||
datasource: |
||||
url: ${blade.datasource.prod.url} |
||||
username: ${blade.datasource.prod.username} |
||||
password: ${blade.datasource.prod.password} |
@ -0,0 +1,10 @@
|
||||
#服务器端口 |
||||
server: |
||||
port: 8008 |
||||
|
||||
#数据源配置 |
||||
spring: |
||||
datasource: |
||||
url: ${blade.datasource.test.url} |
||||
username: ${blade.datasource.test.username} |
||||
password: ${blade.datasource.test.password} |
@ -0,0 +1,15 @@
|
||||
FROM anapsix/alpine-java:8_server-jre_unlimited |
||||
|
||||
MAINTAINER smallchill@163.com |
||||
|
||||
RUN mkdir -p /blade/admin |
||||
|
||||
WORKDIR /blade/admin |
||||
|
||||
EXPOSE 7002 |
||||
|
||||
ADD ./target/blade-flowdesign.jar ./app.jar |
||||
|
||||
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] |
||||
|
||||
CMD ["--spring.profiles.active=test"] |
@ -0,0 +1,86 @@
|
||||
<?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.0.0.RC8</version> |
||||
</parent> |
||||
<modelVersion>4.0.0</modelVersion> |
||||
|
||||
<artifactId>blade-flowdesign</artifactId> |
||||
<name>${project.artifactId}</name> |
||||
<version>${bladex.project.version}</version> |
||||
<packaging>jar</packaging> |
||||
|
||||
<dependencies> |
||||
<dependency> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-starter-web</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-starter-thymeleaf</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-configuration-processor</artifactId> |
||||
<optional>true</optional> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>net.sourceforge.nekohtml</groupId> |
||||
<artifactId>nekohtml</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.liquibase</groupId> |
||||
<artifactId>liquibase-core</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.flowable</groupId> |
||||
<artifactId>flowable-spring-boot-starter-process</artifactId> |
||||
<version>${flowable.version}</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.flowable</groupId> |
||||
<artifactId>flowable-ui-modeler-rest</artifactId> |
||||
<version>${flowable.version}</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>mysql</groupId> |
||||
<artifactId>mysql-connector-java</artifactId> |
||||
<version>8.0.15</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>com.alibaba</groupId> |
||||
<artifactId>druid-spring-boot-starter</artifactId> |
||||
<version>1.1.16</version> |
||||
</dependency> |
||||
</dependencies> |
||||
|
||||
<build> |
||||
<plugins> |
||||
<plugin> |
||||
<groupId>com.spotify</groupId> |
||||
<artifactId>docker-maven-plugin</artifactId> |
||||
<version>${docker.plugin.version}</version> |
||||
<configuration> |
||||
<imageName>${docker.registry.url}/blade/${project.artifactId}:${project.version}</imageName> |
||||
<dockerDirectory>${project.basedir}</dockerDirectory> |
||||
<dockerHost>${docker.registry.host}</dockerHost> |
||||
<resources> |
||||
<resource> |
||||
<targetPath>/</targetPath> |
||||
<directory>${project.build.directory}</directory> |
||||
<include>${project.build.finalName}.jar</include> |
||||
</resource> |
||||
</resources> |
||||
<registryUrl>${docker.registry.url}</registryUrl> |
||||
<serverId>${docker.registry.url}</serverId> |
||||
<pushImage>true</pushImage> |
||||
</configuration> |
||||
</plugin> |
||||
</plugins> |
||||
</build> |
||||
|
||||
</project> |
@ -0,0 +1,17 @@
|
||||
package org.springblade.flowable.constant; |
||||
|
||||
/** |
||||
* Flowable常量 |
||||
* |
||||
* @author Chill |
||||
*/ |
||||
public interface FlowableConstant { |
||||
String BASE_PACHAGE = "org.springblade"; |
||||
String FLOWABLE_BASE_PACKAGE = "org.flowable.ui"; |
||||
|
||||
String css = ".css"; |
||||
String js = ".js"; |
||||
String jpg = ".jpg"; |
||||
String png = ".png"; |
||||
String app = "/app"; |
||||
} |
Loading…
Reference in new issue