From: Adam Israel Date: Wed, 28 Jun 2017 13:27:35 +0000 (-0400) Subject: Add PYPI packages to lxd image X-Git-Tag: v2.0.2~5 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F1981%2F1;p=osm%2Fdevops.git Add PYPI packages to lxd image 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 --- diff --git a/jenkins/VCA/update-lxd-image.sh b/jenkins/VCA/update-lxd-image.sh index 182a33c2..07ba90b0 100755 --- a/jenkins/VCA/update-lxd-image.sh +++ b/jenkins/VCA/update-lxd-image.sh @@ -21,6 +21,9 @@ DOWNLOAD_PACKAGES="" 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 @@ -35,6 +38,7 @@ function cache() { 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