Browse Source

Clone of es2 branch from docker-elasticsearch

master
dave 6 years ago
commit
5881c29841
  1. 15
      Dockerfile
  2. 13
      README.md
  3. 4
      elasticsearch.conf
  4. 2
      supervisor.conf

15
Dockerfile

@ -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

@ -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

@ -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

@ -0,0 +1,2 @@
[supervisord]
nodaemon=true
Loading…
Cancel
Save