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.
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.Resources:
Prerequisites
Sub-Tasks
Notes