rwynn / monstache

a go daemon that syncs MongoDB to Elasticsearch in realtime. you know, for search.

Home Page:https://rwynn.github.io/monstache-site/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add elasticsearch-healthcheck-timeout as an argument

sammaphey opened this issue · comments

When I try to build a docker image with the following:

# Build the docker file needed to construct integration tests.
FROM rwynn/monstache:latest

# The base image does not expose a port (gitlab CI requires an exposed port to run as a service).
EXPOSE 8080

ENTRYPOINT ["/bin/monstache", "-elasticsearch-healthcheck-timeout", "60"]

I get an error stating flag provided but not defined: -elasticsearch-healthcheck-timeout

It looks like these are the only elastic options I can supply through arguments:

  -elasticsearch-api-key string
        Base64 encoded elasticsearch APIKey value
  -elasticsearch-client-timeout int
        Number of seconds before a request to Elasticsearch is timed out
  -elasticsearch-max-bytes int
        Number of bytes to hold before flushing to Elasticsearch
  -elasticsearch-max-conns int
        Elasticsearch max connections
  -elasticsearch-max-docs int
        Number of docs to hold before flushing to Elasticsearch
  -elasticsearch-max-seconds int
        Number of seconds before flushing to Elasticsearch
  -elasticsearch-password string
        The elasticsearch password for basic auth
  -elasticsearch-pem-file string
        Path to a PEM file for secure connections to elasticsearch
  -elasticsearch-retry
        True to retry failed request to Elasticsearch
  -elasticsearch-url value
        A list of Elasticsearch URLs
  -elasticsearch-user string
        The elasticsearch user name for basic auth
  -elasticsearch-validate-pem-file
        Set to boolean false to not validate the Elasticsearch PEM file (default true)
  -elasticsearch-version string
        Specify elasticsearch version directly instead of getting it from the server

Please add support for all of the config arguments as parameters to pass in

Just try :
ENTRYPOINT ["/bin/monstache", "-elasticsearch-healthcheck-timeout=60"]
and see if that works