https://github.com/rexzhang/devpi-docker
PyPI local mirror/proxy/cache in self-host docker container
https://github.com/rexzhang/devpi-docker
docker-image pypi
Last synced: 2 months ago
JSON representation
PyPI local mirror/proxy/cache in self-host docker container
- Host: GitHub
- URL: https://github.com/rexzhang/devpi-docker
- Owner: rexzhang
- License: mit
- Created: 2022-01-20T05:39:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-18T03:32:30.000Z (9 months ago)
- Last Synced: 2025-03-30T06:32:53.484Z (3 months ago)
- Topics: docker-image, pypi
- Language: Dockerfile
- Homepage:
- Size: 41 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# devpi-docker
[](https://hub.docker.com/r/ray1ex/devpi)
PyPI local mirror/proxy/cache in self-host docker container
[Github](https://github.com/rexzhang/devpi-docker/)
# Quick Start
## Install
```shell
docker pull ray1ex/devpi:latest
docker run -dit --restart unless-stopped \
-p 3141:3141 \
-e UID=1000 -e GID=1000 \
-e TZ=Asia/Shanghai \
-v /your/path:/data \
--name devpi ray1ex/devpi
```## Usage
### Temporary
```shell
pip install -i http://localhost:3141/root/pypi/+simple/ -U pip
```### Persistent
```shell
pip config set global.index-url http://localhost:3141/root/pypi/+simple/
pip config set install.trusted-host http://localhost:3141/root/pypi/+simple/pip install -U pip
```### First Usage
> The first request will take a few minutes depending on internet speed, please wait some logging like below.```
2022-09-29 16:57:20,257 INFO [Wtx1] fswriter2: committed at 2
```# Environment Variables
| Name | Defaule Value | Memo |
|-----------|----------------------------|------|
| GID | 1000 | - |
| UID | 1000 | - |
| PYPI_URL | `https://pypi.org/simple/` | - |
| WAIT_TIME | 20 | - |