Public Repository

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

Dockerfile

FROM iovietnam/centos:7
MAINTAINER IO Vietnam JSC info@iovietnam.com

RUN yum update -y && yum install -y java-1.8.0-openjdk.x86_64

#USER admin
WORKDIR /

ENV ELASTICSEARCH_VERSION 2.1.1
RUN wget https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/zip/elasticsearch/$ELASTICSEARCH_VERSION/elasticsearch-$ELAST$
RUN unzip elasticsearch-$ELASTICSEARCH_VERSION.zip && mv elasticsearch-$ELASTICSEARCH_VERSION elasticsearch
RUN chmod 0777 /elasticsearch
RUN chown -R root:root /elasticsearch
RUN /elasticsearch/bin/plugin install lmenezes/elasticsearch-kopf/2.0
RUN /elasticsearch/bin/plugin install mobz/elasticsearch-head

WORKDIR /
ADD scripts/start.sh start.sh
ADD scripts/stop.sh stop.sh

EXPOSE 9200

scripts/start.sh

/home/admin/elasticsearch/bin/elasticsearch --daemonize --network.bind_host 0.0.0.0 --network.publish_host _nonloopback:ipv4

scripts/stop.sh

kill -9 $(lsof -i :9200 -t)

Docker Pull Command
Owner
iovietnam

Comments (0)