https://github.com/phistrom/devpi-docker
Simple PyPI mirror or private repository in a Docker container
https://github.com/phistrom/devpi-docker
Last synced: 4 months ago
JSON representation
Simple PyPI mirror or private repository in a Docker container
- Host: GitHub
- URL: https://github.com/phistrom/devpi-docker
- Owner: phistrom
- Created: 2021-07-29T19:36:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-29T21:39:38.000Z (almost 4 years ago)
- Last Synced: 2024-12-27T00:11:58.437Z (6 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# devpi Docker Container
Simple, quick PyPI mirror or private repo in a container## Usage
### Start a PyPI mirror
```sh
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
```sh
pip install -i http://localhost:3141/root/pypi/+simple/ simplejson
```#### Search for Package
or for search:
```sh
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)[environment variables]:
[the devpi documentation's examples]: