cache the images

This commit is contained in:
Jesse Andrews 2011-10-25 23:41:59 -07:00
parent c2b3cf7ff8
commit 6065772fec

View file

@ -284,6 +284,15 @@ if [ "$COPYENV" = "1" ]; then
cp_it ~/.bashrc $ROOTFS/$DEST/.bashrc cp_it ~/.bashrc $ROOTFS/$DEST/.bashrc
fi fi
# pre-cache uec images
for image_url in ${IMAGE_URLS//,/ }; do
IMAGE_FNAME=`basename "$image_url"`
if [ ! -f $IMAGES_DIR/$IMAGE_FNAME ]; then
wget -c $image_url -O $IMAGES_DIR/$IMAGE_FNAME
fi
cp $IMAGES_DIR/$IMAGE_FNAME $ROOTFS/$DEST/devstack/files/images
fi
# Configure the runner # Configure the runner
RUN_SH=$ROOTFS/$DEST/run.sh RUN_SH=$ROOTFS/$DEST/run.sh
cat > $RUN_SH <<EOF cat > $RUN_SH <<EOF