Sign inSign up

gici/elasticsearch

By gici

Updated over 10 years ago

Elasticsearch

Image
0

1.7K

gici/elasticsearch repository overview

Elasticsearch Dockerfile

This repository contains Dockerfile of Elasticsearch for Docker

Base Docker Image
Usage
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

```sh
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 generate.sh . This will create folder, put there Dockerfile, merged elasticsearch.yml and merged plugins.lst (merged from config1, config2, config3, ...)

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

Tag summary

Content type

Image

Digest

Size

147.6 MB

Last updated

over 10 years ago

docker pull gici/elasticsearch