This repository contains a modified devpi setup for a Docker container based on the original scrapinghub image with some changes inspired by yohanswanepoel/openshift-devpi.
- Use python:3.6 instead of python:3 base image
- Use devpi-server==4.3.0 and devpi-client==3.0.0 (vs. devpi-server>=2.5,<2.6dev and devpi-client>=2.3,<=2.4dev)
- Install devpi-common==3.1.0 and devpi-web==3.2.0 (which enables
pip search
functionality - Run the server with the
restrict-modify
parameter to limit write access to theroot
user
-
Install Docker.
-
Download build from public Docker Registry:
docker pull dreizehnelf/docker-devpi-web
(alternatively, you can build an image from Dockerfile:
docker build -t="dreizehnelf/docker-devpi-web" github.com/dreizehnelf/docker-devpi
)
DEVPI_PASSWORD
: devpi creates a user namedroot
by default, its password can be set with this environment variable.DEVPI_MIRROR_CACHE_EXPIRY
: Default to86400
which is one day. Cache expiry time.
`docker run -v $(pwd)/mnt:/mnt -p 3141:3141 -it dreizehnelf/docker-devpi-web:latest`