[lxc-devel] Pull request: make ubuntu templates apt proxy aware

Chris Glass chris.glass at canonical.com
Wed Jan 15 08:35:11 UTC 2014


Thanks for merging this in!
As suggested, here's a trivial commit adding a commented hook to the
common Ubuntu template: https://github.com/lxc/lxc/pull/137

- Chris

On Tue, Jan 14, 2014 at 6:21 PM, Stéphane Graber <stgraber at ubuntu.com> wrote:
> On Tue, Jan 14, 2014 at 06:07:32PM +0100, Chris Glass wrote:
>> Should I post the patch to this list instead or is it simply that
>> nobody had time to look at it yet?
>> I don't mean to sound pushy at all (sorry if I do), I'm just trying to
>> contribute "the right way" :)
>>
>> Thanks
>>
>> - Chris
>
> Nope, that's fine. I've just been busy with other things at the moment.
> I hope to have some time to go through github pull requests later today.
>
> Btw, it's pretty likely that I'll postpone beta2 until tomorrow as I've
> got a few more changes to lxc-download which I want to get in before
> then.
>
>>
>> On Mon, Jan 13, 2014 at 6:23 PM, Chris Glass <chris.glass at canonical.com> wrote:
>> > (gmail is messing with my signature, that'll teach me to use the web interface)
>> >
>> > On Mon, Jan 13, 2014 at 6:22 PM, Chris Glass <chris.glass at canonical.com> wrote:
>> >> -----BEGIN PGP SIGNED MESSAGE-----
>> >> Hash: SHA1
>> >>
>> >> Hi all,
>> >>
>> >> Here are the changes I was referring to in my previous email thread -
>> >> these changes make the ubuntu templates aware of squid-deb-proxy
>> >> servers visible to the host.
>> >>
>> >> https://github.com/lxc/lxc/pull/134
>> >>
>> >> squid-deb-proxy uses avahi to advertise itself, and so installing
>> >> squid-deb-proxy-client on the LXC host lets apt autodetect proxy
>> >> settings. With this path the proxy settings are consumed by LXC when
>> >> both debootstrapping a new image and inside the container itself.
>> >>
>> >> This makes deploying similar environments (on a development machine
>> >> for example, in a CI lab, or for example using juju) *much* faster.
>> >> One could achieve similar results by setting APT_PROXY or HTTP_PROXY
>> >> when running lxc-create, but the advantage of this patch is that it's
>> >> completely automatic.
>> >>
>> >> The cost for people not using squid-deb-proxy is negligible, this
>> >> patch therefore adds the hook to the default ubuntu and ubuntu-cloud
>> >> templates.
>> >>
>> >> Note: this requires "dbus," to be added to the
>> >> /etc/apparmor.d/abstractions/lxc/start-container apparmor profile as
>> >> Stephane suggested in the previous thread (if not using the PPA
>> >> packages).
>> >>
>> >>
>> >> Hope this can be as useful for other people as it has been for me so far,
>> >>
>> >> - - Chris
>> >>
>> >> -----BEGIN PGP SIGNATURE-----
>> >> Version: GnuPG v1.4.14 (GNU/Linux)
>> >>
>> >> iEYEARECAAYFAlLUIH0ACgkQND4mi+cKVzTNLQCfU0S9XAFec79gbsiR+FMgoMwq
>> >> piEAnR5S9jmJ6sdaODTRjCOvm4SCMxDb
>> >> =OM7W
>> >> -----END PGP SIGNATURE-----
>> _______________________________________________
>> lxc-devel mailing list
>> lxc-devel at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-devel
>
> --
> Stéphane Graber
> Ubuntu developer
> http://www.ubuntu.com
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
>


More information about the lxc-devel mailing list