Can I run the Tomcat app on Bluemix?

We have a simple application that runs on tomcat7 and runs for about a year. We plan to release tires on Bluemix, and we would like to know if there is any information that can help us with this. I saw a message discussing porting applications from WebSphere Application Server v7 to the Liberty profile, but I did not see any links to Tomcat. Any documentation or samples that you could provide would be appreciated.

+4
source share
4 answers

Yes, you can run your application on Bluemix, however, because the configuration information distributed in several different xml files (server, content and web server) on Tomcat, I suggest you use a step-by-step approach to moving your application . First you need your application to work on the Liberty WebSphere Application Server V8.5.5 profile, then you can push the server package on Bluemix.

Essentially, you want to do the following:

1) Transfer the configuration of the application and the Tomcat server to the Liberty profile using the WebSphere Application Server Migration Toolkit - Competitive Migration . The following article provides detailed information on using this tool:

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

2) Liberty

3) Liberty Server bluemix. :

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

+6

. Java buildpack Tomcat Java.

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

Edit:

cf push <appname> -b java_buildpack

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

URL- -b - java Tomcat . Java, url buildpack, Java buildpack . Bluemix buildpack WebSphere Liberty.

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

+11

:

cf push <appname> -b java_buildpack

Java buildpack Bluemix. , java buildpack, CloudFoundry Bluemix. git, .

+3

, Bluemix java_buildpack buildpack, Tomcat. Bluemix buildpack, :

cf push <appname> -b java_buildpack -p <apparchive>

: ?

, Bluemix. :

cf buildpacks

( ):

Getting buildpacks...

buildpack                              position   enabled   locked   filename
liberty-for-java                       1          true      false    buildpack_liberty-for-java_v1.18-20150519-1642-yp.zip
sdk-for-nodejs                         2          true      false    buildpack_sdk-for-nodejs_v1.18-20150519-1759-yp.zip
noop-buildpack                         3          true      false    noop-buildpack-20140311-1519.zip
java_buildpack                         4          true      false    java-buildpack-v2.7.1.zip
ruby_buildpack                         5          true      false    ruby_buildpack-cached-v1.3.0.zip
nodejs_buildpack                       6          true      false    nodejs_buildpack-cached-v1.2.0.zip
go_buildpack                           7          true      false    go_buildpack-cached-v1.2.0.zip
python_buildpack                       8          true      false    python_buildpack-cached-v1.2.0.zip
php_buildpack                          9          true      false    php_buildpack-offline-v3.1.0.zip
aspnet5-experimental                   10         true      false    buildpack_aspnet5-experimental_v0.1.5-20150508-1205.zip
liberty-for-java_v1-17-20150501-1729   11         true      false    buildpack_liberty-for-java_v1.17-20150501-1729-yp.zip
sdk-for-nodejs_v1-17-1-20150519-0951   12         true      false    buildpack_sdk-for-nodejs_v1.17.1-20150519-0951-yp.zip

, buildpack java_buildpack java-buildpack-v2.7.1.zip. Java Buildpack v2.7.1. , buildpack Tomcat v8.0.20.

, liberty-for-java buildpack, Liberty Java Bluemix, buildpack_liberty-for-java_v1.18-20150519-1642-yp.zip, v1.18 buildpack. , liberty-for-java_v1-17-20150501-1729 buildpack, v1.17 buildpack. Liberty , buildpack.

buildpacks Node.js(nodejs_buildpack), PHP (php_buildpack) .. buildpack ASP.NET 5 (aspnet5-experimental).

+3

Source: https://habr.com/ru/post/1584115/


All Articles