File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
distribution/docker/src/docker Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ FROM centos:7 AS builder
16
16
ENV PATH /usr/share/elasticsearch/bin:$PATH
17
17
ENV JAVA_HOME /opt/jdk-${jdkVersion}
18
18
19
- RUN curl -L --retry 8 - s -S ${jdkUrl} --continue-at - --output /tmp/jdk.tar.gz && \
20
- tar -C /opt -zxf /tmp/jdk.tar.gz && \
21
- rm -Rf /tmp/jdk.tar.gz
22
-
19
+ RUN for iter in {1..10}; do curl -L -s -S ${jdkUrl} | 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
+
23
23
# Replace OpenJDK's built-in CA certificate keystore with the one from the OS
24
24
# vendor. The latter is superior in several ways.
25
25
# REF: https://github.com/elastic/elasticsearch-docker/issues/171
@@ -56,7 +56,7 @@ COPY --from=builder /opt/jdk-${jdkVersion} /opt/jdk-${jdkVersion}
56
56
57
57
RUN for iter in {1..10}; do yum update --setopt=tsflags=nodocs -y && \
58
58
yum install -y --setopt=tsflags=nodocs nc unzip wget which && \
59
- 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; \
60
60
(exit $exit_code)
61
61
62
62
RUN groupadd -g 1000 elasticsearch && \
You can’t perform that action at this time.
0 commit comments