Add a path to pre-installing packages from PYPI that are common
to reactive charms and VNF configuration charms for faster
deployment times.
Signed-off-by: Adam Israel <adam.israel@canonical.com>
PACKAGES="$LAYER_BASIC $DOWNLOAD_PACKAGES"
+# Packages from pypi to pre-install
+PYPI="charms.reactive charmhelpers paramiko>=1.16.0,<1.17"
+
function cache() {
series=$1
container=juju-${series}-base
lxc exec $container -- apt-get update -y
lxc exec $container -- apt-get upgrade -y
lxc exec $container -- apt-get install -y $PACKAGES $2
+ lxc exec $container -- pip3 install --upgrade $PYPI
lxc stop $container
lxc image delete $alias || true