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

Docker hub endpoint #14

Open
grafuls opened this issue Feb 14, 2019 · 4 comments
Open

Docker hub endpoint #14

grafuls opened this issue Feb 14, 2019 · 4 comments

Comments

@grafuls
Copy link

grafuls commented Feb 14, 2019

I am not able to make use of this functionality given that my latest repo is not under the v2 endpoint like here:

API = "https://hub.docker.com/v2/repositories/{organization}/{repository}/buildhistory/?page_size=100"
My repo buildhistory lives here instead:
https://hub.docker.com/r/grafuls/firefox-java/buildhistory/
Would nice to see some logic there to find the right endpoint.

@niccokunzmann
Copy link
Owner

niccokunzmann commented Feb 15, 2019 via email

@ukos-git
Copy link

also experiencing issues with new repositories:

While old repositories work, newly created repositories give an error message:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/usr/local/lib/python3.5/site-packages/bottle.py", line 1732, in wrapper
    rv = callback(*a, **ka)
  File "dockerhub_status_image_api.py", line 105, in get_svg
    status = get_status(organization, repository, tag)
  File "dockerhub_status_image_api.py", line 80, in get_status
    url = data["next"] # TODO: error handling
KeyError: 'next'

@niccokunzmann
Copy link
Owner

niccokunzmann commented Mar 24, 2019 via email

@sneumann
Copy link

sneumann commented Apr 3, 2019

Hi, for the shield.io stuff the solution is in this comment:
badges/shields#1400 (comment)
Yours, Steffen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants