This cookbook configures the machine as a mirror of https://pypi.python.org/.
- Ubuntu 13.04 (that's all we support at /dev/fort for now, so that's all I've tested.)
Cookbook attributes are named under the pypi_mirror
namespace.
node['pypi_mirror']['user']
- user to host PyPI mirror as, defaults tofort
node['pypi_mirror']['data_dir']
- directory to store PyPI mirror in, defaults to '/data/pypi'node['pypi_mirror']['apache']['listen_hostname']
- Hostname to listen on for PyPI Apache virtualhost, defaults to '*'node['pypi_mirror']['apache']['listen_port']
- Port to listen on for PyPI Apache virtualhost, defaults to '80'
The main entrypoint for this cookbook is the default
recipe.
Include pypi-mirror
and it will start replicating https://pypi.python.org/. This will take a very long time (probably a couple of days), and require tens of gigabytes of storage (~60GB, at time of writing). You have been warned.
You can keep an eye on the mirroring progress by running tail
ing /var/log/upstart/pypi-mirror.log
.
client
recipe