Skip to content

parallel dockerhub requests #54

@smart--petea

Description

@smart--petea

Currently we verify the existence of a docker image by sending lookup requests to one of the following endpoints:

  1. https://hub.docker.com/v2/repositories/library/{:repos}/tags.
  2. https://hub.docker.com/v2/repositories/{:repos}.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions