Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker-minicpan

minicpan in a box. Just run the container and get your own local CPAN.

Build it

There is a trusted build available at the docker index.

docker build -t dermitch/minicpan .

Creating the mirror

Creating your own mirror is pretty straightforward:

docker run -it --rm -v /host_directory:/cpan -e MIRROR=http://mirror.23media.de/cpan/ dermitch/minicpan

An initial sync can take about 1-2 hours, depending on your internet connection.

To update your mirror, just run the same command again. Best used with a daily cronjob.

Use the mirror

The easiest way to install CPAN packages is using cpanminus:

# Mirror can be:
# - A local directory
# - A HTTP URL
cpanm --mirror [your mirror] --mirror-only [Module Name]

# Examples:
cpanm --mirror /daten/hades/cpan --mirror-only LWP
cpanm --mirror http://cpan.local/cpan/ --mirror-only LWP

References

Docker Pull Command
Owner
dermitch
Source Repository

Comments (0)