local provider should support use of local proxy
Bug #1203816 reported by
James Page
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Unassigned |
Bug Description
First of all - great work on the local provider - works really well!
One feature I'd like to see re-introduced (juju had this a while back I think) is the ability to use a local proxy such as squid-deb-proxy or apt-cacher-ng; the use of the cloud image really reduces startup times - use of a local proxy would reduce charm install times for users on low bandwidth connections considerably.
Related branches
lp:~sidnei/juju-core/lxc-mirror
- Scott Moser (community): Approve
-
Diff: 349 lines (+177/-19)6 files modifiedcloudinit/cloudinit_test.go (+7/-0)
cloudinit/options.go (+6/-0)
container/lxc/lxc.go (+30/-0)
container/lxc/lxc_test.go (+29/-2)
utils/apt.go (+34/-8)
utils/apt_test.go (+71/-9)
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: local-provider regression |
Changed in juju-core: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
Linked my bare attempt. This sources /etc/default/lxc for a MIRROR setting and then sends that via cloud-init 'apt_mirror' setting, which is exactly what the ubuntu-cloud lxc template does.
If you install apt-cacher-ng in the host and then set
MIRROR="http:// 10.0.3. 1:3142/ archive. ubuntu. com/ubuntu"
Then it will just work.