Public | Automated Build

Last pushed: 2 years ago
Short Description
Full Description

Elasticsearch Dockerfile

This repository contains Dockerfile of Elasticsearch for Docker

Base Docker Image


docker run -d -p 9200:9200 -p 9300:9300 sxmichael/docker-elasticsearch

Available builds:

  1. plain (no plugins)

  2. (latest) head (with head plugin)

  3. rabbit (with head, rabbitmq river and enabled dynamic scripting)

  4. rabbit-python (same as rabbit, but with python lang plugin)

Attach persistent/shared directories

  1. Create a mountable data directory <data-dir> on the host.

  2. Start a container by mounting data directory to /usr/share/elasticsearch/data

    docker run -d -p 9200:9200 -p 9300:9300 -v <data-dir>:/usr/share/elasticsearch/data sxmichael/docker-elasticsearch

    After few seconds, open http://<host>:9200 to see the result.

Creating your own builds

  1. You can create folder in config/ for new plugin/config update placing there the elastisearch-n.yml or/and plugins.lst containing the plugin(s) to be installed

  2. You can add a line to config/aliases in format of:

    <tag>: <config1> <config2> <config3>
  3. Run . This will create <tag> folder, put there Dockerfile, merged elasticsearch.yml and merged plugins.lst (merged from config1, config2, config3, ...)

  4. You can run (previously update base and latest, if needed, to build correct docker images) which will build all images from generated definitions, based on aliases defined.

Docker Pull Command
Source Repository