提交 75a0940f 编写于 作者: ibizdev's avatar ibizdev

lxm1993 部署微服务接口 [TrainSys,默认服务接口]

上级 f69af21f
......@@ -55,6 +55,12 @@
git clone -b master $para2 trainsys/
export NODE_OPTIONS=--max-old-space-size=4096
cd trainsys/
mvn clean package -Ptrainsys
mvn install -Ptrainsys
cd trainsys-provider
mvn -Ptrainsys docker:build
mvn -Ptrainsys docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/trainsys-provider-trainsys.yaml ebsx --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -62,16 +62,16 @@
"name" : "treeexpbar_load"
} ],
"getPSControls" : [ {
"codeName" : "TreeRefreshTestdefaultexpand_cm",
"codeName" : "TreeRefreshTestchildnode_cm",
"controlType" : "CONTEXTMENU",
"logicName" : "刷新测试上下文菜单",
"name" : "defaultexpand_cm",
"name" : "childnode_cm",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/TreeNode.json"
},
"getPSControlParam" : {
"id" : "defaultexpand_cm"
"id" : "childnode_cm"
},
"getPSDEToolbarItems" : [ {
"caption" : "刷新全部",
......@@ -81,7 +81,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "defaultexpand_cm_deuiaction1"
"id" : "childnode_cm_deuiaction1"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
......@@ -113,7 +113,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "defaultexpand_cm_deuiaction2"
"id" : "childnode_cm_deuiaction2"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
......@@ -152,7 +152,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "defaultexpand_cm_deuiaction3"
"id" : "childnode_cm_deuiaction3"
},
"getPSSysImage" : {
"glyph" : "xf044@FontAwesome",
......@@ -203,16 +203,16 @@
"modelid" : "449BCB62-7C41-44C7-B74E-D1345D34DB9E",
"modeltype" : "PSDETOOLBAR"
}, {
"codeName" : "TreeRefreshTestrootnode_cm",
"codeName" : "TreeRefreshTestdefaultexpand_cm",
"controlType" : "CONTEXTMENU",
"logicName" : "刷新测试上下文菜单",
"name" : "rootnode_cm",
"name" : "defaultexpand_cm",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/TreeNode.json"
},
"getPSControlParam" : {
"id" : "rootnode_cm"
"id" : "defaultexpand_cm"
},
"getPSDEToolbarItems" : [ {
"caption" : "刷新全部",
......@@ -222,7 +222,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "rootnode_cm_deuiaction1"
"id" : "defaultexpand_cm_deuiaction1"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
......@@ -254,7 +254,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "rootnode_cm_deuiaction2"
"id" : "defaultexpand_cm_deuiaction2"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
......@@ -293,7 +293,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "rootnode_cm_deuiaction3"
"id" : "defaultexpand_cm_deuiaction3"
},
"getPSSysImage" : {
"glyph" : "xf044@FontAwesome",
......@@ -485,16 +485,16 @@
"modelid" : "449BCB62-7C41-44C7-B74E-D1345D34DB9E",
"modeltype" : "PSDETOOLBAR"
}, {
"codeName" : "TreeRefreshTestchildnode_cm",
"codeName" : "TreeRefreshTestrootnode_cm",
"controlType" : "CONTEXTMENU",
"logicName" : "刷新测试上下文菜单",
"name" : "childnode_cm",
"name" : "rootnode_cm",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/TreeNode.json"
},
"getPSControlParam" : {
"id" : "childnode_cm"
"id" : "rootnode_cm"
},
"getPSDEToolbarItems" : [ {
"caption" : "刷新全部",
......@@ -504,7 +504,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "childnode_cm_deuiaction1"
"id" : "rootnode_cm_deuiaction1"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
......@@ -536,7 +536,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "childnode_cm_deuiaction2"
"id" : "rootnode_cm_deuiaction2"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
......@@ -575,7 +575,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "childnode_cm_deuiaction3"
"id" : "rootnode_cm_deuiaction3"
},
"getPSSysImage" : {
"glyph" : "xf044@FontAwesome",
......@@ -629,9 +629,9 @@
"getPSDETreeNodeRSs" : [ {
"getChildPSDETreeNode" : {
"modelref" : true,
"id" : "defaultExpand"
"id" : "node"
},
"name" : "默认根节点 - 默认展开",
"name" : "默认根节点 - 根节点",
"getParentPSDETreeNode" : {
"modelref" : true,
"id" : "ROOT"
......@@ -797,9 +797,9 @@
}, {
"getChildPSDETreeNode" : {
"modelref" : true,
"id" : "node"
"id" : "defaultExpand"
},
"name" : "默认根节点 - 根节点",
"name" : "默认根节点 - 默认展开",
"getParentPSDETreeNode" : {
"modelref" : true,
"id" : "ROOT"
......
......@@ -300,16 +300,16 @@
"id" : "treeexpbar_tree"
},
"getPSControls" : [ {
"codeName" : "TreeRefreshTestdefaultexpand_cm",
"codeName" : "TreeRefreshTestchildnode_cm",
"controlType" : "CONTEXTMENU",
"logicName" : "刷新测试上下文菜单",
"name" : "defaultexpand_cm",
"name" : "childnode_cm",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/TreeNode.json"
},
"getPSControlParam" : {
"id" : "defaultexpand_cm"
"id" : "childnode_cm"
},
"getPSDEToolbarItems" : [ {
"caption" : "刷新全部",
......@@ -319,7 +319,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "defaultexpand_cm_deuiaction1"
"id" : "childnode_cm_deuiaction1"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
......@@ -351,7 +351,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "defaultexpand_cm_deuiaction2"
"id" : "childnode_cm_deuiaction2"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
......@@ -390,7 +390,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "defaultexpand_cm_deuiaction3"
"id" : "childnode_cm_deuiaction3"
},
"getPSSysImage" : {
"glyph" : "xf044@FontAwesome",
......@@ -441,16 +441,16 @@
"modelid" : "449BCB62-7C41-44C7-B74E-D1345D34DB9E",
"modeltype" : "PSDETOOLBAR"
}, {
"codeName" : "TreeRefreshTestrootnode_cm",
"codeName" : "TreeRefreshTestdefaultexpand_cm",
"controlType" : "CONTEXTMENU",
"logicName" : "刷新测试上下文菜单",
"name" : "rootnode_cm",
"name" : "defaultexpand_cm",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/TreeNode.json"
},
"getPSControlParam" : {
"id" : "rootnode_cm"
"id" : "defaultexpand_cm"
},
"getPSDEToolbarItems" : [ {
"caption" : "刷新全部",
......@@ -460,7 +460,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "rootnode_cm_deuiaction1"
"id" : "defaultexpand_cm_deuiaction1"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
......@@ -492,7 +492,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "rootnode_cm_deuiaction2"
"id" : "defaultexpand_cm_deuiaction2"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
......@@ -531,7 +531,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "rootnode_cm_deuiaction3"
"id" : "defaultexpand_cm_deuiaction3"
},
"getPSSysImage" : {
"glyph" : "xf044@FontAwesome",
......@@ -723,16 +723,16 @@
"modelid" : "449BCB62-7C41-44C7-B74E-D1345D34DB9E",
"modeltype" : "PSDETOOLBAR"
}, {
"codeName" : "TreeRefreshTestchildnode_cm",
"codeName" : "TreeRefreshTestrootnode_cm",
"controlType" : "CONTEXTMENU",
"logicName" : "刷新测试上下文菜单",
"name" : "childnode_cm",
"name" : "rootnode_cm",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/TreeNode.json"
},
"getPSControlParam" : {
"id" : "childnode_cm"
"id" : "rootnode_cm"
},
"getPSDEToolbarItems" : [ {
"caption" : "刷新全部",
......@@ -742,7 +742,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "childnode_cm_deuiaction1"
"id" : "rootnode_cm_deuiaction1"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
......@@ -774,7 +774,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "childnode_cm_deuiaction2"
"id" : "rootnode_cm_deuiaction2"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
......@@ -813,7 +813,7 @@
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "childnode_cm_deuiaction3"
"id" : "rootnode_cm_deuiaction3"
},
"getPSSysImage" : {
"glyph" : "xf044@FontAwesome",
......@@ -867,9 +867,9 @@
"getPSDETreeNodeRSs" : [ {
"getChildPSDETreeNode" : {
"modelref" : true,
"id" : "defaultExpand"
"id" : "node"
},
"name" : "默认根节点 - 默认展开",
"name" : "默认根节点 - 根节点",
"getParentPSDETreeNode" : {
"modelref" : true,
"id" : "ROOT"
......@@ -1035,9 +1035,9 @@
}, {
"getChildPSDETreeNode" : {
"modelref" : true,
"id" : "node"
"id" : "defaultExpand"
},
"name" : "默认根节点 - 根节点",
"name" : "默认根节点 - 默认展开",
"getParentPSDETreeNode" : {
"modelref" : true,
"id" : "ROOT"
......
......@@ -33,7 +33,7 @@
<profiles>
<profile>
<id>runtime</id>
<id>trainsys</id>
<build>
<resources>
<resource>
......
......@@ -10,6 +10,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Duser.timezone=$TZ -Djava.security.egd=file:/dev/./urandom -jar /trainsys-provider.jar
EXPOSE 8081
EXPOSE 50000
ADD trainsys-provider.jar /trainsys-provider.jar
......@@ -22,7 +22,32 @@ spec:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/trainsys-provider:latest
imagePullPolicy: Always
ports:
- containerPort: 8081
- containerPort: 50000
env:
- name: SPRING_CLOUD_NACOS_DISCOVERY_IP
value: "172.16.240.140"
- name: SERVER_PORT
value: "50000"
- name: SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR
value: "172.16.240.140:8848"
- name: SPRING_REDIS_HOST
value: "127.0.0.1"
- name: SPRING_REDIS_PORT
value: "6379"
- name: SPRING_REDIS_DATABASE
value: "0"
- name: SPRING_DATASOURCE_USERNAME
value: "a_LAB01_d23cc850e"
- name: SPRING_DATASOURCE_PASSWORD
value: "f9Df4556"
- name: SPRING_DATASOURCE_URL
value: "jdbc:mysql://172.16.186.185:3306/a_LAB01_d23cc850e?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&serverTimezone=Asia/Shanghai&allowMultiQueries=true&serverTimezone=GMT%2B8"
- name: SPRING_DATASOURCE_DRIVER-CLASS-NAME
value: "com.mysql.jdbc.Driver"
- name: SPRING_DATASOURCE_DEFAULTSCHEMA
value: "a_LAB01_d23cc850e"
- name: NACOS
value: "172.16.240.140:8848"
---
apiVersion: v1
......@@ -35,9 +60,9 @@ spec:
type: NodePort
ports:
- name: http
port: 8081
targetPort: 8081
nodePort: 8081
port: 50000
targetPort: 50000
nodePort: 50000
protocol: TCP
selector:
app: trainsys-provider
......
......@@ -3,9 +3,23 @@ services:
trainsys-provider:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/trainsys-provider:latest
ports:
- "8081:8081"
- "50000:50000"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.140
- SERVER_PORT=50000
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.140:8848
- SPRING_CLOUD_NACOS_CONFIG_SERVER-ADDR=172.16.240.140:8848
- SPRING_REDIS_HOST=127.0.0.1
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_d23cc850e
- SPRING_DATASOURCE_PASSWORD=f9Df4556
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_d23cc850e?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&serverTimezone=Asia/Shanghai&allowMultiQueries=true&serverTimezone=GMT%2B8
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_d23cc850e
- NACOS=172.16.240.140:8848
deploy:
resources:
limits:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册