Giter VIP home page Giter VIP logo

docker-frontier-squid's Introduction

Frontier Squid Container Image Build Status

A Docker container image for Squid proxy server as packaged by OSG. The image is built according to the OSG installation instructions.

Usage

To run with the defaults:

docker run --rm --name frontier-squid \
  -p 3128:3128 opensciencegrid/frontier-squid:stable

See our documentation for details of our docker image tags.

Configuring Squid

The recommended way to configure the squid in the container is by means of environment variables. Three such variables are supported:

Variable name Description Defaults
SQUID_IPRANGE Limits the incoming connections to the provided whitelist. By default only standard private network addresses are whitelisted.
SQUID_CACHE_DISK Sets the cache_dir option which determines the disk size squid uses. Must be an integer value, and its unit is MBs. Note: The cache disk area is located at /var/cache/squid. Defaults to 10000.
SQUID_CACHE_MEM Sets the cache_mem option which regulates the size squid reserves for caching small objects in memory. Defaults to "128 MB".

Additional configuration changes may be made by files in /etc/squid/customize.d. See the documentation for that in squid-customize.sh.

Moreover, be aware that in order to preserve the cache between redeployments, you should map the following areas to persistent storage outside the container:

Mountpoint Description Example docker mount
/var/cache/squid This directory contains the cache for squid. See also SQUID_CACHE_DISK above. -v /tmp/squid:/var/cache/squid
/var/log/squid This directory contains the squid logs. -v /tmp/log:/var/log/squid

For more details, see the Frontier Squid documentation.

Validate

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

docker-frontier-squid's People

Contributors

brianhlin avatar drdaved avatar edquist avatar efajardo avatar gcarcassi avatar lincolnbryant avatar matyasselmeci avatar mtru32 avatar osg-cat avatar sfiligoi avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.