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