Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When juju Install juju fetches packages for a unit, does it make use of the host system's APT cache? I'm asking this because in my case, bandwidth is limited and I am doing some charm development.

It is not really an option to have Juju continuously fetching packages every time I want to test a charm. Is there some way of having Juju cache the packages it fetches so that it doesn't have to download them all each time?

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

If you're using juju locally then it automatically caches debs using squid-deb-proxy.

Juju has an option to allow you to use other apt proxies on your network, see:

You basically define it in your ~/.juju/environments.yaml for the specific environment, like so:

apt-http-proxy: http://10.0.3.1:8000
share|improve this answer
    
Great, thanks! After the first couple of deploys, I noticed decreased network usage so I assumed something was up :) –  Nathan Osman Nov 20 '11 at 20:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.