The goal is to implement caching, so the provision task finishes quicker for local or CI builds, as it doesn't have to download Apt packages over and over again.
One potential method is to:
Run docker-squid as container on port 3128 (docker-compose run Squid). Make sure /srv/docker/squid/cache is created on the host machine and cached by CI (cache section in .travis.yml).
Configure Docker to use proxy pointing to Squid in ~/.docker/config.json:
The goal is to implement caching, so the provision task finishes quicker for local or CI builds, as it doesn't have to download Apt packages over and over again.
One potential method is to:
docker-squid
as container on port 3128 (docker-compose run Squid
). Make sure/srv/docker/squid/cache
is created on the host machine and cached by CI (cache
section in.travis.yml
).~/.docker/config.json
:sameersbn/docker-squid
kenorb-contrib/docker-squid