Merge "Remove docs about deprecated pypi-mirror tool"
This commit is contained in:
commit
ceb9c431f0
1 changed files with 16 additions and 27 deletions
|
@ -26,38 +26,27 @@ export PYPI\_MIRROR\_URL=http://site/pypi/Ubuntu-13.10
|
||||||
export PYPI\_MIRROR\_URL\_1=http://site/pypi/
|
export PYPI\_MIRROR\_URL\_1=http://site/pypi/
|
||||||
export PYPI\_MIRROR\_URL\_2=file:///tmp/pypi
|
export PYPI\_MIRROR\_URL\_2=file:///tmp/pypi
|
||||||
|
|
||||||
[pypi-mirror](https://git.openstack.org/cgit/openstack-infra/pypi-mirror) can
|
[devpi-server](https://git.openstack.org/cgit/openstack-infra/pypi-mirro://pypi.python.org/pypi/devpi-server)
|
||||||
be useful in making a partial PyPI mirror suitable for building images. For
|
can be useful in making a partial PyPI mirror suitable for building images. For
|
||||||
instance:
|
instance:
|
||||||
|
|
||||||
* sudo apt-get install libxml2-dev libxslt-dev libmysqlclient-dev libpq-dev \
|
* pip install -U devpi
|
||||||
libnspr4-dev pkg-config libsqlite3-dev libzmq-dev libffi-dev libldap2-dev \
|
|
||||||
libsasl2-dev
|
|
||||||
|
|
||||||
* pip install git+https://git.openstack.org/openstack-infra/pypi-mirror
|
* devpi-server quickstart
|
||||||
|
|
||||||
* cat << EOF > mirror.yaml
|
* devpi use http://machinename:3141
|
||||||
cache-root: /home/USER/.cache/image-create/pypi/download
|
|
||||||
|
|
||||||
mirrors:
|
* Re-export your variables to point at the new mirror:
|
||||||
- name: openstack
|
|
||||||
projects:
|
|
||||||
- https://git.openstack.org/openstack/requirements
|
|
||||||
output: /home/USER/.cache/image-create/pypi/mirror
|
|
||||||
EOF
|
|
||||||
|
|
||||||
* mkdir -p /home/USER/.cache/image-create/pypi/{download,mirror}
|
export PYPI\_MIRROR\_URL=http://machinename:3141/
|
||||||
|
unset PYPI\__MIRROR\_URL\_1
|
||||||
|
unset PYPI\__MIRROR\_URL\_1
|
||||||
|
|
||||||
* run-mirror -b remotes/origin/master --verbose -c mirror.yaml
|
The next time packages are installed, they'll be cached on the local devpi
|
||||||
# This creates and updates the mirror.
|
server; subsequent runs pointed at the same mirror will use the local cache if
|
||||||
|
the upstream can't be contacted.
|
||||||
|
|
||||||
If you have additional packages that are not identified in the global openstack
|
Note that this process only has the server running temporarily; see
|
||||||
requirements project, you can include them:
|
[Quickstart: Permanent install on
|
||||||
|
server/laptop](http://doc.devpi.net/latest/quickstart-server.html) guide from
|
||||||
* pip install -d ~/.cache/image-create/pypi/download/pip/openstack \
|
the devpi developers for more information on a more permanent setup.
|
||||||
heat-cfntools distribute os-apply-config
|
|
||||||
run-mirror -b remotes/origin/master --verbose -c mirror.yaml --no-download
|
|
||||||
|
|
||||||
A dedicated user with no privileges may be desirable when running this for
|
|
||||||
unattended installs, since pypi-mirror will compile fairly arbitrary code from
|
|
||||||
the internet.
|
|
||||||
|
|
Loading…
Reference in a new issue