-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
118 changed files
with
1,858 additions
and
1,192 deletions.
There are no files selected for viewing
24 changes: 12 additions & 12 deletions
24
custom-container-function/fc-custom-container-event-cpp/hook/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 33 additions & 12 deletions
45
custom-container-function/fc-custom-container-event-cpp/src/s.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,59 @@ | ||
# ------------------------------------ | ||
# 欢迎您使用阿里云函数计算 FC 组件进行项目开发 | ||
# 组件仓库地址/帮助文档:https://github.com/devsapp/fc | ||
# Yaml参考文档:https://github.com/devsapp/fc/blob/main/docs/zh/yaml.md | ||
# 快速入门: | ||
# 快速创建应用:https://github.com/devsapp/fc/blob/main/docs/zh/quick_start_application.md | ||
# 快速使用命令:https://github.com/devsapp/fc/blob/main/docs/zh/quick_start_function.md | ||
# Yaml参考文档:https://github.com/devsapp/fc/blob/jiangyu-docs/docs/zh/yaml.md | ||
# 关于: | ||
# - Serverless Devs和FC组件的关系、如何声明/部署多个函数、超过50M的代码包如何部署 | ||
# - 关于.fcignore使用方法、工具中.s目录是做什么、函数进行build操作之后如何处理build的产物 | ||
# 等问题,可以参考文档:https://github.com/devsapp/fc/blob/jiangyu-docs/docs/zh/tips.md | ||
# 关于如何做CICD等问题,可以参考:https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/cicd.md | ||
# 有问题快来钉钉群问一下吧:33947367 | ||
# ------------------------------------ | ||
|
||
edition: 1.0.0 | ||
name: helloworldApp | ||
name: hello-world-app | ||
access: "{{ access }}" | ||
vars: | ||
|
||
vars: # 全局变量 | ||
region: cn-hangzhou | ||
service: | ||
name: hello-world-service | ||
description: 'hello world by serverless devs' | ||
|
||
services: | ||
helloworld: | ||
component: fc | ||
helloworld: # 业务名称/模块名称 | ||
actions: # 自定义执行逻辑 | ||
pre-deploy: # 在deploy之前运行 | ||
- run: s build --use-docker --dockerfile ./code/Dockerfile # 要运行的命令行 | ||
path: ./ # 命令行运行的路径 | ||
# post-deploy: # 在deploy之后运行 | ||
# - run: s versions # 要运行的命令行 | ||
# path: ./ # 命令行运行的路径 | ||
props: | ||
region: ${vars.region} | ||
service: | ||
name: hello-world-service | ||
service: ${vars.service} | ||
function: | ||
name: cpp-event-function | ||
description: 'hello world by serverless devs' | ||
caPort: 9000 | ||
memorySize: 256 | ||
handler: not-used | ||
timeout: 60 | ||
initializationTimeout: 30 | ||
initializer: not-used | ||
runtime: custom-container | ||
customContainerConfig: | ||
image: registry.cn-hangzhou.aliyuncs.com/fc-demo/fc-springboot-http:v0.1 # 需要换成自己的registry地址 | ||
codeUri: ./code | ||
# next-function: # 第二个函数的案例,仅供参考 | ||
# # 如果在当前项目下执行 s deploy,会同时部署模块: | ||
# # helloworld:服务hello-world-service,函数cpp-event-function | ||
# # next-function:服务hello-world-service,函数next-function-example | ||
# # 如果想单独部署当前服务与函数,可以执行 s + 模块名/业务名 + deploy,例如:s next-function deploy | ||
# # 如果想单独部署当前函数,可以执行 s + 模块名/业务名 + deploy function,例如:s next-function deploy function | ||
# # 更多命令可参考:https://github.com/devsapp/fc/tree/jiangyu-docs/docs#文档相关 | ||
# component: fc | ||
# props: | ||
# region: ${vars.region} | ||
# service: ${vars.service} # 应用整体的服务配置 | ||
# function: # 定义一个新的函数 | ||
# name: next-function-example | ||
# description: 'hello world by serverless devs' |
24 changes: 12 additions & 12 deletions
24
custom-container-function/fc-custom-container-event-nodejs14/hook/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 33 additions & 11 deletions
44
custom-container-function/fc-custom-container-event-nodejs14/src/s.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,60 @@ | ||
# ------------------------------------ | ||
# 欢迎您使用阿里云函数计算 FC 组件进行项目开发 | ||
# 组件仓库地址/帮助文档:https://github.com/devsapp/fc | ||
# Yaml参考文档:https://github.com/devsapp/fc/blob/main/docs/zh/yaml.md | ||
# 快速入门: | ||
# 快速创建应用:https://github.com/devsapp/fc/blob/main/docs/zh/quick_start_application.md | ||
# 快速使用命令:https://github.com/devsapp/fc/blob/main/docs/zh/quick_start_function.md | ||
# Yaml参考文档:https://github.com/devsapp/fc/blob/jiangyu-docs/docs/zh/yaml.md | ||
# 关于: | ||
# - Serverless Devs和FC组件的关系、如何声明/部署多个函数、超过50M的代码包如何部署 | ||
# - 关于.fcignore使用方法、工具中.s目录是做什么、函数进行build操作之后如何处理build的产物 | ||
# 等问题,可以参考文档:https://github.com/devsapp/fc/blob/jiangyu-docs/docs/zh/tips.md | ||
# 关于如何做CICD等问题,可以参考:https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/cicd.md | ||
# 有问题快来钉钉群问一下吧:33947367 | ||
# ------------------------------------ | ||
|
||
edition: 1.0.0 | ||
name: helloworldApp | ||
name: hello-world-app | ||
access: "{{ access }}" | ||
vars: | ||
|
||
vars: # 全局变量 | ||
region: cn-hangzhou | ||
service: | ||
name: hello-world-service | ||
description: 'hello world by serverless devs' | ||
|
||
services: | ||
helloworld: | ||
helloworld: # 业务名称/模块名称 | ||
component: fc | ||
actions: # 自定义执行逻辑 | ||
pre-deploy: # 在deploy之前运行 | ||
- run: s build --use-docker --dockerfile ./code/Dockerfile # 要运行的命令行 | ||
path: ./ # 命令行运行的路径 | ||
# post-deploy: # 在deploy之后运行 | ||
# - run: s versions # 要运行的命令行 | ||
# path: ./ # 命令行运行的路径 | ||
props: | ||
region: ${vars.region} | ||
service: | ||
name: hello-world-service | ||
service: ${vars.service} | ||
function: | ||
name: nodejs14-event-function | ||
description: 'hello world by serverless devs' | ||
caPort: 9000 | ||
memorySize: 256 | ||
handler: not-used | ||
timeout: 60 | ||
initializationTimeout: 30 | ||
initializer: not-used | ||
runtime: custom-container | ||
customContainerConfig: | ||
image: registry.cn-hangzhou.aliyuncs.com/fc-demo/fc-springboot-http:v0.1 # 需要换成自己的registry地址 | ||
codeUri: ./code | ||
# next-function: # 第二个函数的案例,仅供参考 | ||
# # 如果在当前项目下执行 s deploy,会同时部署模块: | ||
# # helloworld:服务hello-world-service,函数cpp-event-function | ||
# # next-function:服务hello-world-service,函数next-function-example | ||
# # 如果想单独部署当前服务与函数,可以执行 s + 模块名/业务名 + deploy,例如:s next-function deploy | ||
# # 如果想单独部署当前函数,可以执行 s + 模块名/业务名 + deploy function,例如:s next-function deploy function | ||
# # 更多命令可参考:https://github.com/devsapp/fc/tree/jiangyu-docs/docs#文档相关 | ||
# component: fc | ||
# props: | ||
# region: ${vars.region} | ||
# service: ${vars.service} # 应用整体的服务配置 | ||
# function: # 定义一个新的函数 | ||
# name: next-function-example | ||
# description: 'hello world by serverless devs' |
24 changes: 12 additions & 12 deletions
24
custom-container-function/fc-custom-container-event-python3.9/hook/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
custom-container-function/fc-custom-container-http-aspdotnetcore/hook/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.