Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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 ( 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1034720]
Approved by marto
Front-paged by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2018-04-27 03:58 GMT
Find Nodes?
    Voting Booth?