我想在 Google App Engine 中使用 Scrapy + Splash 抓取一个 javascript 网站。 Splash 插件是一个 Docker 镜像。有什么方法可以在 Google App Engine 中使用它吗? App Engine 本身使用 Docker 镜像,但我不确定如何加载和访问辅助镜像(Splash 就是这样使用的)。 Here are the Splash install instructions
最佳答案
您可以在 App Engine 柔性环境中使用自定义运行时。
Custom runtimes let you build apps that run in an environment defined by a Dockerfile. By using a Dockerfile, you can use languages and packages that are not part of the Google Cloud Platform and use the same resources and tooling that are used in the App Engine flexible environment.
探索更多 About Custom Runtimes .请注意,当您使用自定义运行时时,您必须编写应用程序代码来处理一些灵活的环境生命周期和健康检查请求。检查how to build a custom runtime获取更多信息。
关于docker - 谷歌应用引擎 : Load another Docker Image for Scrapy + Splash,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58840392/