From 5443651ba3b134197d59b0187274abd58d1f0b00 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Wed, 9 Aug 2017 13:14:53 +0100 Subject: [PATCH] Add images.linuxcontainers.org reverse proxy In order to aid in the successful testing of OpenStack-Ansible deployments which make use of the upstream base containers, this adds a reverse proxy for the LXC container images and the API used by the LXC tooling to find the right image. The URL http://images.linuxcontainers.org redirects to either the US or UK site based on geolocation. To prevent getting caught in the redirect we pick the US source. Note that the API used by the LXc tooling queries [1] in order to find the latest images, then fetches that image via the path specified in the last ; delimited field. [1] http://images.linuxcontainers.org/meta/1.0/index-system Change-Id: I8336aeb85689cfaac8a794a5c3f5c62273d8ded0 --- modules/openstack_project/templates/mirror.vhost.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/openstack_project/templates/mirror.vhost.erb b/modules/openstack_project/templates/mirror.vhost.erb index 53c1b7756e..9eb5774533 100644 --- a/modules/openstack_project/templates/mirror.vhost.erb +++ b/modules/openstack_project/templates/mirror.vhost.erb @@ -159,6 +159,12 @@ NameVirtualHost <%= @vhost_name %>:8081 CacheEnable disk "/pypi" ProxyPass "/pypi/" "http://mirror.dfw.rax.openstack.org/pypi/" ProxyPassReverse "/pypi/" "http://mirror.dfw.rax.openstack.org/pypi/" + + # images.linuxcontainers.org + CacheEnable disk "/images.linuxcontainers" + ProxyPass "/images.linuxcontainers/" "http://us.images.linuxcontainers.org/" + ProxyPassReverse "/images.linuxcontainers/" "http://us.images.linuxcontainers.org/" + :8081>