serverless-devs / serverless-devs Goto Github PK
View Code? Open in Web Editor NEW:fire::fire::fire: Serverless Devs developer tool ( Serverless Devs 开发者工具 )
Home Page: https://www.serverless-devs.com
License: Apache License 2.0
:fire::fire::fire: Serverless Devs developer tool ( Serverless Devs 开发者工具 )
Home Page: https://www.serverless-devs.com
License: Apache License 2.0
1.每次Deploy 都会在一个服务下新建一个新的函数,并且绑定一个新的临时域名。
2.Remove 操作无法停止正常工作的函数,只能简单的移除服务。
可以考虑将这两个API更加完整包装
Yaml解析规则:
打来的影响:
Global:
Region: cn-shenzhen
Runtime: nodejs12
Handler: index.handler
Service:
Name: ServerlessPerf
Description: 欢迎使用ServerlessPerf
TriggerParameters:
AuthType: ANONYMOUS
Methods:
- GET
- POST
- PUT
Domains:
- Domain: Auto
Sleep:
Component: fc
Provider: alibaba
Properties:
Region: ${Global.Region}
Service: ${Global.Service}
Function:
Name: sleep
Description: Sleep指定的毫秒数
CodeUri: ./sleep
Handler: ${Global.Handler}
MemorySize: 512
Runtime: ${Global.Runtime}
Timeout: 30
Triggers:
- Name: TriggerSleep
Type: HTTP
Parameters: ${Global.TriggerParameters}
这样的话就会导致Sleep
中的Service
无法读取到正确配置(因为数据类型出问题了)
华为云函数组件开发,希望可以支持以下能力
创建函数可以参考:https://support.huaweicloud.com/api-functiongraph/functiongraph_06_0108.html
创建触发器可以参考:https://support.huaweicloud.com/api-functiongraph/functiongraph_06_0122.html
删除函数可以参考:https://support.huaweicloud.com/api-functiongraph/functiongraph_06_0109.html
删除触发器可以参考:https://support.huaweicloud.com/api-functiongraph/functiongraph_06_0123.html
主要工作流程:
Serverless Devs Tool(即s-cli),已经发布一段时间了,现在开始s-cli的整体要进行规范化操作。
Describe the bug
A clear and concise description of what the bug is.
s [method] --option ${optionContent}
无法读取 optionContent,此时程序内读取的参数 option
的值为 true
,但是期望是 ${optionContent}
,s exec -- [method] --option ${optionContent}
则符合期望
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
win10 2004版本
部署后,状态栏左上角已经显示部署结束,里面Triggers:为空。阿里云函数界面未找到对应函数。
Start ......
It is detected that your project has the following project/projects < MyFunctionDemo > to be execute
Start executing project MyFunctionDemo
Waiting for service ServerlessToolProject to be deployed...
(node:13072) ExperimentalWarning: The fs.promises API is experimental
service ServerlessToolProject deploy success
Waiting for function serverless_demo_python3 to be deployed...
Packing ... file .s is ignored. Package complete.
Function: ServerlessToolProject@serverless_demo_python3 updating ...
Deploy function serverless_demo_python3 successfully
function serverless_demo_python3 deploy success
Project MyFunctionDemo successfully to execute
MyFunctionDemo:
Service: ServerlessToolProject
Function: serverless_demo_python3
Triggers: []
希望可以有一个Serverless的社区应用中心,可以在这个社区网站上面看到目前Serverless Devs(指定registry.devsapp.cn)官方源的所有应用,插件,组件,并且支持搜索等功能。
需要支持的功能
Originally posted by @anycodes in #87 (comment)
Waiting for function s-function-1604902498972 to be deployed...
Packing ...
Package complete.
Function: s-service@s-function-1604902498972 updating ...
s-service:s-function-1604902498972 update failed: PUT /services/s-service/functions/s-function-1604902498972 failed with 400. requestid: 1da5f179-66c0-494c-9ea3-6d54bea75568, message: Code size exceeds the maximum allowed length (max: 52428800, actual: '57224631').
Project NextComponent failed to execute
End of method: deploy
服务商为阿里云包大小超过限制?
目前Serverless Devs的组件库支持了阿里云、腾讯云、AWS的部分能力,需要进一步扩充到华为云、百度智能云、Azure、Google Cloud Platform等
目前显示的问题已经解决,但是在选择完成后,向上重塑配置过程的时候,会出现以下情况:
猜想这个现象是由于滚动产生的。感觉可以进行进一步优化,使之实现的效果更美观。
Originally posted by @david990917 in #124 (comment)
Serverless的一个非常大的问题就是端云联调,目前已经在准备做端云联调,助力Serverless应用的快速开发
Serverless架构是相对来说比较新的技术,也是目前比较火热的技术,随着时间的不断发展,其也被更多人所重视,成为更多企业技术选型的首选。通过Serverless架构虽然在一定程度上做到了降本提效,但是却可能产生更细腻的资源,这些资源的管理,持续集成/发布,逐渐的成为了比较重要的关注点,所以本项目将会是Serverless CI/CD的探索,主要包括Serverless架构下的CI/CD是什么样子的,Serverless本身是否可以做CI/CD,Serverless架构工具链和CI/CD结合后是什么样子的。 例如:
需要:
项目地址:https://github.com/Serverless-Devs/cicd
项目属于中科院开源之夏项目:https://summer.iscas.ac.cn/#/org/prodetail/210770460
同样欢迎所有小伙伴加入。
目前项目中已经包含了四个HTTP Client: Axios, request, download, superagent,我们能否合并到一个HTTP Client上。 考虑到大部分开发者都会使用fetch,而是s是命令行,能否考虑统一到 node-fetch上。
Serverless Devs 目前已经正式对外发布,为了给用户提供更方便的选择,需要提供多种安装模式。
Serverless devs要从根本上支持前后端一体化能力,并将其定义为Serverless Rocket
Serverless devs官网一直处于模糊状态,在这一期需要将官网上线。
主要思路:
采用Docusaurus框架,通过Serverless Devs进行发布,接入Github Action等。
Describe the bug
windows下vsc执行报错
s : 无法加载文件 C:\Users\shang\AppData\Roaming\npm\s.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about
_Execution_Policies。
所在位置 行:1 字符: 1
+ s config get -l
+ ~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Desktop (please complete the following information):
Serverless Devs长期以来定位在Serverless应用开发的全生命周期,但是目前只注重在发布运维等层面,需要进一步前进,在开发态进一步前进。目前暂定开发Serverless Devs SDK来帮助用户更简单,更快速的使用Serverless,玩转Serverless
关于一键安装脚本的计划:
curl -o- -L https://cli.so/s | bash
这里的cli.so
域名是可以用的。
这个方案还请西流评估。
self-check: NAS is set up and running. Shenzhen serverless function is also initialized beforehand. Use the same command as the tutorial at open AI explorer. Default credential is set up using the correct name.
seems like the error is due to a lack of ACR request credentials. Wondering where to set up these credentials.
npm -v 后报错
/usr/lib/node_modules/@serverless-devs/s/node_modules/chalk/source/index.js:106
...styles,
^^^
node -v
v6.17.1
命令:npm install -g @serverless-devs/s
错误信息:
npm ERR! Linux 3.10.0-1127.el7.x86_64
npm ERR! argv "/usr/bin/node" "/bin/npm" "install" "-g" "@serverless-devs/s"
npm ERR! node v5.12.0
npm ERR! npm v3.8.6
npm ERR! code EMISSINGARG
npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror at andLogAndFinish (/usr/lib/node_modules/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror at fetchPackageMetadata (/usr/lib/node_modules/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror at resolveWithNewModule (/usr/lib/node_modules/npm/lib/install/deps.js:455:12)
npm ERR! typeerror at /usr/lib/node_modules/npm/lib/install/deps.js:456:7
npm ERR! typeerror at /usr/lib/node_modules/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror at /usr/lib/node_modules/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror at addRequestedAndFinish (/usr/lib/node_modules/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror at returnAndAddMetadata (/usr/lib/node_modules/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror at pickVersionFromRegistryDocument (/usr/lib/node_modules/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror at /usr/lib/node_modules/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror <http://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/eason/sh/log/npm-debug.log
增加环境划分、版本管理等
百度云函数组件开发,希望可以支持以下能力
创建函数可以参考:https://cloud.baidu.com/doc/CFC/s/xjwvz450q
创建触发器可以参考:https://cloud.baidu.com/doc/CFC/s/njwvz48yg
删除函数可以参考:https://cloud.baidu.com/doc/CFC/s/fjwvz472b
删除触发器可以参考:https://cloud.baidu.com/doc/CFC/s/hjwvz49o0
更新函数配置可以参考:https://cloud.baidu.com/doc/CFC/s/2jwvz44ns
更新触发器可以参考:
https://cloud.baidu.com/doc/CFC/s/zjwvz48js
百度提供了NODEJS的SDK:https://cloud.baidu.com/doc/CFC/s/Djzmii9d0
主要工作流程:
建设一个Github页面,用来放置Serverless贡献者信息
看了好一会文档了,感觉是让一群熟悉各个厂商serverless标准的人为了降低转移厂商的代价来形成这样的跨平台工具,这是很自然的。不能推动标准的建立真的太难了。但是感觉缺乏示例?
Commander.js 7.0 Release notes: https://github.com/tj/commander.js/releases/tag/v7.0.0
Serverless Devs现在的包括主仓库和组件库两个部分。 例如Serverless Devs repo:https://github.com/serverless-devs 在这个repo中,由于Serverless Devs项目是发展中的,所以测试用例目前并不完善。所以该项目的工作是为该项目编写测试用例。 主要包括:
大佬,咨询两个问题,一个是GUI工具是否来源?第二个是GUI的相关后台能否支持私有化部署?
Environment
macOS 11.0.1
node v15.2.0
, npm 7.0.10
@serverless-devs/[email protected]
Description
Run s search
got below error:
➜ s search python
Search failed: Search failed, error: Request failed with status code 503
/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:75
_a = this.checkVersionResult, status = _a.status, statusText = _a.statusText, data = _a.data;
^
TypeError: Cannot read property 'status' of undefined
at CheckVersion.<anonymous> (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:75:59)
at step (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:34:23)
at Object.next (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:15:53)
at /usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:9:71
at new Promise (<anonymous>)
at __awaiter (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:5:12)
at CheckVersion.showMessage (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:71:16)
at Object.<anonymous> (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/command.js:188:42)
at step (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/command.js:34:23)
at Object.next (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/command.js:15:53)
Run s gui
got similar error:
➜ s gui
Error: Request failed with status code 400
/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:75
_a = this.checkVersionResult, status = _a.status, statusText = _a.statusText, data = _a.data;
^
TypeError: Cannot read property 'status' of undefined
at CheckVersion.<anonymous> (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:75:59)
at step (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:34:23)
at Object.next (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:15:53)
at /usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:9:71
at new Promise (<anonymous>)
at __awaiter (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:5:12)
at CheckVersion.showMessage (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/check-version.js:71:16)
at Object.<anonymous> (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/command.js:188:42)
at step (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/command.js:34:23)
at Object.next (/usr/local/lib/node_modules/@serverless-devs/s/lib/utils/command.js:15:53)
Run s -v
returns nothing:
➜ s -v
It seems there are some bugs in the lib/utils/check-version.js
file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.