7 Install_GeoNetwork
Kaimbacher edited this page 2022-06-30 15:39:38 +00:00

1. GeoNetwork Installation

Download zip package including the WAR file: https://next.agrarforschung.at/index.php/s/wAPmRtsY5waLGYb/download?path=%2F&files=geonetwork-enterprise-2022.2.zip

cd /tmp/
unzip geonetwork-enterprise-2022.2.zip

Move the war file into the web app aof jetty:

sudo -u jetty cp geonetwork.war /opt/webbase/webapps/
sudo systemctl restart jetty9.service

2. GeoNetwork Configuration

Define DB connection

sudo nano /opt/webbase/work/jetty-0_0_0_0-8080-geonetwork_war-_geonetwork-any-/webapp/WEB-INF/config-db/jdbc.properties

jdbc.username=#{systemEnvironment['GEONETWORK_DB_USERNAME']?:'gn_app'}
jdbc.password=#{systemEnvironment['GEONETWORK_DB_PASSWORD']?:'xxx'}
jdbc.database=#{systemEnvironment['GEONETWORK_DB_NAME']?:'gn_db'}
jdbc.host=#{systemEnvironment['GEONETWORK_DB_HOST']?:'localhost'}
jdbc.port=#{systemEnvironment['GEONETWORK_DB_PORT']?:'5432'}

sudo nano /opt/webbase/work/jetty-0_0_0_0-8080-geonetwork_war-_geonetwork-any-/webapp/WEB-INF/config-node/srv.xml
activate postgresql-postgis and deactivate h2:

 <import resource="../config-db/postgres-postgis.xml"/>
 <!--  <import resource="../config-db/${geonetwork.db.type:h2}.xml"/> -->

Define tmp directory for file caching

sudo nano /opt/webbase/work/jetty-0_0_0_0-8080-geonetwork_war-_geonetwork-any-/webapp/WEB-INF/classes/cache.ccf
add the following path:

jcs.auxiliary.DC.attributes.DiskPath=${java.io.tmpdir}/jcs_caching