| ... | ... |
@@ -9,12 +9,12 @@ DEST="/nfs/$NAME" |
| 9 | 9 |
rm -rf $DEST |
| 10 | 10 |
|
| 11 | 11 |
# build a proto image - natty + packages that will install (optimization) |
| 12 |
-if [ ! -d nfs ]; then |
|
| 12 |
+if [ ! -d proto ]; then |
|
| 13 | 13 |
debootstrap natty proto |
| 14 | 14 |
cp sources.list proto/etc/apt/sources.list |
| 15 | 15 |
chroot proto apt-get update |
| 16 |
- chroot proto apt-get install -y `cat apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt)"` |
|
| 17 |
- chroot proto pip install `cat pips/* | cut -d\# -f1` |
|
| 16 |
+ chroot proto apt-get install -y `cat apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin)"` |
|
| 17 |
+ chroot proto pip install `cat pips/*` |
|
| 18 | 18 |
git clone https://github.com/cloudbuilders/nova.git proto/opt/nova |
| 19 | 19 |
git clone https://github.com/cloudbuilders/openstackx.git proto/opt/openstackx |
| 20 | 20 |
git clone https://github.com/cloudbuilders/noVNC.git proto/opt/noVNC |
| ... | ... |
@@ -54,10 +54,10 @@ function clone_or_up {
|
| 54 | 54 |
# You should only have to run this once |
| 55 | 55 |
if [ "$CMD" == "install" ]; then |
| 56 | 56 |
# install apt requirements |
| 57 |
- apt-get install -y -q `cat $DIR/apts/*` |
|
| 57 |
+ apt-get install -y -q `cat $DIR/apts/* | cut -d\# -f1` |
|
| 58 | 58 |
|
| 59 | 59 |
# install python requirements |
| 60 |
- pip install -r $DIR/pips/dash |
|
| 60 |
+ pip install `cat $DIR/pips/*` |
|
| 61 | 61 |
|
| 62 | 62 |
# TODO: kill openstackx |
| 63 | 63 |
clone_or_up https://github.com/cloudbuilders/nova.git $NOVA_DIR |