Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

perl in a container (lxc or other)

by djzort (Sexton)
on May 22, 2013 at 11:03 UTC ( [id://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!

Replies are listed 'Best First'.
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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2025-05-16 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.