-
Notifications
You must be signed in to change notification settings - Fork 80
add docker fallback support and default namespace #74
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
Conversation
Add fixes to work with docker as a proxy
add default namespace
Update http.ts
src/router.ts
Outdated
| } | ||
|
|
||
| const { name, reference } = req.params; | ||
| const { reference } = req.params; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can these library prefix logic be in the fallback client when a docker.io registry is being in use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
niot sure where you mean the logic should be put..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const name = req.params.name.includes("/") ? req.params.name : `library/${req.params.name}`;
This could probably get moved to http.ts? Seems very specific to how docker.io does things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
Thank you so much @cberescu, I appreciate this contribution a lot ❤️. |
|
fixed some failed tests. |
This will fix some issues with docker hub fallback support. Also adds a default for namespaces .
Should fix #70