fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] A couple of questions


From: Tomasz Melcer
Subject: Re: [Fab-user] A couple of questions
Date: Tue, 20 Sep 2011 00:50:23 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110820 Icedove/3.1.12

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

W dniu 19.09.2011 23:37, Jeff Forcier pisze:
> On Mon, Sep 19, 2011 at 1:19 PM, Tomasz Melcer <address@hidden> wrote:
> 
>> I was thinking of something different: to be able to use a chroot as a
>> host, instead of an ssh connection.
>>
>> I assume this would be a major change?
> 
> You'll need to clarify a bit more, I'm afraid I don't follow -- when
> you say "chroot" are you meaning a *local* chroot, and you want
> sudo/run/etc to execute locally and inside that chroot?

Yes, exactly this. Sorry not to clarify this earlier.

> Either way, I'm not sure I like the proposed API change, it seems both
> very niche in application and departs pretty significantly from the
> current conceptual execution model.
> 
> If you could highlight your specific use case here (i.e. what are you
> doing by hand right now?) that might help.

I could make a VM to test my webapp, but that's pretty heavy-weight
solution when I just need apache and mysql. Chroot has most of the
features of a VM in terms of isolation, but it takes less RAM, it takes
less disk space, it is faster, and I've got easier access to file system
from host system.

I browsed `fabric` code for a while, and it seems that if I managed to
provide a set of classes that mimic paramiko's API, but work inside a
chroot instead of over ssh, this might work. The only problem I see is
that `fabric` code seems to operate on a tuple (host, port, username),
which makes little sense in chroots.

Anyway, would you accept a patch implementing this?

Tomasz Melcer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk53xy8ACgkQ0lIV1xJbVqo/PACeMyjuYJGMdGQNjOnP5vmigBWL
r1wAmgMzMVSBZ1zoIC829HTa/jZ/olFo
=rVTJ
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]