Skip to content
Snippets Groups Projects
Commit ae197f26 authored by israelad's avatar israelad
Browse files

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: default avatarAdam Israel <adam.israel@canonical.com>
parent 8f830696
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment