Skip to content

Commit 263507b

Browse files
committed
update help
1 parent 880d51b commit 263507b

File tree

118 files changed

+1858
-1192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+1858
-1192
lines changed

custom-container-function/fc-custom-container-event-cpp/hook/index.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
async function preInit(inputObj) {
2-
3-
}
4-
5-
async function postInit(inputObj) {
62
console.log(`\n ____ _ _ ___ _ _ _ _____ ____
73
/ _ \\/ \\ / \\\\ \\/// \\ /\\/ \\ /| / // _\\
84
| / \\|| | | | \\ / | | ||| |\\ || | __\\| /
95
| |-||| |_/\\| | / / | \\_/|| | \\|| | | | \\__
10-
\\_/ \\|\\____/\\_//_/ \\____/\\_/ \\| \\_/ \\____/
11-
12-
`)
6+
\\_/ \\|\\____/\\_//_/ \\____/\\_/ \\| \\_/ \\____/`)
7+
}
8+
9+
async function postInit(inputObj) {
1310
console.log(`\n Welcome to the Aliyun FC start application
1411
This application requires to open these services:
1512
FC : https://fc.console.aliyun.com/
16-
This application can help you quickly deploy the aliyun fc project.
17-
The application uses FC component:
18-
* Help Docs : https://github.com/devsapp/fc
19-
* Yaml Config: https://github.com/devsapp/fc/blob/main/docs/zh/yaml.md
20-
The application homepage: https://github.com/devsapp/start-fc\n`)
13+
ACR: https://cr.console.aliyun.com/
14+
15+
* 额外说明:s.yaml中声明了actions:
16+
部署前执行:s build --use-docker --dockerfile ./code/Dockerfile
17+
如果不需要每次都构建项目,或者部署前不需要构建,或者已经手动构建了,可以注释掉这部分内容
18+
> PS:部署的时候还需要修改s.yaml中image字段为自己的acr配置的地址
19+
* 项目初始化完成,您可以直接进入项目目录下,并使用 s deploy 进行项目部署
20+
\n`)
2121
}
2222

2323
module.exports = {

custom-container-function/fc-custom-container-event-cpp/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: start-fc-custom-container-event-cpp
33
Provider:
44
- 阿里云
5-
Version: 1.1.4
5+
Version: 1.1.7
66
Description: 快速部署一个基于custom container runtime 的C++ Event 类型的 Hello World 到阿里云函数计算
77
HomePage: https://github.com/devsapp/start-fc
88
Tags:
Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,59 @@
11
# ------------------------------------
22
# 欢迎您使用阿里云函数计算 FC 组件进行项目开发
33
# 组件仓库地址/帮助文档:https://github.com/devsapp/fc
4-
# Yaml参考文档:https://github.com/devsapp/fc/blob/main/docs/zh/yaml.md
5-
# 快速入门:
6-
# 快速创建应用:https://github.com/devsapp/fc/blob/main/docs/zh/quick_start_application.md
7-
# 快速使用命令:https://github.com/devsapp/fc/blob/main/docs/zh/quick_start_function.md
4+
# Yaml参考文档:https://github.com/devsapp/fc/blob/jiangyu-docs/docs/zh/yaml.md
5+
# 关于:
6+
# - Serverless Devs和FC组件的关系、如何声明/部署多个函数、超过50M的代码包如何部署
7+
# - 关于.fcignore使用方法、工具中.s目录是做什么、函数进行build操作之后如何处理build的产物
8+
# 等问题,可以参考文档:https://github.com/devsapp/fc/blob/jiangyu-docs/docs/zh/tips.md
9+
# 关于如何做CICD等问题,可以参考:https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/cicd.md
10+
# 有问题快来钉钉群问一下吧:33947367
811
# ------------------------------------
9-
1012
edition: 1.0.0
11-
name: helloworldApp
13+
name: hello-world-app
1214
access: "{{ access }}"
13-
vars:
15+
16+
vars: # 全局变量
1417
region: cn-hangzhou
18+
service:
19+
name: hello-world-service
20+
description: 'hello world by serverless devs'
21+
1522
services:
16-
helloworld:
17-
component: fc
23+
helloworld: # 业务名称/模块名称
1824
actions: # 自定义执行逻辑
1925
pre-deploy: # 在deploy之前运行
2026
- run: s build --use-docker --dockerfile ./code/Dockerfile # 要运行的命令行
2127
path: ./ # 命令行运行的路径
28+
# post-deploy: # 在deploy之后运行
29+
# - run: s versions # 要运行的命令行
30+
# path: ./ # 命令行运行的路径
2231
props:
2332
region: ${vars.region}
24-
service:
25-
name: hello-world-service
33+
service: ${vars.service}
2634
function:
2735
name: cpp-event-function
2836
description: 'hello world by serverless devs'
2937
caPort: 9000
3038
memorySize: 256
31-
handler: not-used
3239
timeout: 60
3340
initializationTimeout: 30
3441
initializer: not-used
3542
runtime: custom-container
3643
customContainerConfig:
3744
image: registry.cn-hangzhou.aliyuncs.com/fc-demo/fc-springboot-http:v0.1 # 需要换成自己的registry地址
3845
codeUri: ./code
46+
# next-function: # 第二个函数的案例,仅供参考
47+
# # 如果在当前项目下执行 s deploy,会同时部署模块:
48+
# # helloworld:服务hello-world-service,函数cpp-event-function
49+
# # next-function:服务hello-world-service,函数next-function-example
50+
# # 如果想单独部署当前服务与函数,可以执行 s + 模块名/业务名 + deploy,例如:s next-function deploy
51+
# # 如果想单独部署当前函数,可以执行 s + 模块名/业务名 + deploy function,例如:s next-function deploy function
52+
# # 更多命令可参考:https://github.com/devsapp/fc/tree/jiangyu-docs/docs#文档相关
53+
# component: fc
54+
# props:
55+
# region: ${vars.region}
56+
# service: ${vars.service} # 应用整体的服务配置
57+
# function: # 定义一个新的函数
58+
# name: next-function-example
59+
# description: 'hello world by serverless devs'

custom-container-function/fc-custom-container-event-nodejs14/hook/index.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
async function preInit(inputObj) {
2-
3-
}
4-
5-
async function postInit(inputObj) {
62
console.log(`\n ____ _ _ ___ _ _ _ _____ ____
73
/ _ \\/ \\ / \\\\ \\/// \\ /\\/ \\ /| / // _\\
84
| / \\|| | | | \\ / | | ||| |\\ || | __\\| /
95
| |-||| |_/\\| | / / | \\_/|| | \\|| | | | \\__
10-
\\_/ \\|\\____/\\_//_/ \\____/\\_/ \\| \\_/ \\____/
11-
12-
`)
6+
\\_/ \\|\\____/\\_//_/ \\____/\\_/ \\| \\_/ \\____/`)
7+
}
8+
9+
async function postInit(inputObj) {
1310
console.log(`\n Welcome to the Aliyun FC start application
1411
This application requires to open these services:
1512
FC : https://fc.console.aliyun.com/
16-
This application can help you quickly deploy the aliyun fc project.
17-
The application uses FC component:
18-
* Help Docs : https://github.com/devsapp/fc
19-
* Yaml Config: https://github.com/devsapp/fc/blob/main/docs/zh/yaml.md
20-
The application homepage: https://github.com/devsapp/start-fc\n`)
13+
ACR: https://cr.console.aliyun.com/
14+
15+
* 额外说明:s.yaml中声明了actions:
16+
部署前执行:s build --use-docker --dockerfile ./code/Dockerfile
17+
如果不需要每次都构建项目,或者部署前不需要构建,或者已经手动构建了,可以注释掉这部分内容
18+
> PS:部署的时候还需要修改s.yaml中image字段为自己的acr配置的地址
19+
* 项目初始化完成,您可以直接进入项目目录下,并使用 s deploy 进行项目部署
20+
\n`)
2121
}
2222

2323
module.exports = {

custom-container-function/fc-custom-container-event-nodejs14/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: start-fc-custom-container-event-nodejs14
33
Provider:
44
- 阿里云
5-
Version: 1.1.4
5+
Version: 1.1.7
66
Description: 快速部署一个基于custom container runtime 的 nodejs14 Event 类型的 Hello World 到阿里云函数计算
77
HomePage: https://github.com/devsapp/start-fc
88
Tags:
Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,60 @@
11
# ------------------------------------
22
# 欢迎您使用阿里云函数计算 FC 组件进行项目开发
33
# 组件仓库地址/帮助文档:https://github.com/devsapp/fc
4-
# Yaml参考文档:https://github.com/devsapp/fc/blob/main/docs/zh/yaml.md
5-
# 快速入门:
6-
# 快速创建应用:https://github.com/devsapp/fc/blob/main/docs/zh/quick_start_application.md
7-
# 快速使用命令:https://github.com/devsapp/fc/blob/main/docs/zh/quick_start_function.md
4+
# Yaml参考文档:https://github.com/devsapp/fc/blob/jiangyu-docs/docs/zh/yaml.md
5+
# 关于:
6+
# - Serverless Devs和FC组件的关系、如何声明/部署多个函数、超过50M的代码包如何部署
7+
# - 关于.fcignore使用方法、工具中.s目录是做什么、函数进行build操作之后如何处理build的产物
8+
# 等问题,可以参考文档:https://github.com/devsapp/fc/blob/jiangyu-docs/docs/zh/tips.md
9+
# 关于如何做CICD等问题,可以参考:https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/cicd.md
10+
# 有问题快来钉钉群问一下吧:33947367
811
# ------------------------------------
9-
1012
edition: 1.0.0
11-
name: helloworldApp
13+
name: hello-world-app
1214
access: "{{ access }}"
13-
vars:
15+
16+
vars: # 全局变量
1417
region: cn-hangzhou
18+
service:
19+
name: hello-world-service
20+
description: 'hello world by serverless devs'
21+
1522
services:
16-
helloworld:
23+
helloworld: # 业务名称/模块名称
1724
component: fc
1825
actions: # 自定义执行逻辑
1926
pre-deploy: # 在deploy之前运行
2027
- run: s build --use-docker --dockerfile ./code/Dockerfile # 要运行的命令行
2128
path: ./ # 命令行运行的路径
29+
# post-deploy: # 在deploy之后运行
30+
# - run: s versions # 要运行的命令行
31+
# path: ./ # 命令行运行的路径
2232
props:
2333
region: ${vars.region}
24-
service:
25-
name: hello-world-service
34+
service: ${vars.service}
2635
function:
2736
name: nodejs14-event-function
2837
description: 'hello world by serverless devs'
2938
caPort: 9000
3039
memorySize: 256
31-
handler: not-used
3240
timeout: 60
3341
initializationTimeout: 30
3442
initializer: not-used
3543
runtime: custom-container
3644
customContainerConfig:
3745
image: registry.cn-hangzhou.aliyuncs.com/fc-demo/fc-springboot-http:v0.1 # 需要换成自己的registry地址
3846
codeUri: ./code
47+
# next-function: # 第二个函数的案例,仅供参考
48+
# # 如果在当前项目下执行 s deploy,会同时部署模块:
49+
# # helloworld:服务hello-world-service,函数cpp-event-function
50+
# # next-function:服务hello-world-service,函数next-function-example
51+
# # 如果想单独部署当前服务与函数,可以执行 s + 模块名/业务名 + deploy,例如:s next-function deploy
52+
# # 如果想单独部署当前函数,可以执行 s + 模块名/业务名 + deploy function,例如:s next-function deploy function
53+
# # 更多命令可参考:https://github.com/devsapp/fc/tree/jiangyu-docs/docs#文档相关
54+
# component: fc
55+
# props:
56+
# region: ${vars.region}
57+
# service: ${vars.service} # 应用整体的服务配置
58+
# function: # 定义一个新的函数
59+
# name: next-function-example
60+
# description: 'hello world by serverless devs'

custom-container-function/fc-custom-container-event-python3.9/hook/index.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
async function preInit(inputObj) {
2-
3-
}
4-
5-
async function postInit(inputObj) {
62
console.log(`\n ____ _ _ ___ _ _ _ _____ ____
73
/ _ \\/ \\ / \\\\ \\/// \\ /\\/ \\ /| / // _\\
84
| / \\|| | | | \\ / | | ||| |\\ || | __\\| /
95
| |-||| |_/\\| | / / | \\_/|| | \\|| | | | \\__
10-
\\_/ \\|\\____/\\_//_/ \\____/\\_/ \\| \\_/ \\____/
11-
12-
`)
6+
\\_/ \\|\\____/\\_//_/ \\____/\\_/ \\| \\_/ \\____/`)
7+
}
8+
9+
async function postInit(inputObj) {
1310
console.log(`\n Welcome to the Aliyun FC start application
1411
This application requires to open these services:
1512
FC : https://fc.console.aliyun.com/
16-
This application can help you quickly deploy the aliyun fc project.
17-
The application uses FC component:
18-
* Help Docs : https://github.com/devsapp/fc
19-
* Yaml Config: https://github.com/devsapp/fc/blob/main/docs/zh/yaml.md
20-
The application homepage: https://github.com/devsapp/start-fc\n`)
13+
ACR: https://cr.console.aliyun.com/
14+
15+
* 额外说明:s.yaml中声明了actions:
16+
部署前执行:s build --use-docker --dockerfile ./code/Dockerfile
17+
如果不需要每次都构建项目,或者部署前不需要构建,或者已经手动构建了,可以注释掉这部分内容
18+
> PS:部署的时候还需要修改s.yaml中image字段为自己的acr配置的地址
19+
* 项目初始化完成,您可以直接进入项目目录下,并使用 s deploy 进行项目部署
20+
\n`)
2121
}
2222

2323
module.exports = {

custom-container-function/fc-custom-container-event-python3.9/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: start-fc-custom-container-event-python3.9
33
Provider:
44
- 阿里云
5-
Version: 1.1.4
5+
Version: 1.1.7
66
Description: 快速部署一个基于custom container runtime 的 python3.9 Event 类型的 Hello World 到阿里云函数计算
77
HomePage: https://github.com/devsapp/start-fc
88
Tags:
Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,40 @@
11
# ------------------------------------
22
# 欢迎您使用阿里云函数计算 FC 组件进行项目开发
33
# 组件仓库地址/帮助文档:https://github.com/devsapp/fc
4-
# Yaml参考文档:https://github.com/devsapp/fc/blob/main/docs/zh/yaml.md
4+
# Yaml参考文档:https://github.com/devsapp/fc/blob/jiangyu-docs/docs/zh/yaml.md
5+
# 关于:
6+
# - Serverless Devs和FC组件的关系、如何声明/部署多个函数、超过50M的代码包如何部署
7+
# - 关于.fcignore使用方法、工具中.s目录是做什么、函数进行build操作之后如何处理build的产物
8+
# 等问题,可以参考文档:https://github.com/devsapp/fc/blob/jiangyu-docs/docs/zh/tips.md
9+
# 关于如何做CICD等问题,可以参考:https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/cicd.md
10+
# 有问题快来钉钉群问一下吧:33947367
511
# ------------------------------------
6-
712
edition: 1.0.0
8-
name: chelloworldApp
13+
name: hello-world-app
914
access: "{{ access }}"
10-
vars:
15+
16+
vars: # 全局变量
1117
region: cn-hangzhou
18+
service:
19+
name: hello-world-service
20+
description: 'hello world by serverless devs'
21+
1222
services:
13-
helloworld:
23+
helloworld: # 业务名称/模块名称
1424
component: fc
1525
actions: # 自定义执行逻辑
1626
pre-deploy: # 在deploy之前运行
1727
- run: s build --use-docker --dockerfile ./code/Dockerfile # 要运行的命令行
1828
path: ./ # 命令行运行的路径
29+
# post-deploy: # 在deploy之后运行
30+
# - run: s versions # 要运行的命令行
31+
# path: ./ # 命令行运行的路径
1932
props:
2033
region: ${vars.region}
21-
service:
22-
name: hello-world-service
34+
service: ${vars.service}
2335
function:
2436
name: py39-event-function
2537
description: 'hello world by serverless devs'
26-
handler: not-used
2738
timeout: 60
2839
caPort: 9000
2940
memorySize: 256
@@ -33,3 +44,17 @@ services:
3344
customContainerConfig:
3445
image: registry.cn-hangzhou.aliyuncs.com/fc-demo/fc-springboot-http:v0.1 # 需要换成自己的registry地址
3546
codeUri: ./code
47+
# next-function: # 第二个函数的案例,仅供参考
48+
# # 如果在当前项目下执行 s deploy,会同时部署模块:
49+
# # helloworld:服务hello-world-service,函数cpp-event-function
50+
# # next-function:服务hello-world-service,函数next-function-example
51+
# # 如果想单独部署当前服务与函数,可以执行 s + 模块名/业务名 + deploy,例如:s next-function deploy
52+
# # 如果想单独部署当前函数,可以执行 s + 模块名/业务名 + deploy function,例如:s next-function deploy function
53+
# # 更多命令可参考:https://github.com/devsapp/fc/tree/jiangyu-docs/docs#文档相关
54+
# component: fc
55+
# props:
56+
# region: ${vars.region}
57+
# service: ${vars.service} # 应用整体的服务配置
58+
# function: # 定义一个新的函数
59+
# name: next-function-example
60+
# description: 'hello world by serverless devs'

custom-container-function/fc-custom-container-http-aspdotnetcore/hook/index.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
async function preInit(inputObj) {
2-
3-
}
4-
5-
async function postInit(inputObj) {
62
console.log(`\n ____ _ _ ___ _ _ _ _____ ____
73
/ _ \\/ \\ / \\\\ \\/// \\ /\\/ \\ /| / // _\\
84
| / \\|| | | | \\ / | | ||| |\\ || | __\\| /
95
| |-||| |_/\\| | / / | \\_/|| | \\|| | | | \\__
10-
\\_/ \\|\\____/\\_//_/ \\____/\\_/ \\| \\_/ \\____/
11-
12-
`)
6+
\\_/ \\|\\____/\\_//_/ \\____/\\_/ \\| \\_/ \\____/`)
7+
}
8+
9+
async function postInit(inputObj) {
1310
console.log(`\n Welcome to the Aliyun FC start application
1411
This application requires to open these services:
1512
FC : https://fc.console.aliyun.com/
16-
This application can help you quickly deploy the aliyun fc project.
17-
The application uses FC component:
18-
* Help Docs : https://github.com/devsapp/fc
19-
* Yaml Config: https://github.com/devsapp/fc/blob/main/docs/zh/yaml.md
20-
The application homepage: https://github.com/devsapp/start-fc\n`)
13+
ACR: https://cr.console.aliyun.com/
14+
15+
* 额外说明:s.yaml中声明了actions:
16+
部署前执行:s build --use-docker --dockerfile ./code/Dockerfile
17+
如果不需要每次都构建项目,或者部署前不需要构建,或者已经手动构建了,可以注释掉这部分内容
18+
> PS:部署的时候还需要修改s.yaml中image字段为自己的acr配置的地址
19+
* 项目初始化完成,您可以直接进入项目目录下,并使用 s deploy 进行项目部署
20+
\n`)
2121
}
2222

2323
module.exports = {

0 commit comments

Comments
 (0)