14
14
FROM centos:7 AS builder
15
15
16
16
ENV PATH /usr/share/elasticsearch/bin:$PATH
17
- ENV JAVA_HOME /opt/jdk-13+33
18
-
19
- RUN curl -L --retry 8 -s https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk-13%2B33/OpenJDK13U-jdk_x64_linux_hotspot_13_33.tar.gz | tar -C /opt -zxf -
17
+ ENV JAVA_HOME /opt/jdk-13.0.1+9
20
18
19
+ RUN for iter in {1..10}; do curl -L -s -S https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk-13.0.1%2B9/OpenJDK13U-jdk_x64_linux_hotspot_13.0.1_9.tar.gz | tar -C /opt -zx && \
20
+ exit_code=0 && break || exit_code=\$ ? && echo "download error: retry $iter in 10s" && sleep 10; done; \
21
+ (exit $exit_code)
22
+
21
23
# Replace OpenJDK's built-in CA certificate keystore with the one from the OS
22
24
# vendor. The latter is superior in several ways.
23
25
# REF: https://github.com/elastic/elasticsearch-docker/issues/171
24
- RUN ln -sf /etc/pki/ca-trust/extracted/java/cacerts /opt/jdk-13+33 /lib/security/cacerts
26
+ RUN ln -sf /etc/pki/ca-trust/extracted/java/cacerts /opt/jdk-13.0.1+9 /lib/security/cacerts
25
27
26
28
RUN yum install -y unzip which
27
29
@@ -30,9 +32,9 @@ RUN groupadd -g 1000 elasticsearch && \
30
32
31
33
WORKDIR /usr/share/elasticsearch
32
34
33
- RUN cd /opt && curl --retry 8 -s -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.8.4 .tar.gz && cd -
35
+ RUN cd /opt && curl --retry 8 -s -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.8.5 .tar.gz && cd -
34
36
35
- RUN tar zxf /opt/elasticsearch-6.8.4 .tar.gz --strip-components=1
37
+ RUN tar zxf /opt/elasticsearch-6.8.5 .tar.gz --strip-components=1
36
38
RUN grep ES_DISTRIBUTION_TYPE=tar /usr/share/elasticsearch/bin/elasticsearch-env \
37
39
&& sed -ie 's/ES_DISTRIBUTION_TYPE=tar/ES_DISTRIBUTION_TYPE=docker/' /usr/share/elasticsearch/bin/elasticsearch-env
38
40
RUN mkdir -p config data logs
@@ -48,13 +50,13 @@ COPY config/elasticsearch.yml config/log4j2.properties config/
48
50
FROM centos:7
49
51
50
52
ENV ELASTIC_CONTAINER true
51
- ENV JAVA_HOME /opt/jdk-13+33
53
+ ENV JAVA_HOME /opt/jdk-13.0.1+9
52
54
53
- COPY --from=builder /opt/jdk-13+33 /opt/jdk-13+33
55
+ COPY --from=builder /opt/jdk-13.0.1+9 /opt/jdk-13.0.1+9
54
56
55
57
RUN for iter in {1..10}; do yum update --setopt=tsflags=nodocs -y && \
56
58
yum install -y --setopt=tsflags=nodocs nc unzip wget which && \
57
- yum clean all && exit_code=0 && break || exit_code=\$ ? && echo "yum error: retry \ $ iter in 10s" && sleep 10; done; \
59
+ yum clean all && exit_code=0 && break || exit_code=\$ ? && echo "yum error: retry $iter in 10s" && sleep 10; done; \
58
60
(exit $exit_code)
59
61
60
62
RUN groupadd -g 1000 elasticsearch && \
@@ -76,25 +78,25 @@ RUN chgrp 0 /usr/local/bin/docker-entrypoint.sh && \
76
78
77
79
EXPOSE 9200 9300
78
80
79
- LABEL org.label-schema.build-date="2019-10-16T06:19:49.319352Z " \
81
+ LABEL org.label-schema.build-date="2019-11-13T20:04:24.100411Z " \
80
82
org.label-schema.license="Elastic-License" \
81
83
org.label-schema.name="Elasticsearch" \
82
84
org.label-schema.schema-version="1.0" \
83
85
org.label-schema.url="https://www.elastic.co/products/elasticsearch" \
84
86
org.label-schema.usage="https://www.elastic.co/guide/en/elasticsearch/reference/index.html" \
85
- org.label-schema.vcs-ref="bca0c8d6a8e62c36e3f9e7673017393dcef557b6 " \
87
+ org.label-schema.vcs-ref="78990e93431aebcc3dcd7fa20fab4b5b29ab7988 " \
86
88
org.label-schema.vcs-url="https://github.com/elastic/elasticsearch" \
87
89
org.label-schema.vendor="Elastic" \
88
- org.label-schema.version="6.8.4 " \
89
- org.opencontainers.image.created="2019-10-16T06:19:49.319352Z " \
90
+ org.label-schema.version="6.8.5 " \
91
+ org.opencontainers.image.created="2019-11-13T20:04:24.100411Z " \
90
92
org.opencontainers.image.documentation="https://www.elastic.co/guide/en/elasticsearch/reference/index.html" \
91
93
org.opencontainers.image.licenses="Elastic-License" \
92
- org.opencontainers.image.revision="bca0c8d6a8e62c36e3f9e7673017393dcef557b6 " \
94
+ org.opencontainers.image.revision="78990e93431aebcc3dcd7fa20fab4b5b29ab7988 " \
93
95
org.opencontainers.image.source="https://github.com/elastic/elasticsearch" \
94
96
org.opencontainers.image.title="Elasticsearch" \
95
97
org.opencontainers.image.url="https://www.elastic.co/products/elasticsearch" \
96
98
org.opencontainers.image.vendor="Elastic" \
97
- org.opencontainers.image.version="6.8.4 "
99
+ org.opencontainers.image.version="6.8.5 "
98
100
99
101
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh" ]
100
102
# Dummy overridable parameter parsed by entrypoint
0 commit comments