cloudfoundry: use an older buildpack version

前端 未结 1 1536
小鲜肉
小鲜肉 2021-01-18 20:36

Cloundfoundry recently updated its Java buildpack to version 2.5 (including java 8 and tomcat 8). I still would like to use version 2.4 since my app hasn\'t been upgraded to

相关标签:
1条回答
  • 2021-01-18 21:19

    To specify a branch with "cf push -b", put a "#" before the branch name. In your example, you would use

    $ cf push app -b https://github.com/cloudfoundry/java-buildpack#v2.4
    

    This might give you some strange messages about the buildpack clone being in "detatched HEAD" state, but that can be ignored.

    You should be able to run your app on the Java 8 JRE even though it was compiled with an earlier JDK. Are you getting errors when running your app on the Java 8 JRE?

    Use directly the version number in the url - without "tags/": java-buildpack#tags/v2.4 -> java-buildpack#v2.4

    0 讨论(0)
提交回复
热议问题