docker-geonetwork icon indicating copy to clipboard operation
docker-geonetwork copied to clipboard

Docker image "Environment variable ES_HOST is mandatory"

Open huggla opened this issue 2 years ago • 3 comments

Starting the Docker image fails with "Environment variable ES_HOST is mandatory". This variable is not mentioned in the Docker image documentation:

This command will start a debian-based container, running a Tomcat web server, with a geonetwork war deployed on the server:
docker run --name some-geonetwork -d geonetwork

huggla avatar Feb 08 '23 10:02 huggla

Setting ES_HOST to localhost seems to fix this. Am I correct?

I now get "No search service available currently!", so is an external Elasticsearch service always needed?

Would be great if you would update the Docker install documentation.

huggla avatar Feb 09 '23 09:02 huggla

@huggla

so is an external Elasticsearch service always needed?

It seems to be the case. The docs for the general installation say:

The GeoNetwork search engine is built on top of Elasticsearch. The platform is used to index record and also to analyze WFS data (See Analyze and visualize data), an Elasticsearch https://www.elastic.co/products/elasticsearch instance must be installed next to the catalog

An according docker-compose is here

ThomasJunk avatar Jun 06 '23 07:06 ThomasJunk

So what is the action here? Can we make a change to the docs?

https://github.com/docker-library/docs/tree/master/geonetwork

Not sure of the policy for updating this, perhaps via pull-request.

jodygarnett avatar Dec 06 '23 16:12 jodygarnett