Enable the download-cedarish to make solum easier to get started

This makes the install instructions easier.

Change-Id: Ia6ef0c6174e6e639268937d56e2996f59cece92b
This commit is contained in:
Angus Salkeld 2014-03-21 20:42:20 +10:00
parent 86cbf67440
commit c443e808fe
2 changed files with 16 additions and 14 deletions

View File

@ -11,6 +11,8 @@ if [ $? != 0 ]; then
exit 1
fi
sudo mkdir -p /opt/solum/cedarish
sudo chown $USER /opt/solum/cedarish
IMAGE_DIR=/opt/solum/cedarish/image
mkdir -p $IMAGE_DIR
@ -30,14 +32,14 @@ fi
echo image: $IMAGE_DIR/cedarish.qcow2
#glance image-list 2> /dev/null > /dev/null
#if [[ $? == 0 ]]; then
# echo it would appear I know how to talk to glance
# echo therefore I will attempt to upload your image
# glance image-delete cedarish
# glance image-create --name cedarish --disk-format qcow2 --container-format bare --file $IMAGE_DIR/cedarish.qcow2
#else
# echo I cannot talk to glance your image is here: $IMAGE_DIR/$ID.qcow2
# echo Try this: glance image-create --name cedarish --disk-format qcow2 --container-format bare --file $IMAGE_DIR/cedarish.qcow2
# exit 1
#fi
glance image-list 2> /dev/null > /dev/null
if [[ $? == 0 ]]; then
echo it would appear I know how to talk to glance
echo therefore I will attempt to upload your image
glance image-delete cedarish
glance image-create --name cedarish --disk-format qcow2 --container-format bare --file $IMAGE_DIR/cedarish.qcow2
else
echo I cannot talk to glance your image is here: $IMAGE_DIR/$ID.qcow2
echo Try this: glance image-create --name cedarish --disk-format qcow2 --container-format bare --file $IMAGE_DIR/cedarish.qcow2
exit 1
fi

View File

@ -3,9 +3,9 @@
DIR=$(dirname $0)
# uncomment this if we want to auto build/download cedarish vm
#ACTION=$1
#shift
#: ${ACTION:='download-cedarish'}
ACTION=$1
shift
#${ACTION:='download-cedarish'}
# great security practice in 3 ... 2 ... 1 ...
# install docker