|
2 months ago | |
---|---|---|
docker-stuff | 2 months ago | |
patterns | 1 year ago | |
storeid | 1 year ago | |
.drone.yml | 1 year ago | |
.gitignore | 1 year ago | |
Dockerfile-alpine | 5 months ago | |
Dockerfile-debian | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
storeid_rewrite | 1 year ago |
Deploy the squid and let it rule!
debian container:
docker build -t angry-squid:latest -f Dockerfile-debian .
alpine container:
docker build -t angry-squid:latest -f Dockerfile-alpine .
docker run -d --name angry-squid \
-p 3128:3128 \
-v "$PWD/cache:/var/spool/squid" \
angry-squid:latest
Now you can change your proxy settings to [the IP of the machine above] with port 3128. For better results, this is the configuration for APT:
cat <<'EOF' | sudo tee /etc/apt/apt.conf.d/80proxy
Acquire::http::Proxy "http://IP.ADDRESS:3128/";
Acquire::https::Proxy "http://IP.ADDRESS:3128/";
EOF
Just replace IP.ADDRESS with the correct ip address