Sign inSign up

phistrom/devpi

By phistrom

Updated about 5 years ago

Simple PyPI mirror or private repository in a Docker container

Image
0

1.5K

phistrom/devpi repository overview

devpi Docker Container

Simple, quick PyPI mirror or private repo in a container

View on Github

Usage

Start a PyPI mirror
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:

Install Package
pip install -i http://localhost:3141/root/pypi/+simple/ simplejson
Search for Package

or for search:

pip search -i http://localhost:3141/root/pypi/ devpi-client
Overrides

devpi-server can already be configured by environment variables.

Secretfile

By default, a random secret file is generated at /secretfile.

  • You can mount your own secretfile as a volume like docker run -v /home/user/mysecretfile:/secretfile ...
  • You can specify its contents with your own environment variable docker run -e SECRETFILE_CONTENTS="SUPERSECRETSTUFF" ... (needs to be at least 32 characters)

Tag summary

Content type

Image

Digest

Size

21.6 MB

Last updated

about 5 years ago

docker pull phistrom/devpi