Clone of es2 branch from docker-elasticsearch
This commit is contained in:
commit
5881c29841
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM ubuntu:trusty
|
||||
|
||||
RUN apt-get update ;\
|
||||
apt-get install -y curl openjdk-7-jre-headless supervisor ;\
|
||||
curl -o /tmp/elasticsearch.deb "https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.2.0/elasticsearch-2.2.0.deb" ;\
|
||||
dpkg -i /tmp/elasticsearch.deb ;\
|
||||
rm /tmp/elasticsearch.deb ;\
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ADD elasticsearch.conf /etc/supervisor/conf.d/elasticsearch.conf
|
||||
ADD supervisor.conf /etc/supervisor/conf.d/supervisor.conf
|
||||
|
||||
VOLUME /var/lib/elasticsearch/
|
||||
ENTRYPOINT ["supervisord"]
|
||||
EXPOSE 9200 9300
|
13
README.md
Normal file
13
README.md
Normal file
@ -0,0 +1,13 @@
|
||||
docker-elasticsearch2
|
||||
=====================
|
||||
|
||||
Container for running [Elasticsearch 2.x](https://www.elastic.co/products/elasticsearch).
|
||||
|
||||
*Usage:*
|
||||
|
||||
* Build: `docker build -t elasticsearch .`
|
||||
* Run: `docker run -d -v /data/elastic:/var/lib/elasticsearch -p 9300:9300 -p 9200:9200 elasticsearch`
|
||||
|
||||
*Extras:*
|
||||
|
||||
* Override default config file: `-v /data/myconfig.yml:/etc/elasticsearch/elasticsearch.yml`
|
4
elasticsearch.conf
Normal file
4
elasticsearch.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[program:elasticsearch]
|
||||
command=/usr/share/elasticsearch/bin/elasticsearch -p /var/run/elasticsearch/elasticsearch.pid --default.path.home=/usr/share/elasticsearch --default.path.logs=/var/log/elasticsearch --default.path.data=/var/lib/elasticsearch --default.path.work=/tmp/elasticsearch --default.path.conf=/etc/elasticsearch
|
||||
user=elasticsearch
|
||||
redirect_stderr=true
|
2
supervisor.conf
Normal file
2
supervisor.conf
Normal file
@ -0,0 +1,2 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
Loading…
Reference in New Issue
Block a user