提交 3c0c97c8 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码 [ibiz-rt,ibizlab-runtime]

上级 a4377c89
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
git clone -b master $para2 ibzrt/ git clone -b master $para2 ibzrt/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibzrt/ cd ibzrt/
mvn clean package -Pweb
cd ibzrt-app/ibzrt-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzrt-app-web.yaml ibzlab-rt --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -12,6 +12,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 /ibzrt-app-web.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzrt-app-web.jar
EXPOSE 30000 EXPOSE 8080
ADD ibzrt-app-web.jar /ibzrt-app-web.jar ADD ibzrt-app-web.jar /ibzrt-app-web.jar
...@@ -3,22 +3,9 @@ services: ...@@ -3,22 +3,9 @@ services:
ibzrt-app-web: ibzrt-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzrt-app-web:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzrt-app-web:latest
ports: ports:
- "30000:30000" - "8080:8080"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=30000
- 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: deploy:
resources: resources:
limits: limits:
......
...@@ -4,157 +4,157 @@ server: ...@@ -4,157 +4,157 @@ server:
#zuul网关路由设置 #zuul网关路由设置
zuul: zuul:
routes: routes:
dict_catalog: dict_catalog:
path: /dict_catalogs/** path: /dict_catalogs/**
serviceId: ${ibiz.ref.service.ibzdict-api:ibzdict-api} serviceId: ${ibiz.ref.service.ibzdict-api:ibzdict-api}
stripPrefix: false stripPrefix: false
dict_option: dict_option:
path: /dict_options/** path: /dict_options/**
serviceId: ${ibiz.ref.service.ibzdict-api:ibzdict-api} serviceId: ${ibiz.ref.service.ibzdict-api:ibzdict-api}
stripPrefix: false stripPrefix: false
jobs_info: jobs_info:
path: /jobs_infos/** path: /jobs_infos/**
serviceId: ${ibiz.ref.service.ibztask-api:ibztask-api} serviceId: ${ibiz.ref.service.ibztask-api:ibztask-api}
stripPrefix: false stripPrefix: false
jobs_lock: jobs_lock:
path: /jobs_locks/** path: /jobs_locks/**
serviceId: ${ibiz.ref.service.ibztask-api:ibztask-api} serviceId: ${ibiz.ref.service.ibztask-api:ibztask-api}
stripPrefix: false stripPrefix: false
jobs_log: jobs_log:
path: /jobs_logs/** path: /jobs_logs/**
serviceId: ${ibiz.ref.service.ibztask-api:ibztask-api} serviceId: ${ibiz.ref.service.ibztask-api:ibztask-api}
stripPrefix: false stripPrefix: false
jobs_registry: jobs_registry:
path: /jobs_registries/** path: /jobs_registries/**
serviceId: ${ibiz.ref.service.ibztask-api:ibztask-api} serviceId: ${ibiz.ref.service.ibztask-api:ibztask-api}
stripPrefix: false stripPrefix: false
sd_file: sd_file:
path: /sd_files/** path: /sd_files/**
serviceId: ${ibiz.ref.service.ibzdisk-api:ibzdisk-api} serviceId: ${ibiz.ref.service.ibzdisk-api:ibzdisk-api}
stripPrefix: false stripPrefix: false
sys_app: sys_app:
path: /sys_apps/** path: /sys_apps/**
serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api} serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_authlog: sys_authlog:
path: /sys_authlogs/** path: /sys_authlogs/**
serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api} serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_dept: sys_dept:
path: /sys_depts/** path: /sys_depts/**
serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api} serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api}
stripPrefix: false stripPrefix: false
sys_deptmember: sys_deptmember:
path: /sys_deptmembers/** path: /sys_deptmembers/**
serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api} serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api}
stripPrefix: false stripPrefix: false
sys_emp: sys_emp:
path: /sys_emps/** path: /sys_emps/**
serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api} serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api}
stripPrefix: false stripPrefix: false
sys_open_access: sys_open_access:
path: /sys_open_accesses/** path: /sys_open_accesses/**
serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api} serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_org: sys_org:
path: /sys_orgs/** path: /sys_orgs/**
serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api} serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api}
stripPrefix: false stripPrefix: false
sys_pssystem: sys_pssystem:
path: /sys_pssystems/** path: /sys_pssystems/**
serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api} serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_permission: sys_permission:
path: /sys_permissions/** path: /sys_permissions/**
serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api} serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_post: sys_post:
path: /sys_posts/** path: /sys_posts/**
serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api} serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api}
stripPrefix: false stripPrefix: false
sys_role: sys_role:
path: /sys_roles/** path: /sys_roles/**
serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api} serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_role_permission: sys_role_permission:
path: /sys_role_permissions/** path: /sys_role_permissions/**
serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api} serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_team: sys_team:
path: /sys_teams/** path: /sys_teams/**
serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api} serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api}
stripPrefix: false stripPrefix: false
sys_teammember: sys_teammember:
path: /sys_teammembers/** path: /sys_teammembers/**
serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api} serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api}
stripPrefix: false stripPrefix: false
sys_user: sys_user:
path: /sys_users/** path: /sys_users/**
serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api} serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_user_auth: sys_user_auth:
path: /sys_user_auths/** path: /sys_user_auths/**
serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api} serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
sys_user_role: sys_user_role:
path: /sys_user_roles/** path: /sys_user_roles/**
serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api} serviceId: ${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix: false stripPrefix: false
wf_group: wf_group:
path: /wf_groups/** path: /wf_groups/**
serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api} serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api}
stripPrefix: false stripPrefix: false
wf_group_member: wf_group_member:
path: /wf_group_members/** path: /wf_group_members/**
serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api} serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api}
stripPrefix: false stripPrefix: false
wf_definition: wf_definition:
path: /wf_definitions/** path: /wf_definitions/**
serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api} serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api}
stripPrefix: false stripPrefix: false
wf_instance: wf_instance:
path: /wf_instances/** path: /wf_instances/**
serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api} serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api}
stripPrefix: false stripPrefix: false
wf_definition_node: wf_definition_node:
path: /wf_definition_nodes/** path: /wf_definition_nodes/**
serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api} serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api}
stripPrefix: false stripPrefix: false
wf_model: wf_model:
path: /wf_models/** path: /wf_models/**
serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api} serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api}
stripPrefix: false stripPrefix: false
wf_pssystem: wf_pssystem:
path: /wf_pssystems/** path: /wf_pssystems/**
serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api} serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api}
stripPrefix: false stripPrefix: false
wf_task: wf_task:
path: /wf_tasks/** path: /wf_tasks/**
serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api} serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api}
stripPrefix: false stripPrefix: false
wf_task_way: wf_task_way:
path: /wf_task_ways/** path: /wf_task_ways/**
serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api} serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api}
stripPrefix: false stripPrefix: false
wf_user: wf_user:
path: /wf_users/** path: /wf_users/**
serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api} serviceId: ${ibiz.ref.service.ibzwf-api:ibzwf-api}
stripPrefix: false stripPrefix: false
loginv7: loginv7:
path: /v7/login path: /v7/login
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api} serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false stripPrefix: false
changepwd: changepwd:
path: /v7/changepwd path: /v7/changepwd
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api} serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false stripPrefix: false
uaa: uaa:
path: /uaa/** path: /uaa/**
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api} serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false stripPrefix: false
config: config:
path: /configs/** path: /configs/**
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api} serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false stripPrefix: false
sensitive-headers: sensitive-headers:
- Cookie,Set-Cookie,Authorization - Cookie,Set-Cookie,Authorization
...@@ -233,12 +233,6 @@ ...@@ -233,12 +233,6 @@
<version>${jsonwebtoken-jjwt.version}</version> <version>${jsonwebtoken-jjwt.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>${alibaba-druid.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.zalando</groupId> <groupId>org.zalando</groupId>
<artifactId>problem-spring-web</artifactId> <artifactId>problem-spring-web</artifactId>
...@@ -351,6 +345,8 @@ ...@@ -351,6 +345,8 @@
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
...@@ -101,7 +101,7 @@ public class ExceptionTranslator implements ProblemHandling { ...@@ -101,7 +101,7 @@ public class ExceptionTranslator implements ProblemHandling {
public static HttpHeaders createFailureAlert(String entityName, String errorKey, String defaultMessage) { public static HttpHeaders createFailureAlert(String entityName, String errorKey, String defaultMessage) {
HttpHeaders headers = new HttpHeaders(); HttpHeaders headers = new HttpHeaders();
headers.add("X-ibz-error", "error." + errorKey); headers.add("X-ibz-error", errorKey);
headers.add("X-ibz-params", entityName); headers.add("X-ibz-params", entityName);
return headers; return headers;
} }
......
...@@ -59,6 +59,7 @@ public class AppController { ...@@ -59,6 +59,7 @@ public class AppController {
appData.put("enablepermissionvalid",false); appData.put("enablepermissionvalid",false);
else else
appData.put("enablepermissionvalid",enablePermissionValid); appData.put("enablepermissionvalid",enablePermissionValid);
fillAppData(appData);
return ResponseEntity.status(HttpStatus.OK).body(appData); return ResponseEntity.status(HttpStatus.OK).body(appData);
} }
...@@ -87,4 +88,12 @@ public class AppController { ...@@ -87,4 +88,12 @@ public class AppController {
throw new BadRequestAlertException("获取配置失败,参数缺失","IBZConfig",configType); throw new BadRequestAlertException("获取配置失败,参数缺失","IBZConfig",configType);
return ResponseEntity.ok(ibzConfigService.getConfig(configType,targetType,userId)); return ResponseEntity.ok(ibzConfigService.getConfig(configType,targetType,userId));
} }
/**
* 应用参数扩展
* @param appData
*/
protected void fillAppData(JSONObject appData){
}
} }
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册