提交 9ebf0155 编写于 作者: sq3536's avatar sq3536

docker

上级 1c337dda
...@@ -64,7 +64,25 @@ ...@@ -64,7 +64,25 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.13</version>
<configuration>
<serverId>ibiz-dev</serverId>
<imageName>ibiz4j/ibizlab-lite:latest</imageName>
<dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>../</directory>
<include>ibzlite.jar</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</profile> </profile>
</profiles> </profiles>
......
FROM openjdk:8-jre-alpine
ENV TZ=Asia/Shanghai \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
IBIZ_SLEEP=0 \
JAVA_OPTS=""
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzlite.jar
EXPOSE 8080
ADD ibzlite.jar /ibzlite.jar
version: "3.2"
services:
ibzlite:
image: ibiz4j/ibizlab-lite:latest
ports:
- "8080:8080"
package cn.ibizlab.core.extensions.service; package cn.ibizlab.core.extensions.service;
import cn.ibizlab.core.lite.service.IDstConfigService;
import cn.ibizlab.core.lite.service.impl.DstConfigServiceImpl; import cn.ibizlab.core.lite.service.impl.DstConfigServiceImpl;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import cn.ibizlab.core.lite.domain.DstConfig; import cn.ibizlab.core.lite.domain.DstConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Primary; import org.springframework.context.annotation.Primary;
...@@ -21,6 +25,18 @@ public class DstConfigExService extends DstConfigServiceImpl { ...@@ -21,6 +25,18 @@ public class DstConfigExService extends DstConfigServiceImpl {
return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1); return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1);
} }
@Autowired
@Lazy
private IDstConfigService proxy=null;
@Override
public boolean update(DstConfig et) {
if( super.update(et))
proxy.reset(et);
return true;
}
/** /**
* 自定义行为[Reset]用户扩展 * 自定义行为[Reset]用户扩展
* @param et * @param et
...@@ -28,6 +44,7 @@ public class DstConfigExService extends DstConfigServiceImpl { ...@@ -28,6 +44,7 @@ public class DstConfigExService extends DstConfigServiceImpl {
*/ */
@Override @Override
@Transactional @Transactional
@CacheEvict( value="ibzrt_configs",key = "'cfgid:'+#p0.cfgType+'||'+#p0.targetType+'||'+#p0.userId")
public DstConfig reset(DstConfig et) { public DstConfig reset(DstConfig et) {
return super.reset(et); return super.reset(et);
} }
......
<?xml version="1.1" encoding="UTF-8" standalone="no"?> <?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-3.8.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-3.8.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
<changeSet author="mac (generated)" id="1602221967551-1"> <changeSet author="mac (generated)" id="1602221967552-1">
<preConditions onFail="MARK_RAN" >
<not>
<tableExists tableName="IBZCOMPONENT" />
</not>
</preConditions>
<createTable tableName="IBZCOMPONENT"> <createTable tableName="IBZCOMPONENT">
<column name="CID" type="VARCHAR(100)"> <column name="CID" type="VARCHAR(100)">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_DST_COMPONENT_CID"/> <constraints nullable="false" primaryKey="true" primaryKeyName="PK_DST_COMPONENT_CID"/>
...@@ -13,8 +18,6 @@ ...@@ -13,8 +18,6 @@
<column name="ENTITYID" type="VARCHAR(100)"/> <column name="ENTITYID" type="VARCHAR(100)"/>
<column name="CFG" type="CLOB"/> <column name="CFG" type="CLOB"/>
</createTable> </createTable>
</changeSet>
<changeSet author="mac (generated)" id="1602221967551-2">
<createTable tableName="IBZDATASET"> <createTable tableName="IBZDATASET">
<column name="DATASETID" type="VARCHAR(100)"> <column name="DATASETID" type="VARCHAR(100)">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_META_DATASET_DATASETID"/> <constraints nullable="false" primaryKey="true" primaryKeyName="PK_META_DATASET_DATASETID"/>
...@@ -26,8 +29,6 @@ ...@@ -26,8 +29,6 @@
<column name="DSCODE" type="CLOB"/> <column name="DSCODE" type="CLOB"/>
<column name="DSMODEL" type="CLOB"/> <column name="DSMODEL" type="CLOB"/>
</createTable> </createTable>
</changeSet>
<changeSet author="mac (generated)" id="1602221967551-3">
<createTable tableName="IBZDATASOURCE"> <createTable tableName="IBZDATASOURCE">
<column name="DSID" type="VARCHAR(100)"> <column name="DSID" type="VARCHAR(100)">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_DST_DATASOURCE_DSID"/> <constraints nullable="false" primaryKey="true" primaryKeyName="PK_DST_DATASOURCE_DSID"/>
...@@ -36,8 +37,6 @@ ...@@ -36,8 +37,6 @@
<column name="DSTYPE" type="VARCHAR(100)"/> <column name="DSTYPE" type="VARCHAR(100)"/>
<column name="DSCFG" type="VARCHAR(4000)"/> <column name="DSCFG" type="VARCHAR(4000)"/>
</createTable> </createTable>
</changeSet>
<changeSet author="mac (generated)" id="1602221967551-4">
<createTable tableName="IBZENTITY"> <createTable tableName="IBZENTITY">
<column name="ENTITYID" type="VARCHAR(100)"> <column name="ENTITYID" type="VARCHAR(100)">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_META_ENTITY_ENTITYID"/> <constraints nullable="false" primaryKey="true" primaryKeyName="PK_META_ENTITY_ENTITYID"/>
...@@ -49,8 +48,6 @@ ...@@ -49,8 +48,6 @@
<column name="SYSTEMID" type="VARCHAR(100)"/> <column name="SYSTEMID" type="VARCHAR(100)"/>
<column name="DSID" type="VARCHAR(100)"/> <column name="DSID" type="VARCHAR(100)"/>
</createTable> </createTable>
</changeSet>
<changeSet author="mac (generated)" id="1602221967551-5">
<createTable tableName="IBZFIELD"> <createTable tableName="IBZFIELD">
<column name="FIELDID" type="VARCHAR(100)"> <column name="FIELDID" type="VARCHAR(100)">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_META_FIELD_FIELDID"/> <constraints nullable="false" primaryKey="true" primaryKeyName="PK_META_FIELD_FIELDID"/>
...@@ -78,9 +75,8 @@ ...@@ -78,9 +75,8 @@
<column name="EXPRESSION" type="VARCHAR(2000)"/> <column name="EXPRESSION" type="VARCHAR(2000)"/>
<column name="EXTENSIONFIELD" type="INT"/> <column name="EXTENSIONFIELD" type="INT"/>
<column name="SHOWORDER" type="INT"/> <column name="SHOWORDER" type="INT"/>
<column name="ISENABLEAUDIT" type="INTEGER"/>
</createTable> </createTable>
</changeSet>
<changeSet author="mac (generated)" id="1602221967551-6">
<createTable tableName="IBZMODEL"> <createTable tableName="IBZMODEL">
<column name="MODELID" type="VARCHAR(100)"> <column name="MODELID" type="VARCHAR(100)">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_META_MODEL_MODELID"/> <constraints nullable="false" primaryKey="true" primaryKeyName="PK_META_MODEL_MODELID"/>
...@@ -89,25 +85,6 @@ ...@@ -89,25 +85,6 @@
<column name="CODENAME" type="VARCHAR(100)"/> <column name="CODENAME" type="VARCHAR(100)"/>
<column name="MODELCFG" type="CLOB"/> <column name="MODELCFG" type="CLOB"/>
</createTable> </createTable>
</changeSet>
<changeSet author="mac (generated)" id="1602221967551-7">
<preConditions onFail="MARK_RAN" >
<not>
<tableExists tableName="IBZPSSYSTEM" />
</not>
</preConditions>
<createTable tableName="IBZPSSYSTEM">
<column name="PSSYSTEMID" type="VARCHAR(100)">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_DST_SYSTEM_PSSYSTEMID"/>
</column>
<column name="PSSYSTEMNAME" type="VARCHAR(100)"/>
<column name="SYSSTRUCTURE" type="CLOB"/>
<column name="APPS" type="CLOB"/>
<column name="MD5CHECK" type="VARCHAR(100)"/>
<column name="SHOWORDER" type="INT"/>
</createTable>
</changeSet>
<changeSet author="mac (generated)" id="1602221967551-8">
<createTable tableName="IBZRELATION"> <createTable tableName="IBZRELATION">
<column name="RELATIONID" type="VARCHAR(100)"> <column name="RELATIONID" type="VARCHAR(100)">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_META_RELATION_RELATIONID"/> <constraints nullable="false" primaryKey="true" primaryKeyName="PK_META_RELATION_RELATIONID"/>
...@@ -122,8 +99,6 @@ ...@@ -122,8 +99,6 @@
<column name="NESTEDNAME" type="VARCHAR(100)"/> <column name="NESTEDNAME" type="VARCHAR(100)"/>
<column name="LOOKUP" type="CLOB"/> <column name="LOOKUP" type="CLOB"/>
</createTable> </createTable>
</changeSet>
<changeSet author="mac (generated)" id="1602221967551-9">
<createTable tableName="IBZROUTER"> <createTable tableName="IBZROUTER">
<column name="ROUTERID" type="VARCHAR(100)"> <column name="ROUTERID" type="VARCHAR(100)">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_DST_ROUTER_ROUTERID"/> <constraints nullable="false" primaryKey="true" primaryKeyName="PK_DST_ROUTER_ROUTERID"/>
...@@ -136,8 +111,6 @@ ...@@ -136,8 +111,6 @@
<column name="META" type="CLOB"/> <column name="META" type="CLOB"/>
<column name="COMPONENT" type="VARCHAR(2000)"/> <column name="COMPONENT" type="VARCHAR(2000)"/>
</createTable> </createTable>
</changeSet>
<changeSet author="mac (generated)" id="1602221967551-10">
<createTable tableName="IBZVIEW"> <createTable tableName="IBZVIEW">
<column name="VIEWID" type="VARCHAR(100)"> <column name="VIEWID" type="VARCHAR(100)">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_DST_VIEW_VIEWID"/> <constraints nullable="false" primaryKey="true" primaryKeyName="PK_DST_VIEW_VIEWID"/>
...@@ -150,4 +123,22 @@ ...@@ -150,4 +123,22 @@
<column name="CFG" type="CLOB"/> <column name="CFG" type="CLOB"/>
</createTable> </createTable>
</changeSet> </changeSet>
<changeSet author="mac (generated)" id="1602221967552-7">
<preConditions onFail="MARK_RAN" >
<not>
<tableExists tableName="IBZPSSYSTEM" />
</not>
</preConditions>
<createTable tableName="IBZPSSYSTEM">
<column name="PSSYSTEMID" type="VARCHAR(100)">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_DST_SYSTEM_PSSYSTEMID"/>
</column>
<column name="PSSYSTEMNAME" type="VARCHAR(100)"/>
<column name="SYSSTRUCTURE" type="CLOB"/>
<column name="APPS" type="CLOB"/>
<column name="MD5CHECK" type="VARCHAR(100)"/>
<column name="SHOWORDER" type="INT"/>
</createTable>
</changeSet>
</databaseChangeLog> </databaseChangeLog>
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-3.8.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
<changeSet author="mac (generated)" id="1603933536067-1">
<addColumn tableName="IBZFIELD">
<column name="ISENABLEAUDIT" type="INTEGER"/>
</addColumn>
</changeSet>
</databaseChangeLog>
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-3.8.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
<changeSet author="mac (generated)" id="1605012125288-1">
<preConditions onFail="MARK_RAN" >
<not>
<tableExists tableName="BLADE_VISUAL" />
</not>
</preConditions>
<createTable tableName="BLADE_VISUAL">
<column name="ID" type="BIGINT">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_BLADE_VISUAL_ID"/>
</column>
<column name="TITLE" type="VARCHAR(255)"/>
<column name="CATEGORY" type="INT"/>
<column name="PASSWORD" type="VARCHAR(255)"/>
<column name="BACKGROUND_URL" type="CLOB"/>
<column name="STATUS" type="INT"/>
<column name="CREATE_TIME" type="TIMESTAMP"/>
<column name="CREATE_DEPT" type="BIGINT"/>
<column name="CREATE_USER" type="BIGINT"/>
<column name="UPDATE_TIME" type="TIMESTAMP"/>
<column name="UPDATE_USER" type="BIGINT"/>
<column name="IS_DELETED" type="INT"/>
</createTable>
<createTable tableName="BLADE_VISUAL_CATEGORY">
<column name="ID" type="BIGINT">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_BLADE_VISUAL_CATEGORY_ID"/>
</column>
<column name="CATEGORY_KEY" type="VARCHAR(12)"/>
<column name="CATEGORY_VALUE" type="VARCHAR(64)"/>
<column name="IS_DELETED" type="INT"/>
</createTable>
<createTable tableName="BLADE_VISUAL_CONFIG">
<column name="ID" type="BIGINT">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_BLADE_VISUAL_CONFIG_ID"/>
</column>
<column name="VISUAL_ID" type="BIGINT"/>
<column name="COMPONENT" type="CLOB"/>
<column name="DETAIL" type="CLOB"/>
</createTable>
<createTable tableName="BLADE_VISUAL_MAP">
<column name="ID" type="BIGINT">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_BLADE_VISUAL_MAP_ID"/>
</column>
<column name="NAME" type="VARCHAR(255)"/>
<column name="DATA" type="CLOB"/>
</createTable>
</changeSet>
</databaseChangeLog>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册