forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubernetes#4762 from satnam6502/es-image
Make a Kubernetes specific version of an Elasticsearch Docker container
- Loading branch information
Showing
4 changed files
with
44 additions
and
1 deletion.
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
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,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 |
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,9 @@ | ||
.PHONY: build push | ||
|
||
TAG = 1.0 | ||
|
||
build: | ||
docker build -t kubernetes/elasticsearch:$(TAG) . | ||
|
||
push: | ||
docker push kubernetes/elasticsearch:$(TAG) |
7 changes: 7 additions & 0 deletions
7
cluster/addons/fluentd-elasticsearch/es-image/elasticsearch.yml
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,7 @@ | ||
path: | ||
data: /data/data | ||
logs: /data/log | ||
plugins: /data/plugins | ||
work: /data/work | ||
cluster: | ||
name: kubernetes_logging |