-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (34 loc) · 1.01 KB
/
Copy pathDockerfile
File metadata and controls
44 lines (34 loc) · 1.01 KB
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
35
36
37
38
39
40
41
42
43
44
#
# Elasticsearch Dockerfile
# git@github.com:monsieurchico/docker-elasticsearch.git
#
FROM java:8-jre
MAINTAINER Romain Derocle "rderocle@gmail.com"
# prevent debian errors
ENV DEBIAN_FRONTEND noninteractive
ENV ES_VERSION 1.4.5
# update os and install nginx
RUN \
cd / && \
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.tar.gz && \
tar xvzf elasticsearch-$ES_VERSION.tar.gz && \
rm -f elasticsearch-$ES_VERSION.tar.gz && \
mv /elasticsearch-$ES_VERSION /elasticsearch
# add resources
COPY ./resources/elasticsearch.yml /elasticsearch/config/elasticsearch.yml
# install plugins
RUN \
/elasticsearch/bin/plugin -i royrusso/elasticsearch-HQ
# expose ports
# - 9200: HTTP
# - 9300: transport
EXPOSE 9200
EXPOSE 9300
# define mountable volumes
VOLUME ["/data", "/data/work", "/data/log", "/data/data"]
# add launch script
COPY ./resources/startup.sh /startup.sh
# define entrypoint
ENTRYPOINT ["/bin/bash", "/startup.sh"]
# define workdir
WORKDIR /data