Skip to content

bmwiedemann/varnishcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goal

build a container for use in docker/podman that is easy to use for organizations or at home that prevents duplicate downloads of rpms from mirrors/download.o.o

Usage

podman build --tag varnish .
podman run --name varnish --rm -d -p 8080:80 localhost/varnish --localmirrorserver 134.76.12.6 --localmirrorpath=/pub/linux/suse/opensuse/ --storagesize 4G
curl -v localhost:8080/tumbleweed/repo/oss/media.1/products
podman exec -ti varnish varnishstat
podman generate systemd --new --name varnish > /etc/systemd/system/varnishcontainer.service
http_proxy=http://$IP:8080/ zypper ref # only works with http://download.o.o or http://mirrorcache.o.o repos, but not with https and not with /path/to/opensuse/
varnish_reload_vcl # after test-editing the generated vcl.conf

Might also use baseurl=http://$IP:8080/PATH in /etc/zypp/repos.d/

License

GPLv2

Contribute

Open issues and pull-requests on https://github.com/bmwiedemann/varnishcontainer

About

Build a container for use in docker/podman

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published