[GeoNode-users] How to Install Oracle Java Geonode on docker

francesco bartoli xbartolone at gmail.com
Thu Oct 18 03:42:51 PDT 2018


Hi Ana,

I would say you can stay with the base jvm inherited from the tomcat image
as I show in the previous email.

Hope this helps
Francesco

Il giorno gio 18 ott 2018 alle ore 11:59 Ana Boljevic <ana.boljevic at cedis.me>
ha scritto:

> Dear Francesco,
>
>
>
> We have installed Oracle Java jre inside Geoserver container:
>
> apt install python-software-properties
>
> add-apt-repository ppa:webupd8team/java
>
> apt update
>
> apt install oracle-java8-installer
>
> update-alternatives --config java
>
> choose path: /usr/lib/jvm/java-8-oracle/jre/bin/java
>
>
>
> We saw that in Geoserver container JAVA_HOME is /docker-java-home/jre
>
> so we did:
>
> mv /docker-java-home/jre /docker-java-home/jre_orig
>
> cp /usr/lib/jvm/java-8-oracle/jre /docker-java-home
>
> restart docker stack.
>
> Now Geoserver -> Server Status:
>
> JVM Version    Oracle Corporation: 1.8.0_181 (OpenJDK 64-Bit Server VM)
>
> :-)
>
> Should we try to install newer version Oracle JRE9/10 ?
>
>
>
> Regards,
>
>
>
> *Ana Boljević*
>
> Direkcija za razvoj, pristup mreži i ICT
>
> Sektor za ICT
>
> Služba za GIS i tehničku bazu podataka
>
> *[image: CEDIS]*
>
> *DOO „Crnogorski elektrodistributivni sistem“ Podgorica*
>
> Ivana Milutinovića br.12, Podgorica
>
> Tel: +382 20 408 473
>
> *www.cedis.me <http://www.cedis.me/>*
>
> [image: jelkica]Please do not print this e-mail unless you really need to
>
>
>
> *From:* Ana Boljevic
> *Sent:* Thursday, October 18, 2018 10:54 AM
> *To:* 'francesco bartoli' <xbartolone at gmail.com>
> *Cc:* geonode-users <geonode-users at lists.osgeo.org>;
> geonode-users-bounces at lists.osgeo.org
> *Subject:* RE: [GeoNode-users] How to Install Oracle Java Geonode on
> docker
>
>
>
> Dear Francesco,
>
>
>
> No, we haven't faced any unexpecting behavior from deployment.
> From inside geoserver container we have done:
> apt install python-software-properties
> add-apt-repository ppa:webupd8team/java
> apt update
> apt install oracle-java8-installer
> update-alternatives --config java
> choose path: /usr/lib/jvm/java-8-oracle/jre/bin/java
> restart geonode stack.
>
>
> Kind regards,
>
>
>
> *Ana Boljević*
>
> Direkcija za razvoj, pristup mreži i ICT
>
> Sektor za ICT
>
> Služba za GIS i tehničku bazu podataka
>
> *[image: CEDIS]*
>
> *DOO „Crnogorski elektrodistributivni sistem“ Podgorica*
>
> Ivana Milutinovića br.12, Podgorica
>
> Tel: +382 20 408 473
>
> *www.cedis.me <http://www.cedis.me/>*
>
> [image: jelkica]Please do not print this e-mail unless you really need to
>
>
>
> *From:* francesco bartoli [mailto:xbartolone at gmail.com
> <xbartolone at gmail.com>]
> *Sent:* Thursday, October 18, 2018 9:53 AM
> *To:* Ana Boljevic <ana.boljevic at cedis.me>
> *Cc:* geonode-users <geonode-users at lists.osgeo.org>;
> geonode-users-bounces at lists.osgeo.org
> *Subject:* Re: [GeoNode-users] How to Install Oracle Java Geonode on
> docker
>
>
>
> Dear Ana,
>
>
>
> JVM is supposed to be JRE8 as you can see here
> https://github.com/GeoNode/geoserver-docker/blob/master/Dockerfile#L1
>
>
>
> So the message from the server status is correct, actually I don't know
> why you are getting that output from inside the container. Let me
> investigate more, anyway are you facing any wrong behavior from your
> deployment?
>
>
>
> Francesco
>
>
>
> Il giorno gio 18 ott 2018 alle ore 07:30 Ana Boljevic <
> ana.boljevic at cedis.me> ha scritto:
>
> Dear Geonode community,
>
>
>
> We have made fresh Geonode installation on docker (master branch), version
> 2.10rc4.
>
> In Geoserver container, we have made Oracle Java JDK 9 installation.
> Inside Geoserver container, output of command "java -version" is:
>
> root at 8d03005bc67f:/usr/local/tomcat/tmp# java -version
>
> java version "9.0.4"
>
> Java(TM) SE Runtime Environment (build 9.0.4+11)
>
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
>
> But in the Geoserver -> Server Status page (see attachment):
>
> JVM Version: Oracle Corporation: 1.8.0_181 (OpenJDK 64-Bit Server VM).
>
>
>
> Does anyone know how to help? Thanks in advance J
>
>
>
> Kind regards,
>
>
>
> *Ana Boljević*
>
> Direkcija za razvoj, pristup mreži i ICT
>
> Sektor za ICT
>
> Služba za GIS i tehničku bazu podataka
>
> *[image: CEDIS]*
>
> *DOO „Crnogorski elektrodistributivni sistem“ Podgorica*
>
> Ivana Milutinovića br.12, Podgorica
>
> Tel: +382 20 408 473
>
> *www.cedis.me <http://www.cedis.me/>*
>
> [image: jelkica]Please do not print this e-mail unless you really need to
>
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181018/4ce0285b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2178 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181018/4ce0285b/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1092 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181018/4ce0285b/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1092 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181018/4ce0285b/attachment-0005.jpg>


More information about the geonode-users mailing list