A Docker image based on Alpine that runs a devpi server (a PyPi Cache) with a frontend (devpi-web).
The $DEVPI_PASSWORD
environment variable will set the root password on first run.
docker run -e "DEVPI_PASSWORD=password" -d -p 3141:3141 --name devpi apihackers/devpi
To mount your own local devpi cache directory:
docker run -d -v /path/to/devpi/home:/devpi apihackers/devpi
Use a configuration similar to this in your ~/.pip/pip.conf
:
[global]
index-url = http://localhost:3141/root/pypi/+simple/
Use a configuration similar to this in your ~/.pydistutils.cfg
:
[easy_install]
index_url = http://localhost:3141/root/pypi/+simple/