Is this the sort of thing that geard will address going forward?


On Wed, Apr 23, 2014 at 8:46 AM, Farah Juma <fjuma@redhat.com> wrote:

> From: "Jim McGuinness" <dador92@gmail.com>
> To: "Farah Juma" <fjuma@redhat.com>, wildfly-dev@lists.jboss.org
> Sent: Wednesday, April 23, 2014 9:10:02 AM
> Subject: Re: [wildfly-dev] WildFly 8.1.0.CR1 on OpenShift
>
> Farah,
>
> I've been looking at this some more, and the marker for Java just toggles
> back and forth between Java 6 and Java 7. If the Java 7 marker is not
> present, then a cartridge just defaults back to Java 6.
>
> But you still have to have the version of Java installed on the gear in
> order to toggle back and forth.
>
> Here are the contents of the /usr/lib/jvm directory on the gear where
> OpenShift online installed my Wildfly 8.1
> cartridge ...
>
> lrwxrwxrwx.  1 root root   26 Apr 22 13:19 java ->
> /etc/alternatives/java_sdk
> drwxr-xr-x.  3 root root 4.0K Feb 18  2013 java-1.5.0-gcj-1.5.0.0
> lrwxrwxrwx.  1 root root   32 Apr 22 13:19 java-1.6.0 ->
> /etc/alternatives/java_sdk_1.6.0
> lrwxrwxrwx.  1 root root   26 Apr 22 13:19 java-1.6.0-openjdk ->
> java-1.6.0-openjdk-1.6.0.0
> drwxr-xr-x.  7 root root 4.0K Apr 11 06:57 java-1.6.0-openjdk-1.6.0.0
> lrwxrwxrwx.  1 root root   32 Apr 22 13:18 java-1.7.0 ->
> /etc/alternatives/java_sdk_1.7.0
> lrwxrwxrwx.  1 root root   27 Apr 22 13:18 java-1.7.0-openjdk ->
> java-1.7.0-openjdk-1.7.0.55
> drwxr-xr-x.  3 root root 4.0K Feb  3 17:06 java-1.7.0-openjdk-1.7.0.45
> drwxr-xr-x.  3 root root 4.0K Apr 22 13:19 java-1.7.0-openjdk-1.7.0.51
> drwxr-xr-x.  7 root root 4.0K Apr 22 13:18 java-1.7.0-openjdk-1.7.0.55
> drwxr-xr-x.  3 root root 4.0K May  1  2013 java-1.7.0-openjdk-1.7.0.9
> lrwxrwxrwx.  1 root root   34 Apr 22 13:19 java-openjdk ->
> /etc/alternatives/java_sdk_openjdk
> lrwxrwxrwx.  1 root root   21 Apr 22 13:19 jre -> /etc/alternatives/jre
> lrwxrwxrwx.  1 root root   27 Feb 18  2013 jre-1.5.0 ->
> /etc/alternatives/jre_1.5.0
> lrwxrwxrwx.  1 root root   26 Feb 18  2013 jre-1.5.0-gcj ->
> java-1.5.0-gcj-1.5.0.0/jre
> lrwxrwxrwx.  1 root root   27 Apr 22 13:19 jre-1.6.0 ->
> /etc/alternatives/jre_1.6.0
> lrwxrwxrwx.  1 root root   30 Apr 22 13:19 jre-1.6.0-openjdk ->
> java-1.6.0-openjdk-1.6.0.0/jre
> lrwxrwxrwx.  1 root root   27 Apr 22 13:18 jre-1.7.0 ->
> /etc/alternatives/jre_1.7.0
> lrwxrwxrwx.  1 root root   31 Apr 22 13:18 jre-1.7.0-openjdk ->
> java-1.7.0-openjdk-1.7.0.55/jre
> lrwxrwxrwx.  1 root root   25 Feb 18  2013 jre-gcj ->
> /etc/alternatives/jre_gcj
> lrwxrwxrwx.  1 root root   29 Apr 22 13:19 jre-openjdk ->
> /etc/alternatives/jre_openjdk
>
> I truly think the answer is that the gear needs to add Java 8 SE in order
> for the Wildfly cartridge to be able to use it. And the Wildfly cartridge
> will then need to be updated to respond to a Java 8 marker..

That's correct. Since OpenShift hasn't yet made JDK 8 available though, the idea is to update the WildFly cartridge so that it installs JDK 8 on the gear.

Farah

>
>
> On Tue, Apr 22, 2014 at 6:57 PM, Jim McGuinness <dador92@gmail.com> wrote:
>
> > Doesn't the marker just indicate the JDK version(s) used/usable by the app
> > (in this case wildfly)? The gear still has to have a JDK 8 installed
> > doesn't it?
> >
> >
> > On Tue, Apr 22, 2014 at 6:00 PM, Farah Juma <fjuma@redhat.com> wrote:
> >
> >>
> >> > From: "Jim McGuinness" <dador92@gmail.com>
> >> > To: "Farah Juma" <fjuma@redhat.com>
> >> > Sent: Tuesday, April 22, 2014 5:57:07 PM
> >> > Subject: Re: [wildfly-dev] WildFly 8.1.0.CR1 on OpenShift
> >> >
> >> > Would it be better to create a JDK 8 cartridge which could be deployed
> >> in
> >> > the same gear as the Wildfly 8.1 cartridge? Ideally you'll want to use
> >> the
> >> > JDK 8 for more than just Wildfly.
> >>
> >> Support for different JDK versions is added using marker files (e.g.,
> >> this post describes how JDK7 support was added:
> >> https://www.openshift.com/blogs/new-openshift-release-aug-8-2012-java-7-cakephp-origin-updates-and-more
> >> ).
> >>
> >> > Is the gear's lack of a JDK 8 caused by the requirements of SELinux?
> >>
> >> It just hasn't been added by OpenShift yet.
> >>
> >> >
> >> > On Tue, Apr 22, 2014 at 2:35 PM, Farah Juma <fjuma@redhat.com> wrote:
> >> >
> >> > > OpenShift hasn't added support for JDK8 yet but it should be possible
> >> for
> >> > > us to add it into the WildFly cartridge. I'll look into this.
> >> > >
> >> > > Farah
> >> > >
> >> > > ----- Original Message -----
> >> > > > From: "Tomaž Cerar" <tomaz.cerar@gmail.com>
> >> > > > To: "Farah Juma" <fjuma@redhat.com>
> >> > > > Cc: "WildFly Dev" <wildfly-dev@lists.jboss.org>
> >> > > > Sent: Tuesday, April 22, 2014 3:22:45 PM
> >> > > > Subject: Re: [wildfly-dev] WildFly 8.1.0.CR1 on OpenShift
> >> > > >
> >> > > > Great news!
> >> > > >
> >> > > > Btw, did you manage to add support for JDK8 yet?
> >> > > > Not sure how far is openshift in this area but it would be great if
> >> we
> >> > > > would have JDK8 with WildFly on OpenShift.
> >> > > >
> >> > > > --
> >> > > > tomaz
> >> > > >
> >> > > >
> >> > > > On Tue, Apr 22, 2014 at 9:17 PM, Farah Juma <fjuma@redhat.com>
> >> wrote:
> >> > > >
> >> > > > > Since WildFly 8.1.0.CR1 was released last week, the OpenShift
> >> WildFly
> >> > > > > cartridge has been updated as well.
> >> > > > >
> >> > > > > See
> >> > > > >
> >> > >
> >> https://community.jboss.org/people/fjuma/blog/2014/04/22/wildfly-810cr1-on-openshiftfor
> >> > > > > more details on how to get started. Please try it out and provide
> >> > > > > feedback.
> >> > > > >
> >> > > > > _______________________________________________
> >> > > > > wildfly-dev mailing list
> >> > > > > wildfly-dev@lists.jboss.org
> >> > > > > https://lists.jboss.org/mailman/listinfo/wildfly-dev
> >> > > > >
> >> > > >
> >> > >
> >> > > _______________________________________________
> >> > > wildfly-dev mailing list
> >> > > wildfly-dev@lists.jboss.org
> >> > > https://lists.jboss.org/mailman/listinfo/wildfly-dev
> >> > >
> >> >
> >>
> >
> >
>