Retry JDK download when building Docker image
Retry JDK download when building Docker image

With this commit we instruct curl to retry with a backoff when
downloading the JDK for the Elasticsearch Docker image. This avoids
build failures on transient network issues. Note that this option
requires curl 7.12.3 or better.

Relates #37103
Relates #37113
nknize/elasticsearch,gingerwizard/elasticsearch,HonzaKral/elasticsearch,uschindler/elasticsearch,uschindler/elasticsearch,gingerwizard/elasticsearch,gingerwizard/elasticsearch,coding0011/elasticsearch,uschindler/elasticsearch,nknize/elasticsearch,coding0011/elasticsearch,HonzaKral/elasticsearch,GlenRSmith/elasticsearch,GlenRSmith/elasticsearch,scorpionvicky/elasticsearch,scorpionvicky/elasticsearch,gingerwizard/elasticsearch,gingerwizard/elasticsearch,nknize/elasticsearch,coding0011/elasticsearch,robin13/elasticsearch,nknize/elasticsearch,robin13/elasticsearch,scorpionvicky/elasticsearch,uschindler/elasticsearch,HonzaKral/elasticsearch,scorpionvicky/elasticsearch,gingerwizard/elasticsearch,HonzaKral/elasticsearch,GlenRSmith/elasticsearch,robin13/elasticsearch,robin13/elasticsearch,nknize/elasticsearch,scorpionvicky/elasticsearch,coding0011/elasticsearch,uschindler/elasticsearch,robin13/elasticsearch,GlenRSmith/elasticsearch,GlenRSmith/elasticsearch,gingerwizard/elasticsearch,coding0011/elasticsearch