forked from iantruslove/docker-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (26 loc) · 1.47 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Dockerfile for ElasticSearch
FROM quay.io/signalfuse/maestro-base:14.04-0.1.8.1
MAINTAINER Maxime Petazzoni <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
# Python YAML is required to generate ElasticSearch's configuration. Maven is
# needed to build the elasticsearch-zookeeper plugin.
RUN apt-get update && apt-get -y install python-yaml python-setuptools maven
# Get the latest stable version of ElasticSearch
RUN wget -q -O - https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.tar.gz \
| tar -C /opt -xz
# Install the ZooKeeper discovery plugin
RUN git clone https://github.com/kpruden/elasticsearch-zookeeper.git /tmp/elasticsearch-zookeeper
RUN cd /tmp/elasticsearch-zookeeper && mvn package -Dmaven.test.skip=true -Dzookeeper.version=3.4.5
RUN /opt/elasticsearch-1.1.0/bin/plugin -v \
-u file:///tmp/elasticsearch-zookeeper/target/releases/elasticsearch-zookeeper-1.1.0-SNAPSHOT.zip \
-i elasticsearch-zookeeper-1.1.0-SNAPSHOT
RUN rm -rf /tmp/elasticsearch-zookeeper
# Install the AWS Cloud plugin
RUN /opt/elasticsearch-1.1.0/bin/plugin -v -i elasticsearch/elasticsearch-cloud-aws/2.1.1
# Install Marvel plugin
RUN /opt/elasticsearch-1.1.0/bin/plugin -v -i elasticsearch/marvel/1.1.1
ADD run.py /opt/elasticsearch-1.1.0/.docker/
WORKDIR /opt/elasticsearch-1.1.0
VOLUME /var/lib/elasticsearch
VOLUME /var/log/elasticsearch
CMD ["python", "/opt/elasticsearch-1.1.0/.docker/run.py"]