-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Download jdk to a temp file to make sure retries work #48249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Note that retries will not work if the conncetion is refused. The version of curl in the base image does not support `--retry-connrefused`
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment, otherwise LGTM.
@@ -16,7 +16,9 @@ FROM centos:7 AS builder | |||
ENV PATH /usr/share/elasticsearch/bin:$PATH | |||
ENV JAVA_HOME /opt/jdk-${jdkVersion} | |||
|
|||
RUN curl -L --retry 8 -s ${jdkUrl} | tar -C /opt -zxf - | |||
RUN curl -L --retry 8 -s ${jdkUrl} --continue-at - --output /tmp/jdk.tar.gz && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be worthwhile to use -S
here so we can see the errors. Is there significant motivation for suppressing all output here? AFAIK this doesn't affect the image in any way.
@elasticmachine run elasticsearch-ci/2 |
@elasticmachine update branch |
@atorok added |
Note that retries will not work if the connection is refused.
The version of curl in the base image does not support
--retry-connrefused
Closes #48129