【问题标题】:Cloud foundry java buildpack - find out tomcat versionCloud Foundry java buildpack - 找出tomcat版本
【发布时间】:2019-05-17 17:31:16
【问题描述】:

我知道有文档或发行说明,但有什么方法可以找出 Cloud Foundry 在任何环境变量中使用的 tomcat 版本?

我在 /actuator/env 中没有看到它

【问题讨论】:

    标签: tomcat cloud-foundry buildpack


    【解决方案1】:

    从 Cloud Foundry 方面,您可以看到 Java buildpack 在暂存期间安装的内容。它向您展示了已安装的确切内容。不过,这不会保存在任何地方,除非您将应用程序日志发送到某种形式的永久存储。

    例如:

       -----> Java Buildpack v4.19 (offline) | https://github.com/cloudfoundry/java-buildpack.git#3f4eee2
       -----> Downloading Jvmkill Agent 1.16.0_RELEASE from https://java-buildpack.cloudfoundry.org/jvmkill/bionic/x86_64/jvmkill-1.16.0_RELEASE.so (found in cache)
       -----> Downloading Open Jdk JRE 1.8.0_202 from https://java-buildpack.cloudfoundry.org/openjdk/bionic/x86_64/openjdk-jre-1.8.0_202-bionic.tar.gz (found in cache)
              Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (2.3s)
              JVM DNS caching disabled in lieu of BOSH DNS caching
       -----> Downloading Open JDK Like Memory Calculator 3.13.0_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/bionic/x86_64/memory-calculator-3.13.0_RELEASE.tar.gz (found in cache)
              Loaded Classes: 8166, Threads: 250
       -----> Downloading Client Certificate Mapper 1.8.0_RELEASE from https://java-buildpack.cloudfoundry.org/client-certificate-mapper/client-certificate-mapper-1.8.0_RELEASE.jar (found in cache)
       -----> Downloading Container Security Provider 1.16.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-security-provider/container-security-provider-1.16.0_RELEASE.jar (found in cache)
       -----> **Downloading Tomcat Instance 9.0.17** from https://java-buildpack.cloudfoundry.org/tomcat/tomcat-9.0.17.tar.gz (found in cache)
              Expanding Tomcat Instance to .java-buildpack/tomcat (0.6s)
       -----> Downloading Tomcat Access Logging Support 3.3.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-access-logging-support/tomcat-access-logging-support-3.3.0_RELEASE.jar (found in cache)
       -----> Downloading Tomcat Lifecycle Support 3.3.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-lifecycle-support/tomcat-lifecycle-support-3.3.0_RELEASE.jar (found in cache)
       -----> Downloading Tomcat Logging Support 3.3.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-logging-support/tomcat-logging-support-3.3.0_RELEASE.jar (found in cache)
    

    如果您希望从容器内或应用内获取它,this SO post 中的建议应该可以工作。

    希望有帮助!

    【讨论】:

      猜你喜欢
      • 2023-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-02
      • 1970-01-01
      • 1970-01-01
      • 2017-01-29
      • 2017-10-04
      相关资源
      最近更新 更多