소스 검색

yaml minor update

dengjia 1 개월 전
부모
커밋
8048c6783a
1개의 변경된 파일27개의 추가작업 그리고 0개의 파일을 삭제
  1. 27 0
      image-dup-check.yaml

+ 27 - 0
image-dup-check.yaml

@@ -55,3 +55,30 @@ services:
         timeout: 300
         # initializationTimeout: 60
         # initializer: example.App::initialize
+  image-dup-check-result-generate: # 业务名称/模块名称
+    component: fc # 组件名称,Serverless Devs 工具本身类似于一种游戏机,不具备具体的业务能力,组件类似于游戏卡,用户通过向游戏机中插入不同的游戏卡实现不同的功能,即通过使用不同的组件实现不同的具体业务能力
+    actions: # 自定义执行逻辑,关于actions 的使用,可以参考:https://www.serverless-devs.com/serverless-devs/yaml#行为描述
+      pre-deploy: # 在deploy之前运行
+        - run: mvn package
+          path: ./
+    #        - component: fc build --use-docker --dockerfile ./code/Dockerfile  # 要运行的组件,格式为【component: 组件名 命令 参数】(可以通过s cli registry search --type Component 获取组件列表)
+    #        - run: docker build xxx          # 要执行的系统命令,类似于一种钩子的形式
+    #          path: ./src                    # 执行系统命令/钩子的路径
+    #        - plugin: myplugin               # 与运行的插件 (可以通过s cli registry search --type Plugin 获取组件列表)
+    #          args:                          # 插件的参数信息
+    #            testKey: testValue
+    #      post-deploy: # 在deploy之后运行
+    #        - component: fc versions publish # 要运行的命令行
+    props:
+      region: ${vars.region} # 关于变量的使用方法,可以参考:https://www.serverless-devs.com/serverless-devs/yaml#变量赋值
+      service: ${vars.service}
+      function:
+        name: image-dup-check-result-generate
+        description: ""
+        runtime: java11
+        codeUri: ./target
+        handler: com.yaoyicloud.ai.pipeline.fc.ImageDupCheckResultGenerateHandler::handleRequest
+        memorySize: 128
+        timeout: 300
+        # initializationTimeout: 60
+        # initializer: example.App::initialize