gpt4 book ai didi

java - 如何在Google App Engine灵活环境中配置oracle jdk

转载 作者:行者123 更新时间:2023-12-02 11:43:36 24 4
gpt4 key购买 nike

Google App Engine 只是在 app.yaml 中说明了 openjdk 的使用,例如

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

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

最佳答案

您引用的配置适用于 Google 提供的标准运行时,该运行时不附带 oracle jdk。

但是你可以使用custom runtime相反:

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.

您需要build it :

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.

你会configure在你的 app.yaml 中就像这样:

runtime: custom
env: flex

关于java - 如何在Google App Engine灵活环境中配置oracle jdk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48367184/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com