[英]Storage trigger function with Cloud Run
I have written a Cloud Storage trigger in python.我用 python 编写了一个云存储触发器。 Due to conflicts in the version of certain packages, I need a way to add a timeseries model to the Cloud Storage trigger function.由于某些包的版本冲突,我需要一种方法将时间序列模型添加到 Cloud Storage 触发器函数。
Is it possible to add a docker image in a cloud storage trigger function written in python?是否可以在用python编写的云存储触发函数中添加docker镜像? The tutorials state that the containers can be triggered using service URL which is basically like a HTTP trigger.教程指出可以使用服务 URL 触发容器,这基本上类似于 HTTP 触发器。 Can be it be a Cloud Storage trigger?它可以是云存储触发器吗?
Cloud Functions doesn't support the deployment of custom docker images. Cloud Functions 不支持部署自定义 docker 映像。 Cloud Functions will internally build a docker image based on the code you deploy, and you can't influence how that image is built. Cloud Functions 将根据您部署的代码在内部构建一个 docker 镜像,您无法影响该镜像的构建方式。
If you want to handle a Cloud Storage event in a docker image, you will have to do something like this:如果要在 docker 映像中处理 Cloud Storage 事件,则必须执行以下操作:
Or perhaps you just want to deploy a Cloud Run image that subscribes to a pubsub topic that delivers the Cloud Storage pubsub notification events to process.或者,您可能只想部署一个Cloud Run 映像,该映像订阅了一个发布订阅主题,该主题提供要处理的Cloud Storage 发布订阅通知事件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.