Custom pypi server for MileIQ shared python packages
docker build -t miq-pip-server .
docker run -d -p 8080:8080 -v /packages -v /private --name miq-pip-server miq-pip-server
Then to stop/start the server
docker stop miq-pip-server
docker start miq-pip-server
Jump into the server while it's running
docker exec -it $(docker ps | grep pip | tr -s ' ' | cut -d ' ' -f 1) bash
Add a new user's login
htpasswd -sc /private/.htaccess <username>
Add the following to the top of your requirements.txt
-i http://<username>:<password>@localhost:8080/simple/
Add the following configuration file to your computer as ~/.pypirc
[distutils]
index-servers =
internal
[internal]
repository: http://localhost:8080
username: <username>
password: <password>
Then to upload your python package run
python setup.py sdist upload -r internal
Content type
Image
Digest
Size
264.5 MB
Last updated
over 9 years ago
docker pull mileiq/mdl-pip-server