Skip to content

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

Merged
merged 3 commits into from
Oct 23, 2019

Conversation

alpar-t
Copy link
Contributor

@alpar-t alpar-t commented Oct 18, 2019

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

Note that retries will not work if the conncetion is refused.
The version of curl in the base image does not support `--retry-connrefused`
@alpar-t alpar-t added the :Delivery/Build Build or test infrastructure label Oct 18, 2019
@alpar-t alpar-t requested a review from mark-vieira October 18, 2019 14:36
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

Copy link
Contributor

@mark-vieira mark-vieira left a 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 && \
Copy link
Contributor

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.

@alpar-t
Copy link
Contributor Author

alpar-t commented Oct 21, 2019

@elasticmachine run elasticsearch-ci/2

@alpar-t
Copy link
Contributor Author

alpar-t commented Oct 22, 2019

@elasticmachine update branch

@alpar-t alpar-t merged commit a2a2667 into elastic:6.8 Oct 23, 2019
@alpar-t alpar-t deleted the docker-retries branch October 23, 2019 08:22
@pcsanwald
Copy link
Contributor

@atorok added 6.8.5 as this looks not to have made 6.8.4.

@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v6.8.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants