Google App Engine 上的 GraphicsMagick

GraphicsMagick on Google App Engine

我正在使用 Google 云的应用引擎来部署一个小型节点 js 应用程序。该应用程序的要求之一是 GraphicsMagick。

有没有办法将这个包安装到 App Engine 上?

是的,通过构建和使用自定义运行时。来自 Dependencies:

To enable the use of Node.js packages that require native extensions, the following Debian packages are pre-installed in the Docker image.

If your application requires additional operating-system-level dependencies, you will need to use a custom runtime based on this runtime to install the appropriate packages.

并且来自 Building Custom Runtimes

To create a custom runtime you need:

  • An app.yaml file that describes your application's runtime configuration.
  • A Dockerfile that configures the runtime environment. In many cases, this can be just one line specifying a base image.
  • To ensure your application is listening on port 8080 and has request handlers that respond to lifecycle events, such as start, stop, and health check requests.

Note: Google supplies base images that you can customize, but you aren't required to use these. You can use other images so long as they satisfy the conditions in the bulleted list above.

你应该浏览整个页面,虽然那里有很多有用的信息,上面只是一个简短的摘要引用。