Google App Engine-指定自定义构建依赖项 [英] Google App Engine - specify custom build dependencies

查看:81
本文介绍了Google App Engine-指定自定义构建依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序需要 cmake libx11-dev libpng-dev 建立。我遇到了此文档,这使我相信可以列出这些是我的应用程序在Google App Engine平台上运行的依赖项,尽管我不知道如何操作。我可以在Compute Engine实例中成功运行我的应用程序,尽管这样做成本很高,而且如果我没有记错的话,也没有必要。如何获取在问题开始时列出的,在会话结束后安装的软件包?

My app needs cmake, libx11-dev and libpng-dev to build. I came across this documentation, which leads me to believe that I can list these as dependencies for my app to run on the Google App Engine platform, although I cannot figure out how. I was successfully able to run my app in a Compute Engine instance, although this is costly and, if I'm not mistaken, unnecessary. How do I get the packages listed at the beginning of the question installed beyond session end?

推荐答案

您只能列出 Node.js 依赖关系。来自声明和管理依赖项(重点是我的):

You can only list Node.js dependencies that way. From Declaring and managing dependencies (emphasis mine):


您可以将任何与Linux兼容的 Node.js软件包与App Engine
flexible一起使用环境,包括需要本机(C)
扩展名的软件包。

You can use any Linux-compatible Node.js package with App Engine flexible environment, including packages that require native (C) extensions.

您可以使用 Node.js (在列表中至少为 cmake ),但只能在灵活的环境中通过自定义运行时进行。来自关于自定义运行时间

You can use dependencies other than Node.js (at least cmake in your list) but only in the flexible environment, via a custom runtime. From About Custom Runtimes:


自定义运行时允许您定义新的运行时环境,其中
可能包括语言解释程序或
应用程序服务器之类的其他组件。 / p>

Custom runtimes allow you to define new runtime environments, which might include additional components like language interpreters or application servers.

另请参见构建自定义运行时

这篇关于Google App Engine-指定自定义构建依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆