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

image_prefix broken for DockerHub. #1281

Closed
MridulS opened this issue Mar 25, 2021 · 4 comments
Closed

image_prefix broken for DockerHub. #1281

MridulS opened this issue Mar 25, 2021 · 4 comments
Labels

Comments

@MridulS
Copy link
Contributor

MridulS commented Mar 25, 2021

Bug description

image_prefix for images hosted on DockerHub expects to be of the format image_prefix: <docker-id OR organization-name>/<prefix>- but the recent changes in #1269 breaks that. The image_prefix in case of docker hub only has one '/' so it breaks the image name.

In [38]: image_name = 'orgname/repo:HEAD'

# this is new behaviour 
In [39]: image_name.split('/',1)[-1].split(':', 1)
Out[39]: ['repo', 'HEAD']

# this is old behaviour 
In [40]: '/'.join(image_name.split('/')[-2:]).split(':', 1)
Out[40]: ['orgname/repo', 'HEAD'] 

Expected behaviour

DockerHub should work as expected.

Actual behaviour

Getting Failed to get image manifest for ...... errors.

How to reproduce

Go to gesis.mybinder.org and try running a repo twice. (We use DockerHub).

Your personal set up

  • OS:
  • Version(s):
  • Full environment
# paste output of `pip freeze` or `conda list` here
  • Configuration
# jupyterhub_config.py
  • Logs
# paste relevant logs here, if any
@MridulS MridulS added the bug label Mar 25, 2021
@MridulS
Copy link
Contributor Author

MridulS commented Mar 25, 2021

similar behaviour at turing.mybinder.org (the server doesn't launch but the build pods seems to running and pushing to docker hub without any issues, just tried with https://hub.docker.com/r/turingmybinder/binder-prod-networkx-2dnotebooks-0c9816/)

@nichoio
Copy link

nichoio commented Mar 31, 2021

The new PR #1283 should not let this happen again. See this snippet from the according unit test. Full image name -> image name, tag:
("jupyterhub/k8s-binderhub:0.2.0-a2079a5", "jupyterhub/k8s-binderhub", "0.2.0-a2079a5")

@manics
Copy link
Member

manics commented Jul 10, 2021

#1269 was reverted in #1282
Is this still broken?

@MridulS MridulS closed this as completed Jul 10, 2021
@MridulS
Copy link
Contributor Author

MridulS commented Jul 10, 2021

Yeah it's fixed now. Thanks!

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

No branches or pull requests

3 participants