Skip to content

Commit

Permalink
initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
bachue committed Feb 3, 2016
0 parents commit 86014e0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM elasticsearch:2.1
MAINTAINER Bachue Zhou "[email protected]"

RUN echo 'deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib' > /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends --force-yes maven openjdk-8-jdk && \
rm -rf /var/lib/apt/lists/*
ADD https://github.com/medcl/elasticsearch-analysis-ik/archive/v1.7.0.tar.gz /tmp/elasticsearch-analysis-ik.tar.gz
RUN tar -xvf /tmp/elasticsearch-analysis-ik.tar.gz -C /tmp && \
cd /tmp/elasticsearch-analysis-ik-1.7.0 && \
mvn package && \
unzip target/releases/elasticsearch-analysis-ik-1.7.0.zip -d /usr/share/elasticsearch/plugins/ik && \
cd / && \
rm -rf /tmp/elasticsearch-analysis-ik*

0 comments on commit 86014e0

Please sign in to comment.