【文件属性】:
文件名称:docker-google-cloud-functions-emulator:用于开发和测试目的的用于运行Google Cloud Functions的Docker映像
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-01 21:55:39
Shell
Docker:Google云功能仿真器
该映像基于基本Ubuntu映像,并提供了用于运行Google Cloud Functions的环境,以进行开发和测试。
在上可用。
用法
在哪里放置云功能代码
Cloud Functions应该放置在/root/functions目录中,其中每个子目录都包含Google Cloud Function的代码。 每个子目录的名称应与Cloud Function的处理函数的名称完全匹配。
示例目录结构
/root
/functions
/helloWorld
- index.js
/helloMoon
- index.js
/helloStars
- index.js
示例文件
/root/functions/helloWorl
【文件预览】:
docker-google-cloud-functions-emulator-master
----.gitignore(197B)
----Dockerfile(901B)
----init.d()
--------start-emulator.sh(36B)
----scripts()
--------deploy.sh(190B)
----README.md(2KB)
----conf()
--------config.json(57B)