forked from ViaQ/docker-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-2.x
32 lines (27 loc) · 923 Bytes
/
Dockerfile-2.x
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
FROM centos:centos7
MAINTAINER The ViaQ Community <community@TBA>
EXPOSE 9200
EXPOSE 9300
USER 0
ENV HOME=/opt/app-root/src \
JAVA_VER=1.8.0 \
ES_VER=2.3.4 \
ES_CONF=/usr/share/elasticsearch/config/elasticsearch.yml \
INSTANCE_RAM=8G \
NODE_QUORUM=1 \
RECOVER_AFTER_NODES=1 \
RECOVER_EXPECTED_NODES=1 \
RECOVER_AFTER_TIME=5m \
PLUGIN_LOGLEVEL=INFO
LABEL io.k8s.description="Elasticsearch container for allowing indexing and searching of aggregated logs" \
io.k8s.display-name="Elasticsearch ${ES_VER}" \
io.openshift.expose-services="9200:https, 9300:https" \
io.openshift.tags="logging,elk,elasticsearch"
ADD elasticsearch.repo /etc/yum.repos.d/elasticsearch.repo
ADD run.sh install.sh ${HOME}/
ADD *.yml /usr/share/elasticsearch/config/
ADD com.redhat.viaq-template.json /usr/share/elasticsearch/config/
RUN ${HOME}/install.sh
WORKDIR ${HOME}
USER 1000
CMD ["sh", "/opt/app-root/src/run.sh"]