aculich / docker-proxy-cache

2 stars 0 forks source link
  1. Install docker (assuming you are using BCE in VirtualBox): sudo apt-get install -y docker.io
  2. Give yourself permissions to run docker: sudo adduser $USER docker
  3. Restart your shell/GUI or: newgrp docker
  4. Pull an ubuntu docker image in the background while you complete the steps after this: docker pull ubuntu:utopic
  5. Clone the repository: git clone https://github.com/aculich/docker-proxy-cache
  6. Change to: cd docker-proxy-cache/container
  7. Build the docker container: docker build -t docker-proxy-cache .
  8. Assuming you are still on the container directory go back one dir: cd ..
  9. Start the proxy-cache with: sh ./run-docker-proxy-cache.sh If your CACHEDIR is not in /cache/proxy/squid3 then you'll need to specify it when running: CACHEDIR=/foo/bar/baz sh ./run-docker-proxy-cache.sh
  10. In another shell test if the proxy cache might be running properly: ./test-docker-proxy-cache.sh