[sf-perl] [announce] Pinto-0.026
jeff at imaginative-software.com
Thu Dec 8 14:44:09 PST 2011
On Dec 7, 2011, at 8:57 PM, Bill Moseley wrote:
> Can anyone offer comments on how this is done in your organization?
At least one organization that I know of uses Pinto to keep snapshots of CPAN in Subversion. They have a text file that just lists the packages they want to have installed in their site_perl. Then they point cpanm at the Pinto repository (or directly at the snapshots in Subversion) and feed the package list to cpanm. So it looks something like this:
$> cpanm --mirror /path/to/pinto/repos --mirror-only < wanted_packages.txt
And voila! They can stamp out a new perl environment with precisely the right dependencies each and every time. If someone just wants to make a sandbox environment, they can just use the -L=some/directory option to create the environment in some/directory. Or they could brew a fresh perl and install there (after bootstrapping cpanm). The also publish their in-house distributions to the same Pinto repository, so the environment includes both third-party CPAN packages and their own stuff too.
You can also store the "pre-built" modules in Subversion as Jon suggested (I've done that too). But the advantage of using Pinto is that it stores the actual distributions. So you can easily rebuild your dependency stack on a new architecture or with a different perl, and you get a full smoke test each time. In addition, Pinto provides you with tools for upgrading your stack in a controlled manner, so you can handle new packages from the CPAN that aren't compatible with your code. And if you use the built-in VCS capabilities of Pinto, you can rollback when things go wrong.
I do like Paul's suggestion of keeping machine images, especially for large systems that require more than just a bunch of Perl modules. But you can still use Pinto to build the Perly bits of those images in a controlled, reproducible fashion. In fact, you could even use the OS packaging system (e.g. debian or rpm) on top of Pinto, to combine Perl modules, web servers, databases, and whatever infrastructure you need.
Personally, I strive to make every system reproducible and isolated. I want to be able to stamp out the whole wad at any time with the push of a button. And I want to be able to have as many wads on the machine as I want. For the Perl parts, Pinto gives you the ability to use the CPAN toolchain to assemble modules (including your own) in a reliable and predictable way.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SanFrancisco-pm