-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (14 loc) · 787 Bytes
/
Dockerfile
File metadata and controls
22 lines (14 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM phusion/baseimage:0.9.16
MAINTAINER Vladimir Shulyak "vladimir@shulyak.net" (prev: Deni Bertovic "me@denibertovic.com")
ENV DEBIAN_FRONTEND noninteractive
# we could use elastic.co deb repo actually...
RUN apt-get update && apt-get install -y ca-certificates wget openjdk-7-jre
RUN wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.5.2.tar.gz -O /tmp/elasticsearch.tar.gz 2> /dev/null
RUN tar zxvf /tmp/elasticsearch.tar.gz -C /opt \
&& mv /opt/elasticsearch-1.5.2 /opt/elasticsearch \
&& rm -rf /tmp/elasticsearch.tar.gz
ADD start_elasticsearch.sh /etc/service/elasticsearch/run
RUN chmod 755 /etc/service/elasticsearch/run
VOLUME ["/opt/elasticsearch/config", "/opt/elasticsearch/data", "/opt/elasticsearch/logs"]
EXPOSE 9200
EXPOSE 9300