========= FC invoke Logs begin =========
Duration: 30.28 ms, Billed Duration: 31 ms, Memory Size: 1024 MB, Max Memory Used: 18.99 MB
========= FC invoke Logs end =========
FC Invoke Result:
OK
End of method: invoke
部署调用Node.js 12函数
执行以下命令,初始化项目。
s init fc-custom-nodejs12-event -d fc-custom-nodejs12-event
执行以下命令,进入项目目录。
cd fc-custom-nodejs12-event
执行以下命令,构建项目。
s build --use-docker
输出示例:
[2022-01-26 10:30:35] [INFO] [FC-BUILD] - Build artifact start...
[2022-01-26 10:30:35] [INFO] [FC-BUILD] - Use docker for building.
[2022-01-26 10:30:35] [INFO] [FC-BUILD] - Build function using image: aliyunfc/runtime-custom:build-1.10.1
build-1.10.1: Pulling from aliyunfc/runtime-custom
eb18d230e067: Pulling fs layer
......
Digest: sha256:d97461710526217f55bd45c33fd92b885e0339bcfaf5555741c8b25a4117****
Status: Downloaded newer image for aliyunfc/runtime-custom:build-1.10.1
[2022-01-26 10:32:32] [INFO] [FC-BUILD] - Build artifact successfully.
Tips for next step
======================
* Invoke Event Function: s local invoke
* Invoke Http Function: s local start
* Deploy Resources: s deploy
End of method: build
========= FC invoke Logs begin =========
Duration: 14.52 ms, Billed Duration: 15 ms, Memory Size: 1024 MB, Max Memory Used: 61.39 MB
========= FC invoke Logs end =========
FC Invoke Result:
OK
End of method: invoke