From 46ffd20d01bc34896d1d65a732ede1749cd0500c Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 8 Aug 2017 14:27:34 +0100 Subject: [PATCH] Use common pip cache for host & containers When executing role tests both the hosts and the containers download or compile/install pip wheels. This patch implements a bind mount of the pip cache so that the host and all its containers share the cache which should prevent the need to recompile or redownload packages. Change-Id: Ie6b9bc51e65bc3e93981ea33ca21b5a3452e7311 --- test-vars.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test-vars.yml b/test-vars.yml index b6b51f45..53807396 100644 --- a/test-vars.yml +++ b/test-vars.yml @@ -497,10 +497,15 @@ lxc_container_wait_params: ## Developer mode variables # Location of development repositories directory development_repo_directory: "{{ lookup('env', 'OPENSTACK_REPO_DIRECTORY') | default(lookup('env', 'TESTING_HOME') ~ '/git/openstack', true) }}" -## Bind mount the repositories into each container to allow development work + +## Container bind mounts +# Bind mount the repositories into each container to allow development work lxc_container_bind_mounts: - host_directory: "{{ development_repo_directory }}" container_directory: "{{ development_repo_directory }}" +# Bind mount the pip cache into each container to speed up builds + - host_directory: "/root/.cache/pip" + container_directory: "/root/.cache/pip" ## haproxy variables haproxy_ssl: no