Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

perl in a container (lxc or other)

by djzort (Sexton)
on May 22, 2013 at 11:03 UTC ( #1034720=perlquestion: print w/ replies, xml ) Need Help??
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!

Comment on perl in a container (lxc or other)
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.

      Indeed, perlbrew is a useful building block in thise case.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1034720]
Approved by marto
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-08-01 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (51 votes), past polls