package-manager-cache
is a docker container image which provides optimized HTTP caching for the following sources:
- apt repositories (for Debian-based operating systems)
- yum repositories (for RedHat-based operating systems)
It's based on:
- Squid HTTP proxy
storeid-wrapper
, a Python script which reduce cache misses for files hosted on differents mirrors
docker run \
-it \
--publish 18080:18080 \
--ulimit nofile=65535:65535 \
--volume /mnt/persistent-storage/data:/var/cache/squid \
--volume /var/log/vmc-cacher:/var/log/squid \
lionelnicolas/package-manager-cache
N.B. The ulimit option may be dropped if file descriptor exhaustion is not an issue on a given system.
$~ echo 'Acquire::http::Proxy "http://$HOSTADDR:18080";' > /etc/apt/apt.conf.d/proxy
$~ apt-get update
$~ echo 'proxy=http://$HOSTADDR:18080' >>/etc/yum.conf
$~ yum update
This is licensed under the Apache License, Version 2.0. Please see LICENSE for the full license text.
Copyright 2016-2019 Lionel Nicolas