Hi dear community, and best wishes for 2025, with great work and collaboration
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.
- run Postgres
- run elastic
- run gn4
- 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
- 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.