A Docker container image for Squid proxy server as packaged by OSG. The image is built according to the OSG installation instructions.
To run with the defaults:
docker run --rm --name osg-frontier-squid \
-p 3128:3128 opensciencegrid/osg-frontier-squid
Type | Description | Example | |
---|---|---|---|
/etc/squid/customize.sh | Conf file (VOLUME) | One possible way to configure squid is by passing the customize.sh file. | -v ~/customize.sh:/etc/squid/customize.sh |
/etc/squid/squid.conf | Conf file (VOLUME) | One possible way to configure squid is by passing directly squid.conf file. | -v ~/squid.conf:/etc/squid/squid.conf |
/var/cache/squid | Cache dir (VOLUME) | This directory contains the cache for squid. If the directory is persistent, the cache will presist after a redeployment. | -v /tmp/squid:/var/cache/squid |
To validate your installation:
> export http_proxy=http://localhost:3128
> wget -qdO/dev/null http://frontier.cern.ch 2>&1 | grep X-Cache
X-Cache: MISS from 797a56e426cf
> wget -qdO/dev/null http://frontier.cern.ch 2>&1 | grep X-Cache
X-Cache: HIT from 797a56e426cf