Currently we verify the existence of a docker image by sending lookup requests to one of the following endpoints:
https://hub.docker.com/v2/repositories/library/{:repos}/tags.
https://hub.docker.com/v2/repositories/{:repos}.
https://hub.docker.com/v2/namespaces/{:namespace}/repositories/{:repository}/tags
In case if credentials are provided, an authentication request to docker hub should be sent. The dockehub token, if any returned, should be attached to the lookup requests.
The goal of the ticket is to send all three lookup requests in parallel. First good response should cease the waiting on other requests. So, if first request has a negative result, second a positive result and third is still pending, then the result of the second request is considered the result of the group of lookup requests. The result of third is not waited for. The connection of third request is dropped.
Currently we verify the existence of a docker image by sending lookup requests to one of the following endpoints:
https://hub.docker.com/v2/repositories/library/{:repos}/tags.https://hub.docker.com/v2/repositories/{:repos}.https://hub.docker.com/v2/namespaces/{:namespace}/repositories/{:repository}/tagsIn case if credentials are provided, an authentication request to docker hub should be sent. The dockehub token, if any returned, should be attached to the lookup requests.
The goal of the ticket is to send all three lookup requests in parallel. First good response should cease the waiting on other requests. So, if first request has a negative result, second a positive result and third is still pending, then the result of the second request is considered the result of the group of lookup requests. The result of third is not waited for. The connection of third request is dropped.