Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ RUN echo "deb http://archive.ubuntu.com/ubuntu quantal main universe multiverse"
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-6-jre wget
ENV JAVA_HOME /usr/lib/jvm/java-6-openjdk-amd64
RUN (cd /tmp && wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.1.tar.gz -O pkg.tar.gz && tar zxf pkg.tar.gz && mv elasticsearch-* /opt/elasticsearch)
RUN (cd /tmp && wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.5.tar.gz -O pkg.tar.gz && tar zxf pkg.tar.gz && mv elasticsearch-* /opt/elasticsearch)
ADD plugins.sh /usr/local/bin/plugins
RUN chmod +x /usr/local/bin/plugins
RUN rm -rf /tmp/*

EXPOSE 9200
EXPOSE 9300
ENTRYPOINT ["/opt/elasticsearch/bin/elasticsearch"]
CMD ["-f"]
CMD ["/usr/local/bin/plugins"]
47 changes: 47 additions & 0 deletions plugins.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash
# PLUGINS=${PLUGINS:-bigdesk,head}
echo "INSTALLING ELASTICSEARCH PLUGINS"
for i in $(echo $PLUGINS | tr "," "\n")
do
# echo $i
if [ $i == "bigdesk" ]
then
echo "INSTALLING BIGDESK"
/opt/elasticsearch/bin/plugin --install lukas-vlcek/bigdesk
fi

if [ $i == "head" ]
then
echo "INSTALLING HEAD"
/opt/elasticsearch/bin/plugin --install mobz/elasticsearch-head
fi


if [ $i == "hammer" ]
then
echo "INSTALLING HAMMER"
/opt/elasticsearch/bin/plugin --install andrewvc/elastic-hammer
fi


if [ $i == "paramedic" ]
then
echo "INSTALLING PARAMEDIC"
/opt/elasticsearch/bin/plugin --install karmi/elasticsearch-paramedic
fi

if [ $i == "aws_cloud" ]
then
echo "INSTALLING AWS CLOUD"
/opt/elasticsearch/bin/plugin --install elasticsearch/elasticsearch-cloud-aws/1.15.0
fi

if [ $i == "knapsakc" ]
then
echo "knapsack"
/opt/elasticsearch/bin/plugin --url http://bit.ly/17GFBnY --install knapsack
fi

done

/opt/elasticsearch/bin/elasticsearch -f
6 changes: 4 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# ElasticSearch

ElasticSearch 0.90.1
ElasticSearch 0.90.5

Uses `elasticsearch` as the entrypoint with default options of `-f`

See the list of plugins you can install in run.sh

* `docker build -t elasticsearch .`
* `docker run elasticsearch`
* `docker run -e PLUGINS=head,paramedic elasticsearch`

Ports

Expand Down