|
...
|
...
|
@@ -119,12 +119,14 @@ if [ ! -f $CACHEDIR/bootstrapped ]; then
|
|
119
|
119
|
lxc-destroy -n $CONTAINER
|
|
120
|
120
|
# trigger the initial debootstrap
|
|
121
|
121
|
create_lxc
|
|
122
|
|
- chroot $CACHEDIR apt-get update
|
|
123
|
|
- chroot $CACHEDIR apt-get install -y --force-yes `cat files/apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin|mysql-server)"`
|
|
124
|
|
- chroot $CACHEDIR pip install `cat files/pips/*`
|
|
125
|
122
|
touch $CACHEDIR/bootstrapped
|
|
126
|
123
|
fi
|
|
127
|
124
|
|
|
|
125
|
+# Make sure that base requirements are installed
|
|
|
126
|
+chroot $CACHEDIR apt-get update
|
|
|
127
|
+chroot $CACHEDIR apt-get install -y --force-yes `cat files/apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin|mysql-server)"`
|
|
|
128
|
+chroot $CACHEDIR pip install `cat files/pips/*`
|
|
|
129
|
+
|
|
128
|
130
|
# Clean out code repos if directed to do so
|
|
129
|
131
|
if [ "$CLEAN" = "1" ]; then
|
|
130
|
132
|
rm -rf $CACHEDIR/$DEST
|