Simple PyPI mirror or private repository in a Docker container
1.5K
Simple, quick PyPI mirror or private repo in a container
docker run --restart always -d -p 3141:3141 -v devpi:/devpi --name pypi-mirror phistrom/devpi
It's ready to go. You can tell pip to use it by specifying the -i flag.
To borrow the devpi documentation's examples:
pip install -i http://localhost:3141/root/pypi/+simple/ simplejson
or for search:
pip search -i http://localhost:3141/root/pypi/ devpi-client
devpi-server can already be configured by environment variables.
By default, a random secret file is generated at /secretfile.
docker run -v /home/user/mysecretfile:/secretfile ...docker run -e SECRETFILE_CONTENTS="SUPERSECRETSTUFF" ... (needs to be at least 32 characters)Content type
Image
Digest
Size
21.6 MB
Last updated
about 5 years ago
docker pull phistrom/devpi