rexzhang / devpi-docker

PyPI local mirror/proxy/cache in self-host docker container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

devpi-docker

Docker Pulls

PyPI local mirror/proxy/cache in self-host docker container

Github

Quick Start

Install

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

pip install -i http://localhost:3141/root/pypi/+simple/ -U pip

Persistent

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 -

About

PyPI local mirror/proxy/cache in self-host docker container

License:MIT License


Languages

Language:Dockerfile 51.9%Language:Shell 48.1%