diff --git a/tools/build_lxc.sh b/tools/build_lxc.sh index 39046f0..0f17378 100755 --- a/tools/build_lxc.sh +++ b/tools/build_lxc.sh @@ -119,12 +119,14 @@ if [ ! -f $CACHEDIR/bootstrapped ]; then lxc-destroy -n $CONTAINER # trigger the initial debootstrap create_lxc - chroot $CACHEDIR apt-get update - chroot $CACHEDIR apt-get install -y --force-yes `cat files/apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin|mysql-server)"` - chroot $CACHEDIR pip install `cat files/pips/*` touch $CACHEDIR/bootstrapped fi +# Make sure that base requirements are installed +chroot $CACHEDIR apt-get update +chroot $CACHEDIR apt-get install -y --force-yes `cat files/apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin|mysql-server)"` +chroot $CACHEDIR pip install `cat files/pips/*` + # Clean out code repos if directed to do so if [ "$CLEAN" = "1" ]; then rm -rf $CACHEDIR/$DEST