Skip to content
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

engine Docker-Hub does not work / API v1 no longer supported #4126

Closed
return42 opened this issue Dec 21, 2024 · 1 comment · Fixed by #4140
Closed

engine Docker-Hub does not work / API v1 no longer supported #4126

return42 opened this issue Dec 21, 2024 · 1 comment · Fixed by #4140
Labels
area: engine bug Something isn't working

Comments

@return42
Copy link
Member

Docker-Hub API v1 ..

search_url = base_url "api/content/v1/products/search?{query}&type=image&page_size=25"

does no longer work and the linked API docs no longer available

"official_api_documentation": 'https://docs.docker.com/registry/spec/api/',

Seems we need a response function like

base_url = "https://hub.docker.com/"
search_api = base_url   "api/search/v3/catalog/search?"
page_size = 10


def request(query, params):

    args = urlencode(
        {
            "query": query,
            "from": page_size * (params['pageno'] -1),
            "size": page_size,
        }
    )
    params['url'] = search_api   args
    params["headers"]["Search-Version"] = "v3"

    return params

.. the url is https://hub.docker.com/api/search/v3/catalog/search?query=searx&from=0&size=10

but this needs a new implementation of the response function and I don't know if there is a better solution ..

def response(resp):
'''post-response callback

@return42 return42 added bug Something isn't working area: engine labels Dec 21, 2024
@Bnyro
Copy link
Member

Bnyro commented Dec 22, 2024

I'm interested into look into this engine, but it'd probably be after the Christmas days then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: engine bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants