Running GeoNetwork 5

Hi dear community, and best wishes for 2025, with great work and collaboration :crossed_fingers:

GeoNetwork 5 project bootstrap has been started for several months now and some core developers are already busy on the task.

I wanted to take a closer look by trying to start the project locally, but I couldn’t find any documentation on how to do so.

If such documentation exists, could you please point me in its direction? If not, would it be possible to create comprehensive documentation to enable anyone in the community to run the project, understand it as you do, and contribute effectively?
This would align with the spirit of transparency and open collaboration.

Thank you!

Hi, Florent,

I am not a GN5 expert, but I have it running. Here are my notes - I hope this will get you running, too.

  1. run Postgres
  2. run elastic
  3. run gn4
  4. run gn5

POSTGRES:

NOTE: this is for the arm64 (mac) container - switch to a different container if you’re not on a mac.

docker run -p 5432:5432 -e POSTGRES_PASS=postgres -e POSTGRES_USER=postgres kartoza/postgis:16-3.4
PGPASSWORD=postgres psql -h localhost -U postgres -d template1 -c “create database gn;”
PGPASSWORD=postgres psql -h localhost -U postgres -d gn -c “create extension postgis;”

PGPASSWORD=postgres psql -h localhost -U postgres -d gn -c “CREATE USER "www-data" WITH SUPERUSER PASSWORD ‘www-data’;”

PGPASSWORD=postgres psql -h localhost -U postgres -d gn

ELASTIC:

docker run -p 9200:9200 -p 9300:9300 -e “discovery.type=single-node” -e “xpack.security.enabled=false” -e “xpack.security.enrollment.enabled=false” docker.elastic.co/elasticsearch/elasticsearch:8.14.0

GN4

cd web
mvn jetty:run -Dgeonetwork.db.type=postgres-postgis -Djdbc.database=gn -Djdbc.username=www-data -Djdbc.password=www-data -Djdbc.host=localhost -Ddb.port=5432 -Djdbc.port=5432

GN5

  1. edit the application.yml and make sure the to set indexRecordName: gn-records (this will use the GN4 index). I think the GN5 elastic index needs some work, so I suggest using the GN4 for now. You can load some sample data into GN4.

cd src/app/geonetwork
mvn spring-boot:run

access via localhost:7979 – login as admin/admin.