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

Feature request: support other Docker Registries like quay or docker hub #339

Closed
fluoriteByte opened this issue Jul 31, 2024 · 3 comments · Fixed by #347
Closed

Feature request: support other Docker Registries like quay or docker hub #339

fluoriteByte opened this issue Jul 31, 2024 · 3 comments · Fixed by #347
Labels
enhancement New feature or request

Comments

@fluoriteByte
Copy link

fluoriteByte commented Jul 31, 2024

Github Container Registry is pretty unbearably slow, docker.io and quay.io are genuinely way faster, so i tried to make a mirror for vanilla, successfully (after 3 attempts) its at https://quay.io/repository/fluoritebyte/vanillaos-mirror-unofficial

the problem is that there is no sensible abroot config that i tried that worked for quay.io

the url that abroot forms to get the token seems to exclusively work with github, as it fails for docker hub.
and for the case of quay, it seems to accept 404 page as a valid response and continues with hasUpdate which then fails because quay (presumably) responds with an html/xml-like message, i do not know where to go from here

if anyone here that is knowledgeable about the insides of abroot and wants to help me, please do, im tired of waiting for updates to install at 100 kbit/s

@taukakao taukakao changed the title Call for help: trying to make abroot work with other Docker Registries feature request: support other Docker Registries like quay or docker hub Jul 31, 2024
@taukakao
Copy link
Member

(I changed the title, if this feature is implemented then someone can still comment here and close it)

@kbdharun kbdharun changed the title feature request: support other Docker Registries like quay or docker hub Feature request: support other Docker Registries like quay or docker hub Aug 1, 2024
@kbdharun kbdharun added the enhancement New feature or request label Aug 1, 2024
@rpickler
Copy link

I was really disappointed to find this limitation, as I run my own gitlab instance and would prefer my custom images to be hosted there. So, I did a little digging.

The issue we have both run into appears to stem from this line. On gitlab, the token comes from https://gitlab.private.domain/jwt/auth?scope=repository:...:pull&service=container_registry whereas the image comes from https://registry.private.domain. In GitHub, they appear to make these endpoints available all on ghcr.io. For gitlab, they're on separate urls, and it appears the same is true of docker.io as well.

I'm curious how the myriad of OCI tools handle this as pulling a container is universally transparent between them.

@axtloss
Copy link
Member

axtloss commented Aug 10, 2024

Each registry returns the authentication URL in the response headers, which is what abroot should be using to get the proper url
I've implemented this before in a custom client here https://github.com/axtloss/JshipIT/blob/main/src/main/java/io/github/jshipit/DockerAPIHelper.java#L46
I'll make a pr later to fix this

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

Successfully merging a pull request may close this issue.

5 participants