Elasticsearch-1.3.4-jdk8 Dockerfile
This repository contains Dockerfile of ElasticSearch 、Oracle-jdk8、marvo、river publiched to Docker hub
Basic Image
*Ubuntu:latest-Ubuntu latest
Installation
- Install docker
- build image
docker build -t="test/elasticsearch:river" (Dockerfile's filepath)
- pull this image
docker pull weihanchen/elasticsearch-1.3.4-jdk8:river
###Usage
docker run -d -p 9200:9200 -p 9300:9300 weihanchen/elasticsearch-1.3.4-jdk8
###Attach directories
- Create a mountable data directory on the host.
- Create ElasticSearch config file at /elasticsearch.yml.
/data/data
/data/config/elasticsearch.yml//your elasticsearch setting
/data/logs
- Start a Container
docker run -d -p 9200:9200 -p 9300:9300 -v <data-dir>:/data weihanchen/elasticsearch-1.3.4-jdk8:river /elasticsearch/bin/elasticsearch -Des.config=/data/config/elasticsearch.yml