Skip to content

Commit 9074d57

Browse files
authored
Merge pull request #16 from devsapp/use-custom-runtime-config
use custom runtime config replace bootstrap
2 parents 45d8cda + b88350d commit 9074d57

File tree

36 files changed

+83
-41
lines changed

36 files changed

+83
-41
lines changed

custom-function/java8/fc-custom-java8-http/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: fc-custom-java8-http
33
Provider:
44
- 阿里云
5-
Version: 1.1.9
5+
Version: 1.1.10
66
Description: 快速部署一个基于custom runtime 的 Java8 HTTP 类型的 Hello World 到阿里云函数计算
77
HomePage: https://github.com/devsapp/start-fc
88
Tags:

custom-function/java8/fc-custom-java8-http/src/code/bootstrap

Lines changed: 0 additions & 2 deletions
This file was deleted.

custom-function/java8/fc-custom-java8-http/src/s.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ services:
4040
runtime: custom
4141
codeUri: ./code
4242
instanceConcurrency: 4
43+
customRuntimeConfig:
44+
command:
45+
- java
46+
args:
47+
- '-jar'
48+
- 'target/demo.jar'
4349
triggers:
4450
- name: httpTrigger
4551
type: http

custom-function/lua/fc-custom-lua-event/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: fc-custom-lua-event
33
Provider:
44
- 阿里云
5-
Version: 1.1.10
5+
Version: 1.1.11
66
Description: 快速部署一个基于custom runtime 的 Lua Event 类型的 Hello World 到阿里云函数计算
77
HomePage: https://github.com/devsapp/start-fc
88
Tags:

custom-function/lua/fc-custom-lua-event/src/code/bootstrap

Lines changed: 0 additions & 3 deletions
This file was deleted.

custom-function/lua/fc-custom-lua-event/src/s.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ services:
3939
timeout: 30
4040
runtime: custom
4141
codeUri: ./code
42+
customRuntimeConfig:
43+
command:
44+
- /code/nginx
45+
args:
46+
- '-p'
47+
- '/tmp'
48+
- '-c'
49+
- '/code/nginx.conf'
4250
# next-function: # 第二个函数的案例,仅供参考
4351
# # 如果在当前项目下执行 s deploy,会同时部署模块:
4452
# # helloworld:服务hello-world-service,函数cpp-event-function

custom-function/nodejs10/fc-custom-nodejs10-event/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: fc-custom-nodejs10-event
33
Provider:
44
- 阿里云
5-
Version: 1.1.9
5+
Version: 1.1.10
66
Description: 快速部署一个基于custom runtime 的 Node.js 10 Event 类型的 Hello World 到阿里云函数计算
77
HomePage: https://github.com/devsapp/start-fc
88
Tags:

custom-function/nodejs10/fc-custom-nodejs10-event/src/code/bootstrap

Lines changed: 0 additions & 2 deletions
This file was deleted.

custom-function/nodejs10/fc-custom-nodejs10-event/src/s.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ services:
4242
instanceConcurrency: 4
4343
environmentVariables:
4444
PATH: /code/node-v12.13.0-linux-x64/bin:$PATH
45+
customRuntimeConfig:
46+
command:
47+
- node
48+
- server.js
4549
# next-function: # 第二个函数的案例,仅供参考
4650
# # 如果在当前项目下执行 s deploy,会同时部署模块:
4751
# # helloworld:服务hello-world-service,函数cpp-event-function

custom-function/nodejs12/fc-custom-nodejs12-event/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: fc-custom-nodejs12-event
33
Provider:
44
- 阿里云
5-
Version: 1.1.10
5+
Version: 1.1.11
66
Description: 快速部署一个基于custom runtime 的 Node.js 12 Event 类型的 Hello World 到阿里云函数计算
77
HomePage: https://github.com/devsapp/start-fc
88
Tags:

0 commit comments

Comments
 (0)