alibaba / funcraft

(have) Fun with Serverless(API Gateway & Function Compute)
MIT License
941 stars 127 forks source link

fun 本地调试支持 custom runtime 吗 #416

Closed joseelin closed 5 years ago

joseelin commented 5 years ago

fun 本地调试支持 custom runtime 吗

# 版本
fun --version
2.16.5
//配置
ROSTemplateFormatVersion: '2015-09-01'
Transform: 'Aliyun::Serverless-2018-04-03'
Resources:
  local-http-test:
    Type: 'Aliyun::Serverless::Service'
    Properties:
      Description: 'local invoke demo'
    golang:
      Type: 'Aliyun::Serverless::Function'
      Properties:
        CodeUri: './bootstrap'
        Description: 'http trigger demo with nodejs8!'
        Runtime: custom //运行环境
        Handler: index.handler
      Events:
        http-test:
          Type: HTTP
          Properties:
            AuthType: ANONYMOUS
            Methods: ['GET', 'POST', 'PUT', 'DELETE', 'HEAD']
# 输出
function compute app listening on port 8000!
invalid runtime name custom
tanhe123 commented 5 years ago

目前 beta 版本是支持 custom runtime 的,可以试下 https://github.com/alibaba/funcraft/releases