Skip to content

Commit 621727b

Browse files
committed
elasticsearch 6.1
1 parent 36d9143 commit 621727b

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

elasticsearch/6.1/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM docker.elastic.co/elasticsearch/elasticsearch:6.1.1
2+
3+
USER root
4+
5+
ENV JQ_VERSION 1.5
6+
ENV JQ_SHA256 c6b3a7d7d3e7b70c6f51b706a3b90bd01833846c54d32ca32f0027f00226ff6d
7+
RUN cd /tmp \
8+
&& curl -o /usr/bin/jq -SL "https://github.com/stedolan/jq/releases/download/jq-$JQ_VERSION/jq-linux64" \
9+
&& echo "$JQ_SHA256 /usr/bin/jq" | sha256sum -c - \
10+
&& chmod +x /usr/bin/jq
11+
12+
# https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_c_customized_image
13+
ADD elasticsearch.yml /usr/share/elasticsearch/config/
14+
RUN chown elasticsearch:elasticsearch config/elasticsearch.yml
15+
16+
USER elasticsearch
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
network.host: 0.0.0.0
2+
3+
processors: ${PROCESSORS:}
4+
5+
# minimum_master_nodes need to be explicitly set when bound on a public IP
6+
# set to 1 to allow single node clusters
7+
# Details: https://github.com/elastic/elasticsearch/pull/17288
8+
discovery.zen.minimum_master_nodes: 1
9+
10+
# see https://www.elastic.co/guide/en/x-pack/current/xpack-settings.html
11+
xpack.ml.enabled: ${XPACK_ML_ENABLED:false}
12+
xpack.monitoring.enabled: ${XPACK_MONITORING_ENABLED:false}
13+
xpack.security.enabled: ${XPACK_SECURITY_ENABLED:false}
14+
xpack.watcher.enabled: ${XPACK_WATCHER_ENABLED:false}
15+

elasticsearch/6.1/tls/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM docker.elastic.co/elasticsearch/elasticsearch:6.1.1
2+
3+
USER root
4+
5+
ENV JQ_VERSION 1.5
6+
ENV JQ_SHA256 c6b3a7d7d3e7b70c6f51b706a3b90bd01833846c54d32ca32f0027f00226ff6d
7+
RUN cd /tmp \
8+
&& curl -o /usr/bin/jq -SL "https://github.com/stedolan/jq/releases/download/jq-$JQ_VERSION/jq-linux64" \
9+
&& echo "$JQ_SHA256 /usr/bin/jq" | sha256sum -c - \
10+
&& chmod +x /usr/bin/jq
11+
12+
# https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_c_customized_image
13+
ADD elasticsearch.yml /usr/share/elasticsearch/config/
14+
RUN chown elasticsearch:elasticsearch config/elasticsearch.yml
15+
16+
USER elasticsearch
17+
18+
RUN bin/elasticsearch-plugin install -b com.floragunn:search-guard-ssl:6.1.1-25.0
19+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
network.host: 0.0.0.0
2+
3+
processors: ${PROCESSORS:}
4+
5+
# minimum_master_nodes need to be explicitly set when bound on a public IP
6+
# set to 1 to allow single node clusters
7+
# Details: https://github.com/elastic/elasticsearch/pull/17288
8+
discovery.zen.minimum_master_nodes: 1
9+
10+
# see https://www.elastic.co/guide/en/x-pack/current/xpack-settings.html
11+
xpack.ml.enabled: ${XPACK_ML_ENABLED:false}
12+
xpack.monitoring.enabled: ${XPACK_MONITORING_ENABLED:false}
13+
xpack.security.enabled: ${XPACK_SECURITY_ENABLED:false}
14+
xpack.watcher.enabled: ${XPACK_WATCHER_ENABLED:false}
15+
16+
# see https://github.com/floragunncom/search-guard-ssl/blob/master/src/main/java/com/floragunn/searchguard/ssl/util/SSLConfigConstants.java#L28
17+
searchguard.ssl.transport.enabled: ${SEARCHGUARD_SSL_TRANSPORT_ENABLED:false}
18+
searchguard.ssl.http.enabled: ${SEARCHGUARD_SSL_HTTP_ENABLED:false}

0 commit comments

Comments
 (0)