Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.35 KB

README.md

File metadata and controls

41 lines (28 loc) · 1.35 KB

elasticsearch-init

A container for loading the templates to ElasticSearch.

Tags

elasticsearch-init uses simple SemVer tags as follows:

  • 0.0.1 - latest

Usage

elasticsearch-init leverages the Docker volumes. Each template, that image is supposed to upload to ElasticSearch, is represented as single file mounted to /templates/ directory inside the container. Another point, to keep in mind, is that template uploading requires also a template name. That bit is equal to the filename that holds the template. For instance:

docker run -v ./tpls/logs.json:/templates/logs -l elasticsearch monasca/elasticsearch-init

means that:

  • content of /template/logs will be uploaded to ElasticSearch
  • template name will be logs

Configuration

A number of environment variables can be passed to the container:

Variable Default Description
ELASTICSEARCH_URI elasticsearch:9200 URI to connect to ES
ELASTICSEARCH_TIMEOUT 60 How long to wait for ElasticSearch connection