Closed
Description
This was noticed in https://gradle-enterprise.elastic.co/s/trrgg7tocnkw2
with the excerpt showing:
Step 8/48 : RUN wget "https://daniel.haxx.se/mykey.asc" -O "curl-gpg.pub" && wget "${TARBALL_URL}.asc" -O "${TARBALL_PATH}.asc" && wget "${TARBALL_URL}" -O "${TARBALL_PATH}"
---> Running in 517685c84ec3
Connecting to daniel.haxx.se (159.253.31.95:443)
ssl_client: daniel.haxx.se: certificate verification failed: self signed certificate
wget: error getting response: Connection reset by peer
The command '/bin/sh -c wget "https://daniel.haxx.se/mykey.asc" -O "curl-gpg.pub" && wget "${TARBALL_URL}.asc" -O "${TARBALL_PATH}.asc" && wget "${TARBALL_URL}" -O "${TARBALL_PATH}"' returned a non-zero code: 1
but looking at the [Dockerfile[(https://github.com/elastic/elasticsearch/blob/f491422e1edf79ea08d5657b5035f4a5ee444442/distribution/docker/src/docker/Dockerfile#L65-L67) it appears we aren't retrying while attempting to download with wget
.
We should ensure we are trying similarly to how we do things elsewhere e.g.
elasticsearch/distribution/docker/src/docker/Dockerfile
Lines 215 to 220 in f491422