EA-Tester
EA-Tester copied to clipboard
Implement Squid for caching Apt packages for CI
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-squidas container on port 3128 (docker-compose run Squid). Make sure/srv/docker/squid/cacheis created on the host machine and cached by CI (cachesection in.travis.yml). - Configure Docker to use proxy pointing to Squid in
~/.docker/config.json:
"proxies": {
"default": {
"httpProxy": "http://172.17.0.1:8888",
"httpsProxy": "http://172.17.0.1:8888"
}
}
- Now, when running containers or building Docker image, should use proxy.
- Original repo:
sameersbn/docker-squid - Fork:
kenorb-contrib/docker-squid