Sign inSign up

mileiq/mdl-pip-server

By mileiq

•Updated over 9 years ago

MileIQ Custom PyPi (pip) Server

Image
0

1.3K

mileiq/mdl-pip-server repository overview

⁠mdl-pip-server

Custom pypi server for MileIQ shared python packages

⁠Running the server

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>

⁠Installing pip packages

Add the following to the top of your requirements.txt

-i http://<username>:<password>@localhost:8080/simple/

⁠Uploading pip packages

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

Tag summary

Content type

Image

Digest

Size

264.5 MB

Last updated

over 9 years ago

docker pull mileiq/mdl-pip-server