张延森 3 gadus atpakaļ
vecāks
revīzija
3f8281a444

+ 25
- 0
deploy/.s/1636896505560465-cn-shanghai-stategrid-service-training-service-httpTraining.json Parādīt failu

@@ -0,0 +1,25 @@
1
+{
2
+  "statefulConfig": {
3
+    "triggerName": "httpTraining",
4
+    "description": "",
5
+    "triggerId": "3a72742e-5dfb-42ee-85e8-327114c4d21e",
6
+    "sourceArn": null,
7
+    "triggerType": "http",
8
+    "invocationRole": null,
9
+    "qualifier": null,
10
+    "urlInternet": null,
11
+    "urlIntranet": null,
12
+    "triggerConfig": {
13
+      "methods": [
14
+        "GET",
15
+        "POST",
16
+        "PUT",
17
+        "DELETE"
18
+      ],
19
+      "authType": "anonymous"
20
+    },
21
+    "createdTime": "2022-02-26T04:51:03Z",
22
+    "lastModifiedTime": "2022-02-26T04:51:03Z",
23
+    "name": "httpTraining"
24
+  }
25
+}

+ 38
- 0
deploy/.s/1636896505560465-cn-shanghai-stategrid-service-training-service.json Parādīt failu

@@ -0,0 +1,38 @@
1
+{
2
+  "statefulConfig": {
3
+    "functionId": "a0bbf48c-d2e2-4f11-b345-f2e6c3ef9831",
4
+    "functionName": "training-service",
5
+    "description": "电网教培",
6
+    "runtime": "custom",
7
+    "handler": "com.yunzhi.training.SpringApplication::main",
8
+    "timeout": 30,
9
+    "initializer": "",
10
+    "initializationTimeout": 3,
11
+    "codeSize": 54020256,
12
+    "codeChecksum": "8858983242407663789",
13
+    "memorySize": 1024,
14
+    "gpuMemorySize": null,
15
+    "environmentVariables": {},
16
+    "createdTime": "2022-02-26T04:51:03Z",
17
+    "lastModifiedTime": "2022-02-26T04:51:03Z",
18
+    "instanceConcurrency": 10,
19
+    "instanceSoftConcurrency": null,
20
+    "customContainerConfig": null,
21
+    "caPort": 9000,
22
+    "instanceType": "e1",
23
+    "layers": null,
24
+    "instanceLifecycleConfig": {
25
+      "preFreeze": {
26
+        "handler": "",
27
+        "timeout": 3
28
+      },
29
+      "preStop": {
30
+        "handler": "",
31
+        "timeout": 3
32
+      }
33
+    },
34
+    "customDNS": null,
35
+    "customRuntimeConfig": null,
36
+    "name": "training-service"
37
+  }
38
+}

+ 36
- 0
deploy/.s/1636896505560465-cn-shanghai-stategrid-service.json Parādīt failu

@@ -0,0 +1,36 @@
1
+{
2
+  "statefulConfig": {
3
+    "serviceName": "stategrid-service",
4
+    "description": "电网项目",
5
+    "role": "",
6
+    "logConfig": {
7
+      "project": "",
8
+      "logstore": "",
9
+      "enableRequestMetrics": false,
10
+      "enableInstanceMetrics": false,
11
+      "logBeginRule": "None"
12
+    },
13
+    "serviceId": "6e96fa7b-9988-4908-b06a-0aa7e510c881",
14
+    "createdTime": "2022-02-26T04:50:56Z",
15
+    "lastModifiedTime": "2022-02-26T04:51:03Z",
16
+    "vpcConfig": {
17
+      "vpcId": "",
18
+      "vSwitchIds": [],
19
+      "securityGroupId": "",
20
+      "role": ""
21
+    },
22
+    "internetAccess": true,
23
+    "nasConfig": {
24
+      "userId": -1,
25
+      "groupId": -1,
26
+      "mountPoints": []
27
+    },
28
+    "vendorConfig": null,
29
+    "tracingConfig": {
30
+      "type": null,
31
+      "params": null,
32
+      "jaegerConfig": null
33
+    },
34
+    "name": "stategrid-service"
35
+  }
36
+}

+ 5
- 0
deploy/bootstrap Parādīt failu

@@ -0,0 +1,5 @@
1
+#!/bin/bash
2
+#
3
+#
4
+
5
+java -jar ./traning-1.0.0.jar

+ 35
- 0
deploy/s.yml Parādīt failu

@@ -0,0 +1,35 @@
1
+edition: 1.0.0          #  命令行YAML规范版本,遵循语义化版本(Semantic Versioning)规范。
2
+name: stategrid-app        #  项目名称。
3
+access: default         #  密钥别名。
4
+
5
+services:
6
+  stategrid: #  服务名称。
7
+    component: devsapp/fc
8
+    props: #  组件的属性值。
9
+      region: cn-shanghai
10
+      service:
11
+        name: stategrid-service
12
+        description: '电网项目'
13
+        internetAccess: true
14
+      function:
15
+        name: training-service
16
+        description: '电网教培'
17
+        ossBucket: yz-serverless
18
+        ossKey: state_grid/traning-1.0.0.zip
19
+        handler: 'com.yunzhi.training.SpringApplication::main'
20
+        memorySize: 1024
21
+        timeout: 30
22
+        runtime: custom
23
+        caPort: 9000
24
+        initializationTimeout: 30
25
+        instanceConcurrency: 10
26
+      triggers:
27
+        - name: httpTraining
28
+          type: http
29
+          config:
30
+            authType: anonymous
31
+            methods:
32
+              - GET
33
+              - POST
34
+              - PUT
35
+              - DELETE

+ 4
- 4
src/main/resources/application-prod.yml Parādīt failu

@@ -1,5 +1,5 @@
1 1
 server:
2
-  port: 8822
2
+  port: 9000
3 3
 ###
4 4
 spring:
5 5
   servlet:
@@ -7,9 +7,9 @@ spring:
7 7
       max-file-size: 10MB
8 8
       max-request-size: 50MB
9 9
   datasource:
10
-    url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/shigongli-v2?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
11
-    username: shigongli
12
-    password: shigongli@123
10
+    url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/stategrid_training?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
11
+    username: stategrid_training
12
+    password: stategrid_training@ABC123
13 13
 
14 14
 
15 15