提交 79d9de46 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 部署微服务应用

上级 5a7be831
...@@ -176,8 +176,8 @@ ...@@ -176,8 +176,8 @@
"viewtag": "9ed83d4d91fedf510a43bbe8908a21ba" "viewtag": "9ed83d4d91fedf510a43bbe8908a21ba"
}, },
"ouindexview": { "ouindexview": {
"title": "ibizlab-ou", "title": "organizational-unit",
"caption": "ibizlab-ou", "caption": "ibizlab",
"viewtype": "APPINDEXVIEW", "viewtype": "APPINDEXVIEW",
"viewmodule": "ou", "viewmodule": "ou",
"viewname": "OUIndexView", "viewname": "OUIndexView",
......
...@@ -54,8 +54,8 @@ export default { ...@@ -54,8 +54,8 @@ export default {
// 非实体视图 // 非实体视图
views: { views: {
ouindexview: { ouindexview: {
caption: "ibizlab-ou", caption: "ibizlab",
title: "ibizlab-ou", title: "organizational-unit",
}, },
}, },
utilview:{ utilview:{
......
...@@ -54,8 +54,8 @@ export default { ...@@ -54,8 +54,8 @@ export default {
// 非实体视图 // 非实体视图
views: { views: {
ouindexview: { ouindexview: {
caption: "ibizlab-ou", caption: "ibizlab",
title: "ibizlab-ou", title: "organizational-unit",
}, },
}, },
utilview:{ utilview:{
......
...@@ -79,7 +79,7 @@ mock.onGet('v7/ouindex-viewappmenu').reply((config: any) => { ...@@ -79,7 +79,7 @@ mock.onGet('v7/ouindex-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-simplybuilt', iconcls: 'fa fa-simplybuilt',
icon: '', icon: '',
textcls: '', textcls: '',
appfunctag: '_2', appfunctag: 'Auto6',
resourcetag: '', resourcetag: '',
}, },
{ {
...@@ -97,7 +97,7 @@ mock.onGet('v7/ouindex-viewappmenu').reply((config: any) => { ...@@ -97,7 +97,7 @@ mock.onGet('v7/ouindex-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-group', iconcls: 'fa fa-group',
icon: '', icon: '',
textcls: '', textcls: '',
appfunctag: '_3', appfunctag: 'Auto7',
resourcetag: '', resourcetag: '',
}, },
], ],
......
...@@ -184,8 +184,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -184,8 +184,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "9ed83d4d91fedf510a43bbe8908a21ba" "viewtag": "9ed83d4d91fedf510a43bbe8908a21ba"
}, },
"ouindexview": { "ouindexview": {
"title": "ibizlab-ou", "title": "organizational-unit",
"caption": "ibizlab-ou", "caption": "ibizlab",
"viewtype": "APPINDEXVIEW", "viewtype": "APPINDEXVIEW",
"viewmodule": "ou", "viewmodule": "ou",
"viewname": "OUIndexView", "viewname": "OUIndexView",
......
...@@ -580,8 +580,8 @@ export default class OUIndexViewBase extends Vue implements ControlInterface { ...@@ -580,8 +580,8 @@ export default class OUIndexViewBase extends Vue implements ControlInterface {
navDataService.removeNavData(this.viewtag); navDataService.removeNavData(this.viewtag);
} }
switch (item.appfunctag) { switch (item.appfunctag) {
case '_2': case 'Auto6':
this.click_2(item); this.clickAuto6(item);
return; return;
case 'Auto5': case 'Auto5':
this.clickAuto5(item); this.clickAuto5(item);
...@@ -589,8 +589,8 @@ export default class OUIndexViewBase extends Vue implements ControlInterface { ...@@ -589,8 +589,8 @@ export default class OUIndexViewBase extends Vue implements ControlInterface {
case 'Auto3': case 'Auto3':
this.clickAuto3(item); this.clickAuto3(item);
return; return;
case '_3': case 'Auto7':
this.click_3(item); this.clickAuto7(item);
return; return;
case 'Auto4': case 'Auto4':
this.clickAuto4(item); this.clickAuto4(item);
...@@ -608,7 +608,7 @@ export default class OUIndexViewBase extends Vue implements ControlInterface { ...@@ -608,7 +608,7 @@ export default class OUIndexViewBase extends Vue implements ControlInterface {
* @param {*} [item={}] * @param {*} [item={}]
* @memberof OUIndexView * @memberof OUIndexView
*/ */
public click_2(item: any = {}) { public clickAuto6(item: any = {}) {
const viewparam: any = {}; const viewparam: any = {};
Object.assign(viewparam, {}); Object.assign(viewparam, {});
const deResParameters: any[] = []; const deResParameters: any[] = [];
...@@ -677,7 +677,7 @@ export default class OUIndexViewBase extends Vue implements ControlInterface { ...@@ -677,7 +677,7 @@ export default class OUIndexViewBase extends Vue implements ControlInterface {
* @param {*} [item={}] * @param {*} [item={}]
* @memberof OUIndexView * @memberof OUIndexView
*/ */
public click_3(item: any = {}) { public clickAuto7(item: any = {}) {
const viewparam: any = {}; const viewparam: any = {};
Object.assign(viewparam, {}); Object.assign(viewparam, {});
const deResParameters: any[] = []; const deResParameters: any[] = [];
......
...@@ -86,7 +86,7 @@ export default class OUIndexViewModel { ...@@ -86,7 +86,7 @@ export default class OUIndexViewModel {
iconcls: 'fa fa-simplybuilt', iconcls: 'fa fa-simplybuilt',
icon: '', icon: '',
textcls: '', textcls: '',
appfunctag: '_2', appfunctag: 'Auto6',
resourcetag: '', resourcetag: '',
authtag:'web-OUIndexView-menuitem4', authtag:'web-OUIndexView-menuitem4',
}, },
...@@ -105,7 +105,7 @@ export default class OUIndexViewModel { ...@@ -105,7 +105,7 @@ export default class OUIndexViewModel {
iconcls: 'fa fa-group', iconcls: 'fa fa-group',
icon: '', icon: '',
textcls: '', textcls: '',
appfunctag: '_3', appfunctag: 'Auto7',
resourcetag: '', resourcetag: '',
authtag:'web-OUIndexView-menuitem5', authtag:'web-OUIndexView-menuitem5',
}, },
...@@ -120,7 +120,7 @@ export default class OUIndexViewModel { ...@@ -120,7 +120,7 @@ export default class OUIndexViewModel {
*/ */
public funcs: any[] = [ public funcs: any[] = [
{ {
appfunctag: '_2', appfunctag: 'Auto6',
appfuncyype: 'APPVIEW', appfuncyype: 'APPVIEW',
openmode: '', openmode: '',
codename: 'ibzpostgridview', codename: 'ibzpostgridview',
...@@ -156,7 +156,7 @@ export default class OUIndexViewModel { ...@@ -156,7 +156,7 @@ export default class OUIndexViewModel {
], ],
}, },
{ {
appfunctag: '_3', appfunctag: 'Auto7',
appfuncyype: 'APPVIEW', appfuncyype: 'APPVIEW',
openmode: '', openmode: '',
codename: 'ibzteamgridview', codename: 'ibzteamgridview',
......
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
git clone -b master $para2 ibzou/ git clone -b master $para2 ibzou/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibzou/ cd ibzou/
mvn clean package -Papi mvn clean package -Pweb
cd ibzou-provider/ibzou-provider-api cd ibzou-app/ibzou-app-web
mvn -Papi docker:build mvn -Pweb docker:build
mvn -Papi docker:push mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzou-provider-api.yaml ibzlab-rt --with-registry-auth docker -H $para1 stack deploy --compose-file=src/main/docker/ibzou-app-web.yaml ibzlab-rt --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -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 /ibzou-app-web.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-app-web.jar
EXPOSE 8080 EXPOSE 30001
ADD ibzou-app-web.jar /ibzou-app-web.jar ADD ibzou-app-web.jar /ibzou-app-web.jar
...@@ -3,9 +3,22 @@ services: ...@@ -3,9 +3,22 @@ services:
ibzou-app-web: ibzou-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-app-web:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-app-web:latest
ports: ports:
- "8080:8080" - "30001:30001"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=30001
- 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
- NACOS=172.16.102.211:8848
deploy: deploy:
resources: resources:
limits: limits:
......
...@@ -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 /ibzou-provider-api.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzou-provider-api.jar
EXPOSE 40001 EXPOSE 8081
ADD ibzou-provider-api.jar /ibzou-provider-api.jar ADD ibzou-provider-api.jar /ibzou-provider-api.jar
...@@ -3,22 +3,9 @@ services: ...@@ -3,22 +3,9 @@ services:
ibzou-provider-api: ibzou-provider-api:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-provider-api:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-provider-api:latest
ports: ports:
- "40001:40001" - "8081:8081"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=40001
- 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
- NACOS=172.16.102.211:8848
deploy: deploy:
resources: resources:
limits: limits:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册