Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-25T03:16:15.000Z (5 months ago)
- Last Synced: 2024-07-25T04:28:43.945Z (5 months ago)
- Topics: docker-image, pypi
- Language: Dockerfile
- Homepage:
- Size: 37.1 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# devpi-docker
[![Docker Pulls](https://img.shields.io/docker/pulls/ray1ex/devpi)](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 | - |