Skip to content

Commit 55ef689

Browse files
committed
Merge pull request dockerfile#3 from shreyu86/feature-elasticsearch1.0
Removed log warnings for log4j by switching to alternate method of installation for ES
2 parents bdfbc44 + 0cc7483 commit 55ef689

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

Dockerfile

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,22 @@
33
#
44
# https://github.com/dockerfile/elasticsearch
55
#
6-
6+
77
# Pull base image.
88
FROM dockerfile/java
9-
9+
1010
# Install ElasticSearch.
11-
RUN wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -
12-
RUN echo "deb http://packages.elasticsearch.org/elasticsearch/1.0/debian stable main" >> /etc/apt/sources.list
13-
RUN apt-get update
14-
RUN apt-get install -y elasticsearch
15-
16-
# Prevent elasticsearch calling `ulimit`.
17-
RUN sed -i 's/MAX_OPEN_FILES=/# MAX_OPEN_FILES=/g' /etc/init.d/elasticsearch
18-
11+
12+
RUN wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.tar.gz
13+
RUN tar xzf elasticsearch-1.0.1.tar.gz
14+
RUN mv elasticsearch-1.0.1 /opt/elasticsearch
15+
RUN rm elasticsearch-1.0.1.tar.gz
16+
1917
# Expose ports.
2018
# - 9200: HTTP
2119
# - 9300: transport
2220
EXPOSE 9200
2321
EXPOSE 9300
24-
22+
2523
# Define an entry point.
26-
ENTRYPOINT ["/usr/share/elasticsearch/bin/elasticsearch"]
24+
ENTRYPOINT ["/opt/elasticsearch/bin/elasticsearch"]

0 commit comments

Comments
 (0)