Cloudfoundry:如何结合两个运行时 [英] Cloudfoundry : How to combine two runtimes
问题描述
在cloundfoundry中是否有一种方法可以结合两个运行时环境?我正在将NodeJS应用程序部署到IBM Bluemix。现在,我还希望能够执行一个独立的jar文件,但应用程序失败
Is there a way in cloundfoundry to combine two runtime environments? I am deploying a NodeJS app to IBM Bluemix. Now, i also want to be able to execute a standalone jar file but the app fails
APP / 0 / bin / sh:1:Java :未找到
我认为这是合理的,因为该应用是通过Nodejs SDK运行时部署的。我尝试查看一些资源
which i guess makes sense as the app was deployed with a Nodejs SDK runtime. I tried to look at some resources
https://docs.cloudfoundry.org/adminguide/buildpacks.html
和
https://developer.ibm。 com / answers / questions / 16115 / use-multiple-buildpacks-on-your-app.html
,但我还不太了解。是否可以在Bluemix应用程序中同时使用NodeJS和Java运行时?
but I could not understand much yet. Is there a straightforward way to have both the NodeJS and Java runtime in a Bluemix app?
推荐答案
总之-您需要创建自定义buildpack并将其用于应用程序部署,或获取社区组合的buildpack之一。
In short - you need to create custom buildpack and use it for application deployment or grab one of the community combined buildpacks.
请查看 https://github.com/syahrul-aiman/nodejs-java-buildpack 。
这篇关于Cloudfoundry:如何结合两个运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!