Skip to content

Commit

Permalink
update yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
anycodes committed Dec 7, 2021
1 parent 5a3d932 commit 8c86d5b
Show file tree
Hide file tree
Showing 115 changed files with 331 additions and 342 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ fc-custom-samples/src/dart/event-demo/code/bootstrap
fc-custom-samples/src/golang/event-demo/code/bootstrap
obj
bin
Nuget*
Nuget*
.idea
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-event-cpp
Provider:
- 阿里云
Version: 1.1.0
Version: 1.1.2
Description: 快速部署一个基于custom container runtime 的C++ Event 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
- 初始化项目:`s init start-fc-custom-container-event-cpp -d start-cc-event-cpp`
- 进入项目:`cd start-cc-event-cpp`
- 修改 s.yaml 中 Image 为自己的 ACR 镜像地址
- 构建项目:`s build --use-docker --dockerfile ./code/Dockerfile`
- 部署项目:`s deploy -y`
- 调用函数:`s invoke -e '{"key":"val"}'`
- 调用函数:`s invoke -e "{\"key\":\"val\"}"`

即可实现`Custom Container C++` Event 函数案例的初始化、部署整个流程。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
- 初始化项目:`s init start-fc-custom-container-event-cpp -d start-cc-event-cpp`
- 进入项目:`cd start-cc-event-cpp`
- 修改 s.yaml 中 Image 为自己的 ACR 镜像地址
- 构建项目:`s build --use-docker --dockerfile ./code/Dockerfile`
- 部署项目:`s deploy -y`
- 调用函数:`s invoke -e '{"key":"val"}'`
- 调用函数:`s invoke -e "{\"key\":\"val\"}"`

即可实现`Custom Container C++` Event 函数案例的初始化、部署整个流程。

Expand Down
17 changes: 10 additions & 7 deletions custom-container-function/fc-custom-container-event-cpp/src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@
# ------------------------------------

edition: 1.0.0
name: container-demo
access: {{ access }}
name: helloworldApp
access: "{{ access }}"
vars:
region: cn-shenzhen
region: hangzhou
services:
customContainer-demo:
helloworld:
component: fc
actions: # 自定义执行逻辑
pre-deploy: # 在deploy之前运行
- run: s build --use-docker --dockerfile ./code/Dockerfile # 要运行的命令行
path: ./ # 命令行运行的路径
props:
region: ${vars.region}
service:
name: container-demo
internetAccess: true
name: hello-world-service
function:
name: cpp-event-function
description: cpp event function demo
description: 'hello world by serverless devs'
caPort: 9000
memorySize: 256
handler: not-used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-event-nodejs14
Provider:
- 阿里云
Version: 1.1.0
Version: 1.1.2
Description: 快速部署一个基于custom container runtime 的 nodejs14 Event 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
- 初始化项目:`s init start-fc-custom-container-event-nodejs14 -d start-cc-nodejs14`
- 进入项目:`cd start-cc-nodejs14`
- 修改 s.yaml 中 Image 为自己的 ACR 镜像地址
- 构建项目:`s build --use-docker --dockerfile ./code/Dockerfile`
- 部署项目:`s deploy -y`
- 调用函数:`s invoke -e '{"key":"val"}'`
- 调用函数:`s invoke -e "{\"key\":\"val\"}"`

即可实现`Custom Container Nodejs 14`案例的初始化、部署整个流程。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
- 初始化项目:`s init start-fc-custom-container-event-nodejs14 -d start-cc-nodejs14`
- 进入项目:`cd start-cc-nodejs14`
- 修改 s.yaml 中 Image 为自己的 ACR 镜像地址
- 构建项目:`s build --use-docker --dockerfile ./code/Dockerfile`
- 部署项目:`s deploy -y`
- 调用函数:`s invoke -e '{"key":"val"}'`
- 调用函数:`s invoke -e "{\"key\":\"val\"}"`

即可实现`Custom Container Nodejs 14`案例的初始化、部署整个流程。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@
# ------------------------------------

edition: 1.0.0
name: container-demo
access: {{ access }}
name: helloworldApp
access: "{{ access }}"
vars:
region: cn-shenzhen
region: hangzhou
services:
customContainer-demo:
helloworld:
component: fc
actions: # 自定义执行逻辑
pre-deploy: # 在deploy之前运行
- run: s build --use-docker --dockerfile ./code/Dockerfile # 要运行的命令行
path: ./ # 命令行运行的路径
props:
region: ${vars.region}
service:
name: container-demo
internetAccess: true
name: hello-world-service
function:
name: nodejs14-event-function
description: event function powered by flask
description: 'hello world by serverless devs'
caPort: 9000
memorySize: 256
handler: not-used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-event-python3.9
Provider:
- 阿里云
Version: 1.1.0
Version: 1.1.2
Description: 快速部署一个基于custom container runtime 的 python3.9 Event 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- 初始化项目:`s init start-fc-custom-container-event-python3.9 -d start-cc-py39`
- 进入项目:`cd start-cc-py39`
- 修改 s.yaml 中 Image 为自己的 ACR 镜像地址
- 构建项目:`s build --use-docker --dockerfile ./code/Dockerfile`
- 部署项目:`s deploy -y`
- 调用函数:`s invoke -e "hello world"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- 初始化项目:`s init start-fc-custom-container-event-python3.9 -d start-cc-py39`
- 进入项目:`cd start-cc-py39`
- 修改 s.yaml 中 Image 为自己的 ACR 镜像地址
- 构建项目:`s build --use-docker --dockerfile ./code/Dockerfile`
- 部署项目:`s deploy -y`
- 调用函数:`s invoke -e "hello world"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,24 @@
# ------------------------------------

edition: 1.0.0
name: container-demo
access: {{ access }}
name: chelloworldApp
access: "{{ access }}"
vars:
region: cn-shenzhen
region: hangzhou
services:
customContainer-demo:
helloworld:
component: fc
actions: # 自定义执行逻辑
pre-deploy: # 在deploy之前运行
- run: s build --use-docker --dockerfile ./code/Dockerfile # 要运行的命令行
path: ./ # 命令行运行的路径
props:
region: ${vars.region}
service:
name: container-demo
internetAccess: true
name: hello-world-service
function:
name: py39-event-function
description: event function powered by flask
description: 'hello world by serverless devs'
handler: not-used
timeout: 60
caPort: 9000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-http-aspdotnetcore
Provider:
- 阿里云
Version: 1.1.0
Version: 1.1.2
Description: 快速部署一个基于custom container runtime 的 asp .netcore HTTP 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
- 初始化项目:`s init start-fc-custom-container-http-aspdotnetcore -d start-cc-http-aspdotnetcore`
- 进入项目:`cd start-cc-http-aspdotnetcore`
- 修改 s.yaml 中 Image 为自己的 ACR 镜像地址
- 构建项目:`s build --use-docker --dockerfile ./code/Dockerfile`
- 部署项目:`s deploy -y`
- 调用函数: 直接使用 POST 或者 GET 方法 curl 部署项目时候生成自定义域名, 如:

```bash
curl -v http://aspdotnetcore-http-function.container-demo.123456789.cn-shenzhen.fc.devsapp.net/WeatherForecast
curl -v http://aspdotnetcore-http-function.hello-world-service.123456789.cn-shenzhen.fc.devsapp.net/WeatherForecast
```

即可实现`Custom Container asp .netcore` HTTP 函数案例的初始化、部署整个流程。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
- 初始化项目:`s init start-fc-custom-container-http-aspdotnetcore -d start-cc-http-aspdotnetcore`
- 进入项目:`cd start-cc-http-aspdotnetcore`
- 修改 s.yaml 中 Image 为自己的 ACR 镜像地址
- 构建项目:`s build --use-docker --dockerfile ./code/Dockerfile`
- 部署项目:`s deploy -y`
- 调用函数: 直接使用 POST 或者 GET 方法 curl 部署项目时候生成自定义域名, 如:

```bash
curl -v http://aspdotnetcore-http-function.container-demo.123456789.cn-shenzhen.fc.devsapp.net/WeatherForecast
curl -v http://aspdotnetcore-http-function.hello-world-service.123456789.cn-shenzhen.fc.devsapp.net/WeatherForecast
```

即可实现`Custom Container asp .netcore` HTTP 函数案例的初始化、部署整个流程。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@
# ------------------------------------

edition: 1.0.0
name: container-demo
access: {{ access }}
name: helloworldApp
access: "{{ access }}"
vars:
region: cn-shenzhen
region: hangzhou
services:
customContainer-demo:
helloworld:
component: fc
actions: # 自定义执行逻辑
pre-deploy: # 在deploy之前运行
- run: s build --use-docker --dockerfile ./code/Dockerfile # 要运行的命令行
path: ./ # 命令行运行的路径
props:
region: ${vars.region}
service:
name: container-demo
internetAccess: true
name: hello-world-service
function:
name: aspdotnetcore-http-function
description: asp .netcore http function demo
description: 'hello world by serverless devs'
caPort: 80
memorySize: 512
handler: not-used
Expand All @@ -31,7 +34,6 @@ services:
customContainerConfig:
image: registry-vpc.cn-shenzhen.aliyuncs.com/fc-demo/fc-asp-http:v0.1
codeUri: ./code

triggers:
- name: httpTrigger
type: http
Expand All @@ -40,14 +42,11 @@ services:
methods:
- GET
- POST

customDomains:
- domainName: auto
protocol: HTTP
routeConfigs:
- path: /*
serviceName: container-demo
functionName: aspdotnetcore-http-function
methods:
- GET
- POST
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-http-cpp
Provider:
- 阿里云
Version: 1.1.0
Version: 1.1.2
Description: 快速部署一个基于custom container runtime 的 C++ HTTP 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- 初始化项目:`s init start-fc-custom-container-http-cpp -d start-cc-http-cpp`
- 进入项目:`cd start-cc-http-cpp`
- 修改 s.yaml 中 Image 为自己的 ACR 镜像地址
- 构建项目:`s build --use-docker --dockerfile ./code/Dockerfile`
- 部署项目:`s deploy -y`
- 调用函数: 直接使用 POST 或者 GET 方法 curl 部署项目时候生成自定义域名

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- 初始化项目:`s init start-fc-custom-container-http-cpp -d start-cc-http-cpp`
- 进入项目:`cd start-cc-http-cpp`
- 修改 s.yaml 中 Image 为自己的 ACR 镜像地址
- 构建项目:`s build --use-docker --dockerfile ./code/Dockerfile`
- 部署项目:`s deploy -y`
- 调用函数: 直接使用 POST 或者 GET 方法 curl 部署项目时候生成自定义域名

Expand Down
21 changes: 10 additions & 11 deletions custom-container-function/fc-custom-container-http-cpp/src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@
# ------------------------------------

edition: 1.0.0
name: container-demo
access: {{ access }}
name: helloworldApp
access: "{{ access }}"
vars:
region: cn-shenzhen
region: hangzhou
services:
customContainer-demo:
helloworld:
component: fc
actions: # 自定义执行逻辑
pre-deploy: # 在deploy之前运行
- run: s build --use-docker --dockerfile ./code/Dockerfile # 要运行的命令行
path: ./ # 命令行运行的路径
props:
region: ${vars.region}
service:
name: container-demo
internetAccess: true
name: hello-world-service
function:
name: cpp-http-function
description: cpp http function demo
description: 'hello world by serverless devs'
caPort: 9000
memorySize: 256
handler: not-used
Expand All @@ -33,7 +36,6 @@ services:
customContainerConfig:
image: registry-vpc.cn-shenzhen.aliyuncs.com/fc-demo/fc-cpp-http:v0.1
codeUri: ./code

triggers:
- name: httpTrigger
type: http
Expand All @@ -42,14 +44,11 @@ services:
methods:
- GET
- POST

customDomains:
- domainName: auto
protocol: HTTP
routeConfigs:
- path: /*
serviceName: container-demo
functionName: cpp-http-function
methods:
- GET
- POST
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fc-custom-container-http-springboot
Provider:
- 阿里云
Version: 1.1.0
Version: 1.1.2
Description: 快速部署一个基于custom container runtime 的 springboot HTTP 类型的 Hello World 到阿里云函数计算
HomePage: https://github.com/devsapp/start-fc
Tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- 初始化项目:`s init start-fc-custom-container-http-springboot -d start-cc-http-springboot`
- 进入项目:`cd start-cc-http-springboot`
- 修改 s.yaml 中 Image 为自己的 ACR 镜像地址
- 构建项目:`s build --use-docker --dockerfile ./code/Dockerfile`
- 部署项目:`s deploy -y`
- 调用函数: 直接使用 POST 或者 GET 方法 curl 部署项目时候生成自定义域名

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
- 初始化项目:`s init start-fc-custom-container-http-springboot -d start-cc-http-springboot`
- 进入项目:`cd start-cc-http-springboot`
- 修改 s.yaml 中 Image 为自己的 ACR 镜像地址
- 构建项目:`s build --use-docker --dockerfile ./code/Dockerfile`
- 部署项目:`s deploy -y`
- 调用函数: 直接使用 POST 或者 GET 方法 curl 部署项目时候生成自定义域名

Expand Down
Loading

0 comments on commit 8c86d5b

Please sign in to comment.