Elasticsearch docker image for x64, including ES1.7.1 and JDK8u60
666
Elasticsearch docker image for x64, including ES1.7.1 and JDK8u60
FROM benoitbrayer/baseimage
MAINTAINER Benoit Brayer <[email protected]>
RUN apt-get update
RUN apt-get install -y wget
## Retreiving ES and JVM
# Oracle jdk is licensed under "Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX"
# Execution of this command require to accept the license above:
# Please read: www.oracle.com/technetwork/java/javase/terms/license/index.html
RUN wget -P /tmp \
--no-check-certificate \
--no-cookies \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.tar.gz
# Elasticsearch is licensed under "Apache 2 license"
RUN wget -P /tmp \
https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.1.tar.gz
ADD checksum/elasticsearch-1.7.1.tar.gz.sha1 /tmp/
ADD checksum/jdk-8u60-linux-x64.tar.gz.md5 /tmp/
## Checksum & Extract
RUN cd /tmp && sha1sum -c elasticsearch-1.7.1.tar.gz.sha1
RUN cd /tmp && md5sum -c jdk-8u60-linux-x64.tar.gz.md5
RUN tar -C /opt -xzvf /tmp/elasticsearch-1.7.1.tar.gz
RUN tar -C /opt -xzvf /tmp/jdk-8u60-linux-x64.tar.gz
## Cleanup
RUN rm /tmp/*
# Replace ES execution scripts by ES execution scipts with JAVA_HOME modified
# and custom parameters
# new value: JAVA_HOME=/opt/jdk1.8.0_60/jre/
RUN rm /opt/elasticsearch-1.7.1/bin/elasticsearch
ADD conf/elasticsearch /opt/elasticsearch-1.7.1/bin/elasticsearch
RUN rm /opt/elasticsearch-1.7.1/bin/elasticsearch.in.sh
ADD conf/elasticsearch.in.sh /opt/elasticsearch-1.7.1/bin/elasticsearch.in.sh
## Volumes & Expose
VOLUME ["/opt/elasticsearch-1.7.1/config", "/opt/elasticsearch-1.7.1/data", "/opt/elasticsearch-1.7.1/logs", "/opt/elasticsearch-1.7.1/plugins"]
EXPOSE 9200 9300
## Start Elasticsearch
CMD /opt/elasticsearch-1.7.1/bin/elasticsearch -p /var/run/elasticsearch.pid start
#!/bin/bash
docker run --name elasticsearc-test -p 9200:9200 -p 9300:9300 \
-v /mi/docker/elasticsearch/master-and-data/conf/:/opt/elasticsearch-1.7.1/config \
-v /mi/docker/elasticsearch/master-and-data/data/:/mi/data \
-v /mi/docker/elasticsearch/master-and-data/log/:/mi/log \
-v /mi/docker/elasticsearch/master-and-data/plugins/:/mi/plugins \
benoitbrayer/elasticsearch
Content type
Image
Digest
sha256:61d82b7e9…
Size
500.1 MB
Last updated
about 11 years ago
docker pull benoitbrayer/elasticsearch