djzort has asked for the wisdom of the Perl Monks concerning the following question:
Im curious if someone would be so kind as to share their experiences setting up a minimal perl container in lxc, openvz, bsd jails, linux-vserver or even chroots.
App::Staticperl (http://software.schmorp.de/pkg/App-Staticperl.html) looks like it might be a good starting point - if i wanted to avoid a stripped down installed of <favourite distro or bsd>
The ideal outcome would provide a container with mcpan and a given version of perl. Possibly some fusion of perlbrew and some dark magic to cook up the perl version then drop it in the container.
Use case is to wrap up apps and put resource limits on them. PAAS like really. I know uwsgi can use namespaces and what not, if someone has used that - please share!
Re: perl in a container (lxc or other)
by Anonymous Monk on May 23, 2013 at 18:32 UTC
|
Hmm, I knew about PAR but not App::Staticperl! In any case those are both for making stand-alone, easily distributable Perl apps. Perhaps not what you want in your "jail."
You might be better served with App::perlbrew, which makes it easier to set up a full Perl install anywhere in your filesystem, independent of any other perl's installed on the same machine. | [reply] |
|
Indeed, perlbrew is a useful building block in thise case.
| [reply] |
|