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
This commit is contained in:
parent
ee21cf8c8b
commit
46ffd20d01
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user