Sign inSign up

thccom/minicpan-server-docker

By thccom

Updated over 10 years ago

CPAN::Mini + CPAN::Mini::Server::Inject on top of a Debian Jessie base

Image
2

759

thccom/minicpan-server-docker repository overview

minicpan-server-docker

Docker container holding a CPAN::Mini mirror, running the CPAN::Mini::Inject::Server service on port 4000.

Running the image

docker run -d -p 4000:4000 --restart=always \
    -v /var/CPAN/cache:/var/www/CPAN \
    -v /var/CPAN/local:/var/www/CPANlocal \
    --name minicpan-server-docker \
    thccom/minicpan-server-docker:latest

Update from the CPAN

curl -X POST http://<DOCKER CONTAINER HOST>:4000/CPANMISD/update

Upload a module

curl -X POST http://<DOCKER CONTAINER HOST>:4000/CPANMISD/add \
    --data module=My::Example::Module --data authorid=BRAD --data version=1.0.130 \
    --data-urlencode file@/home/brad/workspace/My-Example-Module/My-Example-Module-1.0.130.tar.gz

Inject all uploaded modules into the mirror

curl -X POST http://<DOCKER CONTAINER HOST>:4000/CPANMISD/inject

Run cpanm against the mirror

export PERL_CPANM_OPT="--mirror http://<DOCKER CONTAINER HOST>:4000/CPAN"
cpanm <MODULE NAMES>

Tag summary

Content type

Image

Digest

sha256:d087a0cb4

Size

310.3 MB

Last updated

over 10 years ago

docker pull thccom/minicpan-server-docker