NCIOCPL / glossary-api

API for Dictionary of Cancer Terms, Dictionary of Genetics Terms, and other Glossary documents.
0 stars 5 forks source link

Enabler: Allow debugging against a local Elasticsearch instance. #162

Closed blairlearn closed 1 year ago

blairlearn commented 2 years ago

Allow debugging against an Elasticsearch instance running in a local Docker container.

Because we use the SniffingConnectionPool for our connections, Elasticsearch publishes the name/IP address of the server the client should connect to. When running in a Docker container (as in our integration tests) it publishes the container's IP address, which is on a separate network and not reachable by the client.

The solution to this is to set http.publish_host=localhost via an environment variable on container start up.

ESTIMATE TBD

Resources:

Prerequisites

Sub-Tasks

Notes

blairlearn commented 1 year ago

Will not implement. But good to know how to do this!