Skip to content

dreizehnelf/docker-devpi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Devpi Dockerfile

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.

Changes to the original scrapinghub image

  • 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 the root user

Installation

  1. Install Docker.

  2. 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)

Usage

Environment variables

  • DEVPI_PASSWORD: devpi creates a user named root by default, its password can be set with this environment variable.
  • DEVPI_MIRROR_CACHE_EXPIRY: Default to 86400 which is one day. Cache expiry time.

Run devpi-server

`docker run -v $(pwd)/mnt:/mnt -p 3141:3141 -it dreizehnelf/docker-devpi-web:latest`

About

pypi caching service using devpi and docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%