Skip to content

eliotk/elasticsearch-docker-beta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ElasticSearch Beta Dockerfile

This repository contains Dockerfile of the latest beta release of ElasticSearch for Docker.

The corresponding Docker registry repo is here: (https://registry.hub.docker.com/u/eliotk/elasticsearch-beta/)

The Docker registry repo is an automated build repo so that the images will always reflect what's in the Dockerfile.

This is based on the official Docker elasticsearch repo.

Base Docker Image

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull eliotk/elasticsearch-beta

    (alternatively, you can build an image from Dockerfile: docker build -t="eliotk/elasticsearch-beta" github.com/eliotk/elasticsearch-docker-beta)

Usage

docker run -d -p 9200:9200 -p 9300:9300 eliotk/elasticsearch-beta

Attach persistent/shared directories

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

  2. Create ElasticSearch config file at <data-dir>/elasticsearch.yml.

```yml
path:
  logs: /data/log
  data: /data/data
```
  1. Start a container by mounting data directory and specifying the custom configuration file:
```sh
docker run -d -p 9200:9200 -p 9300:9300 -v <data-dir>:/data eliotk/elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml
```

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

About

Dockerfile for latest elasticsearch beta version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages