Skip to content

lionelnicolas/package-manager-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A dockerized package manager HTTP proxy

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

Usage

Run the proxy

docker run \
	-it \
	--publish 18080:18080 \
	--volume /mnt/persistent-storage/data:/var/cache/squid \
	--volume /var/log/vmc-cacher:/var/log/squid \
	lionelnicolas/package-manager-cache

Configuring APT

$~ echo 'Acquire::http::Proxy "http://$HOSTADDR:18080";' > /etc/apt/apt.conf.d/proxy
$~ apt-get update

Configuring YUM

$~ echo 'proxy=http://$HOSTADDR:18080' >>/etc/yum.conf
$~ yum update

License

This is licensed under the Apache License, Version 2.0. Please see LICENSE for the full license text.

Copyright 2016-2019 Lionel Nicolas