diff --git a/build.sh b/build.sh index 5fcfe17770..f6d287de93 100755 --- a/build.sh +++ b/build.sh @@ -9,12 +9,12 @@ DEST="/nfs/$NAME" rm -rf $DEST # build a proto image - natty + packages that will install (optimization) -if [ ! -d nfs ]; then +if [ ! -d proto ]; then debootstrap natty proto cp sources.list proto/etc/apt/sources.list chroot proto apt-get update - chroot proto apt-get install -y `cat apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt)"` - chroot proto pip install `cat pips/* | cut -d\# -f1` + chroot proto apt-get install -y `cat apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin)"` + chroot proto pip install `cat pips/*` git clone https://github.com/cloudbuilders/nova.git proto/opt/nova git clone https://github.com/cloudbuilders/openstackx.git proto/opt/openstackx git clone https://github.com/cloudbuilders/noVNC.git proto/opt/noVNC diff --git a/stack.sh b/stack.sh index a6d14c6585..c278701ca8 100755 --- a/stack.sh +++ b/stack.sh @@ -54,10 +54,10 @@ function clone_or_up { # You should only have to run this once if [ "$CMD" == "install" ]; then # install apt requirements - apt-get install -y -q `cat $DIR/apts/*` + apt-get install -y -q `cat $DIR/apts/* | cut -d\# -f1` # install python requirements - pip install -r $DIR/pips/dash + pip install `cat $DIR/pips/*` # TODO: kill openstackx clone_or_up https://github.com/cloudbuilders/nova.git $NOVA_DIR