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

Missing docs - how to rehost the crates.io index #1

Open
chesedo opened this issue Dec 9, 2022 · 1 comment
Open

Missing docs - how to rehost the crates.io index #1

chesedo opened this issue Dec 9, 2022 · 1 comment

Comments

@chesedo
Copy link

chesedo commented Dec 9, 2022

The readme states the following

To use the proxy server, clone and rehost the crates.io index repository

I understand how to clone the repo, but I'm not quite sure how the rehosting part work 😅 Are there any pointers for this?

@ravenexp
Copy link
Owner

ravenexp commented Dec 9, 2022

You need to host the local copy of the index git repository somewhere, so that your CI jobs have direct access to it.
I simply use a git repo on the same GitLab instance the Rust projects run their CI on. Or it can be a self-hosted git repo, doesn't matter.

My motivation for creating this tool was to make our self-hosted CI environment work even if the external internet connection fails. The distributed nature of git makes it a non-issue for the crates index, but the packages themselves are fetched via plain HTTP, hence the need for a caching proxy.

JFrom Artifactory has similar functionality: https://www.jfrog.com/confluence/display/JFROG/Cargo+Package+Registry

Unfortunately, we use Sonatype Nexus, which doesn't support Cargo yet...

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

2 participants