我可以在Bluemix上运行我的Tomcat应用程序吗?

Jac*_*ans 4 tomcat websphere-liberty ibm-cloud

我们有一个在tomcat7上运行的简单应用程序,已经运行了大约一年.我们计划在Bluemix上发挥作用,我们想知道是否有任何信息可以帮助我们完成这项工作.我看到一篇帖子讨论了将应用程序从WebSphere Application Server v7迁移到Liberty配置文件,但我没有看到任何对Tomcat的引用.您可以提供任何文件或样品,我们将不胜感激.

Ram*_*nam 11

对.您可以使用社区Java buildpack将Tomcat用作Java运行时.

cf push -b https://github.com/cloudfoundry/java-buildpack.git

编辑:

cf push <appname> -b java_buildpack
Run Code Online (Sandbox Code Playgroud)

Doc for Tomcat buildpack:https://github.com/cloudfoundry/java-buildpack

预安装的buildpack名称或外部url -b选项后是开源java Tomcat buildpack.在推送Java应用程序时,如果未指定buildpack名称或url,则将选择默认的Java buildpack.在Bluemix中,缺省buildpack是WebSphere Liberty buildpack.

Doc for Liberty buildpack:https://www.ng.bluemix.net/docs/#starters/liberty/index.html#optionsforpushinglibertyapplications


Ran*_*ers 6

是的,您可以在Bluemix上运行您的应用程序,但是,由于配置信息分布在Tomcat上的几个不同的xml文件(服务器,内容和网站),我建议您采取交错的方法来移动您的应用程序.您首先需要让您的应用程序在WebSphere Application Server V8.5.5 Liberty Profile上运行,然后您可以将服务器包推送到Bluemix.

基本上,您想要执行以下操作:

1)使用WebSphere Application Server Migration Toolkit - 竞争性迁移将Tomcat应用程序和服务器配置迁移到Liberty配置文件.以下文章提供了有关此工具用法的详细信息:

http://www.ibm.com/developerworks/websphere/downloads/migtoolkit/compmig.html

2)在Liberty Profile上测试您的应用程序

3)将Liberty Server程序包推送到bluemix.我发现下面的文章对于推送服务器包非常有用:

https://developer.ibm.com/bluemix/2015/01/06/modify-liberty-server-xml-configurations-ibm-bluemix/#