Meego Wiki
Views

Release Infrastructure/IMG-PROXY

From MeeGo wiki
Jump to: navigation, search

IMG Proxy

Creating images against remote repositories takes time, download rate from standard MeeGo package repositories can be anything from 100kB/s to 1M/s. This bottleneck can by resolved with caching web proxy which stores packages locally to be reused in IMG.

Following services are required:

Squid

Squid is a proxy server and web cache daemon. Squid is used to create local disk cache to store MeeGo RPM Packages.

Setup

Install Squid with zypper into OpenSUSE 11.2:

zypper in squid

Create additional configuration /etc/squid/squid.conf:

# 20GB total cache size limit and 300MB item size limit 
cache_dir ufs /var/cache/squid 20480 16 256
#maximum_object_size 40960 KB
maximum_object_size 307200 KB

# VERY LOOSE EXPIRATION FOR RPM FILES
refresh_pattern -i \.rpm$ 10080 200% 40320 ignore-reload override-lastmod

refresh_pattern .               0       20%     4320

Restart squid:

rcsquid restart

Configure MIC2 to recognise new proxy /etc/mic2/mic2.conf:

proxy=http://your-proxy-address.com:3128
Personal tools