How can I install JBoss EAP and JBoss EWS Support in OpenShift Origin

社会主义新天地 提交于 2019-12-04 11:37:18

JBoss AS and JBoss EWS installation guide for Redhat OpenShift Origin v4

Unfortunately up to now, the JBoss AS and EWS are not officially supported on OpenShift Origin v4, however there is a solution for that. Thanks for Diego Castro from Getup Cloud (http://getupcloud.com) for creating the necessary RPM packages, it was him who actually enabled the possibility to install JBoss AS on OpenShift Origin v4 for us.

So you have to install the following RPM packages before you can enable the installation of the JBoss cartridges

https://s3-us-west-2.amazonaws.com/getup-mirror/getup-openshift-origin-release-4/dependencies/tomcat6-6.0.39-1.noarch.rpm
https://s3-us-west-2.amazonaws.com/getup-mirror/getup-openshift-origin-release-4/dependencies/tomcat7-7.0.50-1.noarch.rpm
https://s3-us-west-2.amazonaws.com/getup-mirror/getup-openshift-origin-release-4/dependencies/maven3-3.0.3-4.noarch.rpm
https://s3-us-west-2.amazonaws.com/getup-mirror/getup-openshift-origin-release-4/dependencies/jboss-as7-modules-7.1.1.Final-1.noarch.rpm
https://s3-us-west-2.amazonaws.com/getup-mirror/getup-openshift-origin-release-4/dependencies/jboss-as7-7.1.1.Final-1.noarch.rpm

you can probably install them directly, but I prefer downloading them with wget and then running "yum install" on them.

To directly install them all with yum run:

yum install -y \
https://s3-us-west-2.amazonaws.com/getup-mirror/getup-openshift-origin-release-4/dependencies/tomcat6-6.0.39-1.noarch.rpm \
https://s3-us-west-2.amazonaws.com/getup-mirror/getup-openshift-origin-release-4/dependencies/tomcat7-7.0.50-1.noarch.rpm \
https://s3-us-west-2.amazonaws.com/getup-mirror/getup-openshift-origin-release-4/dependencies/maven3-3.0.3-4.noarch.rpm \
https://s3-us-west-2.amazonaws.com/getup-mirror/getup-openshift-origin-release-4/dependencies/jboss-as7-modules-7.1.1.Final-1.noarch.rpm \
https://s3-us-west-2.amazonaws.com/getup-mirror/getup-openshift-origin-release-4/dependencies/jboss-as7-7.1.1.Final-1.noarch.rpm

If the installs were successful, you should be able to install now these OpenShift cartridges, so just run:

yum install openshift-origin-cartridge-jbossas
yum install openshift-origin-cartridge-jbossews

If you can't install these, maybe try running the installation of packages again.

Now thsese should be successful too. If they are, they will be listed under "Installed", somewhat like this:

Installed:
  openshift-origin-cartridge-jbossas.noarch 0:1.26.1.1-1.el6                    

Dependency Installed:
  jboss-openshift-metrics-module.noarch 0:1.0.2.redhat_1-1.2.el6oso             
  quartz.noarch 0:2.2.1.redhat_1-1.el6oso   

So now after checking the "yum list installed" looked like this:

# yum list installed | grep jboss
jboss-as7.noarch                          7.1.1.Final-1        @/jboss-as7-7.1.1.Final-1.noarch
jboss-as7-modules.noarch                  7.1.1.Final-1        @/jboss-as7-modules-7.1.1.Final-1.noarch
jboss-openshift-metrics-module.noarch     1.0.2.redhat_1-1.2.el6oso
openshift-origin-cartridge-jbossas.noarch 1.26.1.1-1.el6       @openshift-origin
openshift-origin-cartridge-jbossews.noarch

# yum list installed | grep tomc
apache-tomcat-apis.noarch                 0.1-1.el6            @base            
tomcat6.noarch                            6.0.39-1             @/tomcat6-6.0.39-1.noarch
tomcat7.noarch                            7.0.50-1             @/tomcat7-7.0.50-1.noarch

Now run:

service ruby193-mcollective restart

Might look something like this:

# service ruby193-mcollective restart
Shutting down mcollective:                                 [  OK  ]
Starting mcollective: warn 2014/09/30 04:31:42: config.rb:117:in `block in loadconfig' Use of deprecated 'topicprefix' option.  This option is ignored and should be removed from '/opt/rh/ruby193/root/etc/mcollective/server.cfg'
                                                           [  OK  ]

Then run the activation of the cartridges:

oo-admin-ctl-cartridge -c import-node --activate

The output should now look something like this:

# oo-admin-ctl-cartridge -c import-node --activate
warn 2014/09/30 04:33:03: config.rb:117:in `block in loadconfig' Use of deprecated 'topicprefix' option.  This option is ignored and should be removed from '/opt/rh/ruby193/root/etc/mcollective/client.cfg'
Updating 3 cartridges ...
542a6ac5653e8a988b000001 # A jbossas-7 (active)
542a6ac5653e8a988b000002 # A jbossews-2.0 (active)
542a6ac5653e8a988b000003 # A jbossews-1.0 (active)

If that didn't work, then maybe try restarting the VM. That might help.

So now those cartridges should be available, you should be able to find them by checking the cartridge list with:

rhc cartridge list

So between all the cartridges you should now also be able to find these:

jbossas-7           JBoss Application Server 7           web
jbossews-1.0        Tomcat 6 (JBoss EWS 1.0)             web
jbossews-2.0        Tomcat 7 (JBoss EWS 2.0)             web

You should now be able to use these cartridges in OpenShift.

Hope this helps you guys!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!