Sign inSign up

liftm/cratesiocache

By liftm

•Updated over 6 years ago

Containers for a cargo caching proxy. Only makes sense with the relevant docker-compose

Image
0

274

liftm/cratesiocache repository overview

⁠Deprecated

ChrisMacNaughton/cargo-cacher⁠ has picked up activity again and released a few fixes, this is unnecessary now.

⁠crates.io caching proxy

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.

⁠Usage

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.

⁠Configuration

is done via environment variables:

  • CRATE_PROXY_PORT: Local listening port of the crates.io proxy
  • CACHE_EXT_URL: Externally reachable http(s) URL that ends up making requests to CRATE_PROXY_PORT
  • DEFAULT_GIT_PORT: Listening port for the github repository proxy.

Tag summary

Content type

Image

Digest

Size

87.2 MB

Last updated

over 6 years ago

docker pull liftm/cratesiocache:indexupdater