Merge "Add blurb on configuration and run_mirror in README"
This commit is contained in:
commit
a4ade4b168
29
README.rst
29
README.rst
@ -10,3 +10,32 @@ things you expect to download from PyPI.
|
||||
|
||||
pypi-mirror will build a local static mirror for you based on requirements
|
||||
files in git repos.
|
||||
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
A YAML configuration is needed to create a mirror. Below is an example
|
||||
configuration. ::
|
||||
|
||||
cache-root: /tmp/cache
|
||||
|
||||
mirrors:
|
||||
- name: openstack
|
||||
projects:
|
||||
- https://git.openstack.org/openstack/requirements
|
||||
output: /tmp/mirror/openstack
|
||||
|
||||
- name: openstack-infra
|
||||
projects:
|
||||
- https://git.openstack.org/openstack-infra/config
|
||||
output: /tmp/mirror/openstack-infra
|
||||
|
||||
|
||||
Creating a mirror
|
||||
-----------------
|
||||
|
||||
The run_mirror utility creates a mirror. ::
|
||||
|
||||
run-mirror -c mirror.yaml
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user