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

marp-cli docker pull rate limited #577

Closed
ankudinov opened this issue May 22, 2024 · 3 comments · Fixed by #608
Closed

marp-cli docker pull rate limited #577

ankudinov opened this issue May 22, 2024 · 3 comments · Fixed by #608

Comments

@ankudinov
Copy link

I'm facing some random rate limit messages when pulling marp-cli image from internal Gitlab CI (have not seen that when pulling from public Github repo). I'm curious if marp-cli is using free plan on Docker hub? I have definitely seen that causing timeouts for my own container images in the past. Docker Hub rate limiting is explained here. If that's the case, are there any plans to more images to GHRC? If not, would you accept a PR for that?

@yhatt
Copy link
Member

yhatt commented May 22, 2024

The rate limit is associated to the account of user who tried to pull. The pricing plan of our Docker ID (marpteam) should not matter.

To avoid pull rate limit error, I recommend to add the login step by docker login before pull the Docker image within your CI workflow, or try to use Dependency Proxy if you are using GitLab.

Even so, the Docker image is providing just for the convenience to try Marp CLI, and I not recommend to use in the workflow. Installing Marp CLI in CI workflow is more reliable way to use It.

https://github.com/orgs/marp-team/discussions/375#discussioncomment-4191221

@ankudinov
Copy link
Author

There is no rate limit on the non-free org. Anyway that explains the issue.
Containers much more convenient to build certain pipelines. For example, the link you provided is covering Github Actions, but not Gitlab CI. With the container in use the logic is very portable.
I'm happy to submit a GH workflow for review to build marp-cli on GHRC (if you are open for that). Github has no rate limit for free or paid accounts. Docker Hub is far from being the best for open source nowadays unfortunately.

@yhatt
Copy link
Member

yhatt commented May 22, 2024

Because you asked "I'm curious if marp-cli is using free plan on Docker hub?", I have thought you are misunderstanding as that the pull rate limit for you will become no limit if https://hub.docker.com/u/marpteam became a non-free org.

the link you provided is covering Github Actions, but not Gitlab CI.

This answer is targeted to GitHub Actions, but the command to run on CI is exactly same: npx @marp-team/marp-cli

Let us continue about publishing the image to the GitHub container registry on another issue #578.

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