cache the images
This commit is contained in:
parent
c2b3cf7ff8
commit
6065772fec
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue