-
Notifications
You must be signed in to change notification settings - Fork 111
/
Dockerfile
32 lines (25 loc) · 964 Bytes
/
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
# start with a base image
FROM ubuntu:14.10
MAINTAINER Real Python <info@realpython.com>
# initial update
RUN apt-get update -q
# install wget, java, and mini-httpd web server
RUN apt-get install -yq wget
RUN apt-get install -yq default-jre-headless
RUN apt-get install -yq mini-httpd
# install elasticsearch
RUN cd /tmp && \
wget -nv https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.5.tar.gz && \
tar zxf elasticsearch-1.3.5.tar.gz && \
rm -f elasticsearch-1.3.5.tar.gz && \
mv /tmp/elasticsearch-1.3.5 /elasticsearch
# install kibana
RUN cd /tmp && \
wget -nv https://download.elasticsearch.org/kibana/kibana/kibana-3.1.2.tar.gz && \
tar zxf kibana-3.1.2.tar.gz && \
rm -f kibana-3.1.2.tar.gz && \
mv /tmp/kibana-3.1.2 /kibana
# start elasticsearch
CMD /elasticsearch/bin/elasticsearch -Des.logger.level=OFF & mini-httpd -d /kibana -h `hostname` -r -D -p 8000
# expose ports
EXPOSE 8000 9200