如何在Google App Engine灵活环境中配置oracle jdk [英] How oracle jdk can be configured in Google App Engine Flexible environment

查看:125
本文介绍了如何在Google App Engine灵活环境中配置oracle jdk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google App Engine只是在app.yaml中声明有关openjdk的用法,例如

Google App Engine just states about the usage of openjdk in app.yaml, Like

runtime_config:
   jdk: openjdk8
   server: jetty9

参考文献: https://cloud.google.com/appengine/docs/flexible/java/configuring-your-app-with-app-yaml

我想使用oracle jdk.如何配置app.yaml以使用oracle jdk

I want to use oracle jdk. How can I configure app.yaml to use oracle jdk

注意:我正在使用Google App Engine灵活环境

Note: I am using Google App Engine Flexible environment

推荐答案

您引用的配置适用于Google提供的标准运行时,而Oracle jdk则不附带.

The config you referenced applies to the standard runtimes provided by Google, which does not come with the oracle jdk.

但是您可以使用自定义运行时代替:

在App Engine灵活环境中使用自定义运行时,以使用 Java,Python,Node.js或Go的替代实现,或编写 任何其他语言的代码.定义新的运行时环境允许 您包括其他组件,例如语言解释器或 应用服务器.

Use a custom runtime in the App Engine flexible environment to use an alternative implementation of Java, Python, Node.js, or Go, or write code in any other language. Defining new runtime environments allow you to include additional components like language interpreters or application servers.

您需要构建它:

要创建自定义运行时,您需要:

To create a custom runtime you need:

  • 描述应用程序的运行时配置的app.yaml文件.
  • 一个Dockerfile,用于配置运行时环境.在许多情况下,这只能是指定基本图像的一行.
  • 为确保您的应用程序正在侦听端口8080并具有响应生命周期事件(例如启动,停止和停止)的请求处理程序, 健康检查请求.

  • 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.

注意:Google提供了您可以自定义的基本图片,但是您可以 不需要使用这些.您可以使用其他图像,只要它们 满足上面项目符号列表中的条件.

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.

您将app.yaml中配置:

runtime: custom
env: flex

这篇关于如何在Google App Engine灵活环境中配置oracle jdk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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