Tony Mack | b995914 | 2016-03-12 14:13:24 +0000 | [diff] [blame^] | 1 | FROM ubuntu:14.04.2 |
| 2 | |
| 3 | RUN echo "deb http://packages.elastic.co/elasticsearch/1.7/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.7.list |
| 4 | |
| 5 | RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --force-yes\ |
| 6 | openjdk-7-jre-headless \ |
| 7 | wget \ |
| 8 | elasticsearch |
| 9 | |
| 10 | VOLUME ["/data"] |
| 11 | |
| 12 | ADD conf/elasticsearch.yml /etc/elasticsearch/elasticsearch.yml |
| 13 | ADD conf/elasticsearch.yml /usr/share/elasticsearch/config |
| 14 | |
| 15 | WORKDIR /data |
| 16 | |
| 17 | # Expose ports. |
| 18 | # - 9200: HTTP |
| 19 | # - 9300: transport |
| 20 | EXPOSE 9200 |
| 21 | EXPOSE 9300 |
| 22 | |
| 23 | CMD ["/usr/share/elasticsearch/bin/elasticsearch"] |