Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configurable elasticsearch port #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nunofgs
Copy link

@nunofgs nunofgs commented Jun 7, 2016

This PR adds an environment variable to configure an alternate elasticsearch port (for example, AWS elasticsearch).

I was forced to choose the variable ELASTICSEARCH_TCP_PORT instead of ELASTICSEARCH_PORT (which would make more sense), because Docker already exposes that variable when linking a container, albeit unusable to us since it exposes tcp://elasticsearch:9200.

Another alternative would be to parse the variable that docker exposes (which contains tcp://elasticsearch:9200) and retrieve the port from there. That approach isn't very useful for users who are running this container using extra_hosts, for example:

docker run --add-host "elasticsearch:<ip>" visity/elasticsearch-curator

@nunofgs
Copy link
Author

nunofgs commented Jun 21, 2016

@jverhoeven any chance you could take a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant