Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedia/repocache
Proxy Cache remote pypi/maven/npm/rustup/yum repository
https://github.com/pedia/repocache
maven npm pip proxy rustup-mirror yum
Last synced: 22 days ago
JSON representation
Proxy Cache remote pypi/maven/npm/rustup/yum repository
- Host: GitHub
- URL: https://github.com/pedia/repocache
- Owner: pedia
- License: mit
- Created: 2021-02-06T07:51:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-20T02:57:23.000Z (over 3 years ago)
- Last Synced: 2024-10-01T16:09:42.195Z (about 1 month ago)
- Topics: maven, npm, pip, proxy, rustup-mirror, yum
- Language: Python
- Homepage:
- Size: 275 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# repocache
Universal caching and proxying repository server for pypi/maven/npm/yum/rustup, speedup local using.Specially used in slow internet connection or intranet.
Python 3.5, 3.6, 3.7, 3.8 ![main workflow](https://github.com/pedia/repocache/actions/workflows/main.yml/badge.svg)
## How to startup?
```bash
pip install repocachepython -m repocache.main -f default.cfg
# listen at 0.0.0.0:5000
```## How to use repocache as YUM repository?
```bash
cd /etc/yum.repos.d# base
curl -O http://192.168.1.2:5000/centos/huawei/Centos-7.repo
# sclo
curl -O http://192.168.1.2:5000/centos/sclo/Centos-7.repoyum makecache
```## How to use repocache as NPM repository?
```bash
npm config set registry https://127.0.0.1:5000/npm/default/
npm config set prefix=$HOME/.node_modules_global
npm --verbose install [email protected] -g
```NPM Search is support.
## How to use repocache as MVN repository?
Change $HOME/.m2/settings.xml as:
```xml
repocache
repocache
http://127.0.0.1:5000/mvn/default/
jitpack.io
http://127.0.0.1:5000/mvn/jitpack/
repocache
repocache
http://127.0.0.1:5000/mvn/default/
central
```
```shell
cd /path/to/java-project
mvn install
```## How to use repocache as PIP repository?
Simply install in shell:
```bash
pip install -i http://127.0.0.1:5000/pypi/simple --trusted-host=127.0.0.1:5000 click==7.1.2
```Or change $HOME/.pip/pip.conf as:
```
[global]
trusted-host=127.0.0.1:5000
index-url=http://127.0.0.1:5000/pypi/simple
```## How to use repocache as Rustup repository?
```bash
export RUSTUP_DIST_SERVER=http://127.0.0.1:5000/rust/defaultcurl http://127.0.0.1:5000/rust/rustup.sh | sh
```## Settting file
See [default.cfg](default.cfg)## Open source
This repository was copy from pypicache early, but fully rewrite later.
PR wellcome.# TODO:
Downloaded: http://conjars.org/repo/org/pentaho/pentaho-aggdesigner/5.1.5-jhyde/pentaho-aggdesigner-5.1.5-jhyde.pom (8.6 kB at 16 kB/s)
Downloaded: http://conjars.org/repo/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar