-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (15 loc) · 898 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM elasticsearch:5.6.4
#USER root
#RUN rm -f /var/run/elasticsearch/elasticsearch.pid
RUN ["/usr/share/elasticsearch/bin/elasticsearch-plugin", "install", "https://github.com/couchbaselabs/elasticsearch-transport-couchbase/releases/download/3.0.0-cypress/elasticsearch-transport-couchbase-3.0.0-cypress-es5.6.4.zip"]
ADD elasticsearch.yml /etc/elasticsearch/
ADD elasticsearch.yml /usr/share/elasticsearch/config/
#ADD couchbase_template.json /usr/share/elasticsearch/plugins/transport-couchbase/
#ADD java.policy /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/java.policy
#RUN chown elasticsearch:elasticsearch /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/java.policy
RUN chown elasticsearch.elasticsearch /usr/share/elasticsearch/data
ADD ./init.sh /usr/local/bin/init.sh
RUN chmod +x /usr/local/bin/init.sh
USER elasticsearch
EXPOSE 9200 9300 9091
CMD [ "/usr/local/bin/init.sh" ]