Merge pull request #4762 from satnam6502/es-image

Make a Kubernetes specific version of an Elasticsearch Docker container
This commit is contained in:
Zach Loafman 2015-02-26 11:24:09 -08:00
commit e10f54eebf
4 changed files with 44 additions and 1 deletions

View File

@ -12,7 +12,7 @@ desiredState:
id: es-log-ingestion
containers:
- name: elasticsearch-logging
image: dockerfile/elasticsearch
image: kubernetes/elasticsearch:1.0
ports:
- name: es-port
containerPort: 9200

View File

@ -0,0 +1,27 @@
# A Dockerfile for creating an Elasticsearch instance that is designed
# to work with Kubernetes logging. Inspired by the Dockerfile
# dockerfile/elasticsearch
FROM dockerfile/java:openjdk-7-jre
MAINTAINER Satnam Singh "satnam@google.com"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y curl && \
apt-get clean
RUN cd / && \
curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.4.tar.gz && \
tar xf elasticsearch-1.4.4.tar.gz && \
mv elasticsearch-1.4.4 /elasticsearch && \
rm -rf elasticsearch-1.4.4.tar.gz
ADD elasticsearch.yml /elasticsearch/config/elasticsearch.yml
VOLUME ["/data"]
WORKDIR /data
CMD ["/elasticsearch/bin/elasticsearch"]
EXPOSE 9200
EXPOSE 9300

View File

@ -0,0 +1,9 @@
.PHONY: build push
TAG = 1.0
build:
docker build -t kubernetes/elasticsearch:$(TAG) .
push:
docker push kubernetes/elasticsearch:$(TAG)

View File

@ -0,0 +1,7 @@
path:
data: /data/data
logs: /data/log
plugins: /data/plugins
work: /data/work
cluster:
name: kubernetes_logging