Containers for a cargo caching proxy. Only makes sense with the relevant docker-compose
274
ChrisMacNaughton/cargo-cacher has picked up activity again and released a few fixes, this is unnecessary now.
A caching proxy for both https://github.com/rust-lang/crates.io-index and https://crates.io/api/v1/crates. Based on puppetlabs/crates-caching-proxy.
Use at own risk, send PRs.
docker-compose rm -vfs && docker-compose up --build # Sure, -d it, miss the error message. ;)
Then, place
[source]
[source.localcrates]
registry = "git://localhost/crates.io-index.git"
# Does not need to be on localhost
[source.crates-io]
at ~/.cargo/config.
Proceed as usual.
is done via environment variables:
CRATE_PROXY_PORT: Local listening port of the crates.io proxyCACHE_EXT_URL: Externally reachable http(s) URL that ends up making requests to CRATE_PROXY_PORTDEFAULT_GIT_PORT: Listening port for the github repository proxy.Content type
Image
Digest
Size
87.2 MB
Last updated
over 6 years ago
docker pull liftm/cratesiocache:indexupdater