有没有一种方法可以自动下载和设置 Bluemix Liberty Profile 实例?

Is there a way to automatically download and set up a Bluemix Liberty Profile instance?

假设我想在本地配置一个开发环境,允许我在同一个 J2EE 容器中测试我的代码更改,该容器也在云中,我知道我可以轻松下载我的应用程序并将其部署到 Liberty Profile按照这些步骤操作:https://developer.ibm.com/wasdev/downloads/liberty-profile-using-non-eclipse-environments/,但我想知道我是否可以使用 Bluemix 中提供的 Cloud Foundry CLI 工具执行相同的操作(以最可能自动化的方式下载、安装和部署我的应用程序)。

*类似于 Google Cloud Platform,我可以在其中使用 Google SDK 下载和 运行 Google 应用程序引擎的本地实例(mvn appengine:devserver) 然后,当我对我的更改感到满意时,我可以将它推送到云端 (mvn appengine:update).

目前,没有单独的 Liberty 安装来模拟 Bluemix 环境。但核心运行时是相同的。从 wasdev.net 下载 Liberty,然后匹配您的 server.xml,如下所示: https://www.ng.bluemix.net/docs/#starters/liberty/index.html#liberty

如果您想在 Docker 容器上部署您的应用程序而不是使用 Cloud Foundry,您可以下载 'ibmliberty' 容器映像。这将使您能够使用云中使用的 IBM Java Liberty 运行时在本地开发环境中进行测试。