提交 04aeea74 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 部署微服务应用

上级 ba7742e1
......@@ -37,6 +37,11 @@
git clone -b master $para2 ibzlite/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzlite/
mvn clean package -Pweb
cd ibzlite-app/ibzlite-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzlite-app-web.yaml ibzlab-rt --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzlite-app-web.jar
EXPOSE 8080
EXPOSE 30010
ADD ibzlite-app-web.jar /ibzlite-app-web.jar
......@@ -3,9 +3,22 @@ services:
ibzlite-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzlite-app-web:latest
ports:
- "8080:8080"
- "30010:30010"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=30010
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
- SPRING_DATASOURCE_PASSWORD=@6dEfb3@
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
- NACOS=172.16.102.211:8848
deploy:
resources:
limits:
......
!!!!模版产生代码错误:----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${dbinst.getUserName()} [in template "CODETEMPL_en_US" at line 28, column 24]
----
\ No newline at end of file
<?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: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/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<!--输出实体[DST_COMPONENT]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_component-53-1">
<createTable tableName="IBZCOMPONENT">
<column name="CID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_COMPONENT_CID"/>
</column>
<column name="CNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SYSTEMID" remarks="" type="VARCHAR(100)">
</column>
<column name="APPID" remarks="" type="VARCHAR(100)">
</column>
<column name="CTYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
</column>
<column name="CFG" remarks="" type="TEXT(1048576)">
</column>
</createTable>
</changeSet>
<!--输出实体[DST_CONFIG]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_config-23-2">
<createTable tableName="IBZCFG">
<column name="CFGID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_CONFIG_CFGID"/>
</column>
<column name="SYSTEMID" remarks="" type="VARCHAR(100)">
</column>
<column name="CFGTYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="TARGETTYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="USERID" remarks="" type="VARCHAR(100)">
</column>
<column name="CFG" remarks="" type="TEXT(1048576)">
</column>
<column name="UPDATEDATE" remarks="" type="DATETIME">
</column>
</createTable>
</changeSet>
<!--输出实体[DST_DATASOURCE]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_datasource-26-3">
<createTable tableName="IBZDATASOURCE">
<column name="DSID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_DATASOURCE_DSID"/>
</column>
<column name="DSNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="DSTYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="DSCFG" remarks="" type="VARCHAR(4000)">
</column>
</createTable>
</changeSet>
<!--输出实体[DST_ROUTER]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_router-30-4">
<createTable tableName="IBZROUTER">
<column name="ROUTERID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_ROUTER_ROUTERID"/>
</column>
<column name="ROUTERNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SYSTEMID" remarks="" type="VARCHAR(100)">
</column>
<column name="APPID" remarks="" type="VARCHAR(100)">
</column>
<column name="ROUTERPATH" remarks="" type="VARCHAR(255)">
</column>
<column name="PARENTID" remarks="" type="VARCHAR(100)">
</column>
<column name="META" remarks="" type="TEXT(1048576)">
</column>
<column name="COMPONENT" remarks="" type="VARCHAR(2000)">
</column>
</createTable>
</changeSet>
<!--输出实体[DST_SYSTEM]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_system-36-5">
<createTable tableName="IBZPSSYSTEM">
<column name="PSSYSTEMID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_SYSTEM_PSSYSTEMID"/>
</column>
<column name="PSSYSTEMNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SYSSTRUCTURE" remarks="" type="TEXT(1048576)">
</column>
<column name="APPS" remarks="" type="TEXT(1048576)">
</column>
<column name="MD5CHECK" remarks="" type="VARCHAR(100)">
</column>
<column name="SHOWORDER" remarks="" type="INT">
</column>
</createTable>
</changeSet>
<!--输出实体[DST_VIEW]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_view-36-6">
<createTable tableName="IBZVIEW">
<column name="VIEWID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_VIEW_VIEWID"/>
</column>
<column name="VIEWNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="VIEWPATH" remarks="" type="VARCHAR(255)">
</column>
<column name="SYSTEMID" remarks="" type="VARCHAR(100)">
</column>
<column name="APPID" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
</column>
<column name="CFG" remarks="" type="TEXT(1048576)">
</column>
</createTable>
</changeSet>
<!--输出实体[META_DATASET]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_dataset-32-7">
<createTable tableName="IBZDATASET">
<column name="DATASETID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_DATASET_DATASETID"/>
</column>
<column name="DATASETNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="DSCODE" remarks="" type="TEXT(1048576)">
</column>
<column name="DSMODEL" remarks="" type="TEXT(1048576)">
</column>
</createTable>
</changeSet>
<!--输出实体[META_ENTITY]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_entity-71-8">
<createTable tableName="IBZENTITY">
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_ENTITY_ENTITYID"/>
</column>
<column name="ENTITYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="LOGICNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="TABLENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SYSTEMID" remarks="" type="VARCHAR(100)">
</column>
<column name="DSID" remarks="" type="VARCHAR(100)">
</column>
</createTable>
</changeSet>
<!--输出实体[META_FIELD]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_field-144-9">
<createTable tableName="IBZFIELD">
<column name="FIELDID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_FIELD_FIELDID"/>
</column>
<column name="FIELDNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELDLOGICNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="REFFIELDID" remarks="" type="VARCHAR(100)">
</column>
<column name="REFFIELDNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="RELATIONID" remarks="" type="VARCHAR(100)">
</column>
<column name="RELATIONNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="KEYFIELD" remarks="" type="INT">
</column>
<column name="MAJORFIELD" remarks="" type="INT">
</column>
<column name="UNIONKEY" remarks="" type="VARCHAR(70)">
</column>
<column name="FIELDTYPE" remarks="" type="VARCHAR(70)">
</column>
<column name="PREDEFINED" remarks="" type="VARCHAR(70)">
</column>
<column name="DICT" remarks="" type="VARCHAR(100)">
</column>
<column name="NULLABLE" remarks="" type="INT">
</column>
<column name="PHYSICALFIELD" remarks="" type="INT">
</column>
<column name="DATATYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="DATALENGTH" remarks="" type="INT">
</column>
<column name="DATAPRECI" remarks="" type="INT">
</column>
<column name="EXPRESSION" remarks="" type="VARCHAR(2000)">
</column>
<column name="EXTENSIONFIELD" remarks="" type="INT">
</column>
<column name="SHOWORDER" remarks="" type="INT">
</column>
</createTable>
</changeSet>
<!--输出实体[META_MODEL]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_model-14-10">
<createTable tableName="IBZMODEL">
<column name="MODELID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_MODEL_MODELID"/>
</column>
<column name="MODELNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="MODELCFG" remarks="" type="TEXT(1048576)">
</column>
</createTable>
</changeSet>
<!--输出实体[META_MODULE]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_module-13-11">
<createTable tableName="IBZMODULE">
<column name="MODULEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_MODULE_MODULEID"/>
</column>
<column name="MODULENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SYSTEMID" remarks="" type="VARCHAR(100)">
</column>
</createTable>
</changeSet>
<!--输出实体[META_RELATION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_relation-72-12">
<createTable tableName="IBZRELATION">
<column name="RELATIONID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_RELATION_RELATIONID"/>
</column>
<column name="RELATIONNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="RELTYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="REFENTITYID" remarks="" type="VARCHAR(100)">
</column>
<column name="REFENTITYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="NESTEDNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="LOOKUP" remarks="" type="VARCHAR(1000)">
</column>
</createTable>
</changeSet>
<!--输出实体[DST_COMPONENT]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-dst_component-53-13">
<addForeignKeyConstraint baseColumnNames="ENTITYID" baseTableName="IBZCOMPONENT" constraintName="DER1N_DST_COMPONENT_META_ENTIT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ENTITYID" referencedTableName="IBZENTITY" validate="true"/>
</changeSet>
<!--输出实体[DST_CONFIG]外键关系 -->
<!--输出实体[DST_DATASOURCE]外键关系 -->
<!--输出实体[DST_ROUTER]外键关系 -->
<!--输出实体[DST_SYSTEM]外键关系 -->
<!--输出实体[DST_VIEW]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-dst_view-36-14">
<addForeignKeyConstraint baseColumnNames="ENTITYID" baseTableName="IBZVIEW" constraintName="DER1N_DST_VIEW_META_ENTITY_ENT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ENTITYID" referencedTableName="IBZENTITY" validate="true"/>
</changeSet>
<!--输出实体[META_DATASET]外键关系 -->
<!--输出实体[META_ENTITY]外键关系 -->
<!--输出实体[META_FIELD]外键关系 -->
<!--输出实体[META_MODEL]外键关系 -->
<!--输出实体[META_MODULE]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-meta_module-13-15">
<addForeignKeyConstraint baseColumnNames="SYSTEMID" baseTableName="IBZMODULE" constraintName="DER1N_META_MODULE_DST_SYSTEM_S" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PSSYSTEMID" referencedTableName="IBZPSSYSTEM" validate="true"/>
</changeSet>
<!--输出实体[META_RELATION]外键关系 -->
</databaseChangeLog>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册