forked from bachue/elasticsearch-with-ik
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 86014e0
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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* |