有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!


共 (1) 个答案

  1. # 1 楼答案

    您引用的配置适用于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.

    你会{a3}在你的{}中这样做:

    runtime: custom
    env: flex