提交 55e4735f 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 部署微服务接口

上级 bad22862
...@@ -37,6 +37,11 @@ ...@@ -37,6 +37,11 @@
git clone -b master $para2 ibzwf/ git clone -b master $para2 ibzwf/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibzwf/ cd ibzwf/
mvn clean package -Papi
cd ibzwf-provider/ibzwf-provider-api
mvn -Papi docker:build
mvn -Papi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzwf-provider-api.yaml ibzlab-rt --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -105,7 +105,6 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl ...@@ -105,7 +105,6 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl
public boolean checkKey(WFGroup et) { public boolean checkKey(WFGroup et) {
return (!ObjectUtils.isEmpty(et.getId()))&&(!Objects.isNull(this.getById(et.getId()))); return (!ObjectUtils.isEmpty(et.getId()))&&(!Objects.isNull(this.getById(et.getId())));
} }
@Override @Override
@Transactional @Transactional
public boolean create(WFGroup et) { public boolean create(WFGroup et) {
...@@ -191,3 +190,4 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl ...@@ -191,3 +190,4 @@ public class WFGroupServiceImpl extends ServiceImpl<WFGroupMapper, WFGroup> impl
} }
...@@ -110,3 +110,4 @@ public class WFHistoryServiceImpl implements IWFHistoryService { ...@@ -110,3 +110,4 @@ public class WFHistoryServiceImpl implements IWFHistoryService {
} }
...@@ -57,7 +57,6 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i ...@@ -57,7 +57,6 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
public boolean checkKey(WFMember et) { public boolean checkKey(WFMember et) {
return (!ObjectUtils.isEmpty(et.getMemberid()))&&(!Objects.isNull(this.getById(et.getMemberid()))); return (!ObjectUtils.isEmpty(et.getMemberid()))&&(!Objects.isNull(this.getById(et.getMemberid())));
} }
@Override @Override
public WFMember getDraft(WFMember et) { public WFMember getDraft(WFMember et) {
fillParentData(et); fillParentData(et);
...@@ -272,3 +271,4 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i ...@@ -272,3 +271,4 @@ public class WFMemberServiceImpl extends ServiceImpl<WFMemberMapper, WFMember> i
} }
...@@ -109,7 +109,6 @@ public class WFProcessDefinitionServiceImpl extends ServiceImpl<WFProcessDefinit ...@@ -109,7 +109,6 @@ public class WFProcessDefinitionServiceImpl extends ServiceImpl<WFProcessDefinit
public boolean checkKey(WFProcessDefinition et) { public boolean checkKey(WFProcessDefinition et) {
return (!ObjectUtils.isEmpty(et.getDefinitionkey()))&&(!Objects.isNull(this.getById(et.getDefinitionkey()))); return (!ObjectUtils.isEmpty(et.getDefinitionkey()))&&(!Objects.isNull(this.getById(et.getDefinitionkey())));
} }
@Override @Override
public WFProcessDefinition getDraft(WFProcessDefinition et) { public WFProcessDefinition getDraft(WFProcessDefinition et) {
return et; return et;
...@@ -184,3 +183,4 @@ public class WFProcessDefinitionServiceImpl extends ServiceImpl<WFProcessDefinit ...@@ -184,3 +183,4 @@ public class WFProcessDefinitionServiceImpl extends ServiceImpl<WFProcessDefinit
} }
...@@ -110,3 +110,4 @@ public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService { ...@@ -110,3 +110,4 @@ public class WFProcessInstanceServiceImpl implements IWFProcessInstanceService {
} }
...@@ -110,3 +110,4 @@ public class WFProcessNodeServiceImpl implements IWFProcessNodeService { ...@@ -110,3 +110,4 @@ public class WFProcessNodeServiceImpl implements IWFProcessNodeService {
} }
...@@ -127,7 +127,6 @@ public class WFSystemServiceImpl extends ServiceImpl<WFSystemMapper, WFSystem> i ...@@ -127,7 +127,6 @@ public class WFSystemServiceImpl extends ServiceImpl<WFSystemMapper, WFSystem> i
public boolean checkKey(WFSystem et) { public boolean checkKey(WFSystem et) {
return (!ObjectUtils.isEmpty(et.getPssystemid()))&&(!Objects.isNull(this.getById(et.getPssystemid()))); return (!ObjectUtils.isEmpty(et.getPssystemid()))&&(!Objects.isNull(this.getById(et.getPssystemid())));
} }
@Override @Override
@Transactional @Transactional
public WFSystem get(String key) { public WFSystem get(String key) {
...@@ -184,3 +183,4 @@ public class WFSystemServiceImpl extends ServiceImpl<WFSystemMapper, WFSystem> i ...@@ -184,3 +183,4 @@ public class WFSystemServiceImpl extends ServiceImpl<WFSystemMapper, WFSystem> i
} }
...@@ -110,3 +110,4 @@ public class WFTaskServiceImpl implements IWFTaskService { ...@@ -110,3 +110,4 @@ public class WFTaskServiceImpl implements IWFTaskService {
} }
...@@ -110,3 +110,4 @@ public class WFTaskWayServiceImpl implements IWFTaskWayService { ...@@ -110,3 +110,4 @@ public class WFTaskWayServiceImpl implements IWFTaskWayService {
} }
...@@ -145,7 +145,6 @@ public class WFUserServiceImpl extends ServiceImpl<WFUserMapper, WFUser> impleme ...@@ -145,7 +145,6 @@ public class WFUserServiceImpl extends ServiceImpl<WFUserMapper, WFUser> impleme
} }
/** /**
* 查询集合 DEFAULT * 查询集合 DEFAULT
*/ */
...@@ -187,3 +186,4 @@ public class WFUserServiceImpl extends ServiceImpl<WFUserMapper, WFUser> impleme ...@@ -187,3 +186,4 @@ public class WFUserServiceImpl extends ServiceImpl<WFUserMapper, WFUser> impleme
} }
...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzwf-provider-api.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzwf-provider-api.jar
EXPOSE 8081 EXPOSE 40003
ADD ibzwf-provider-api.jar /ibzwf-provider-api.jar ADD ibzwf-provider-api.jar /ibzwf-provider-api.jar
...@@ -3,9 +3,21 @@ services: ...@@ -3,9 +3,21 @@ services:
ibzwf-provider-api: ibzwf-provider-api:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzwf-provider-api:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzwf-provider-api:latest
ports: ports:
- "8081:8081" - "40003:40003"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=40003
- 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
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
deploy: deploy:
resources: resources:
limits: limits:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册