aboutsummaryrefslogtreecommitdiffstats
path: root/framework/scripts/installer/joid/onos/cloud-sh-onos/glance.sh
diff options
context:
space:
mode:
authorCNlukai <lukai1@huawei.com>2016-01-12 17:22:10 +0800
committerCNlukai <lukai1@huawei.com>2016-01-12 17:23:14 +0800
commit9cedf8ac5dfbd49f1e58d3d0ca6ce7981509aed1 (patch)
tree713e7066711899443e21dcbc9e62b164d0afe8d6 /framework/scripts/installer/joid/onos/cloud-sh-onos/glance.sh
parenta94e0159d98d511be4b4da9afe077e1188cc6ce6 (diff)
ONOSFW-157
Add script of installer integration onos Change-Id: Ib78b6ce38eae80f553550ad1738e678aed3950f6 Signed-off-by: CNlukai <lukai1@huawei.com>
Diffstat (limited to 'framework/scripts/installer/joid/onos/cloud-sh-onos/glance.sh')
-rw-r--r--framework/scripts/installer/joid/onos/cloud-sh-onos/glance.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/scripts/installer/joid/onos/cloud-sh-onos/glance.sh b/framework/scripts/installer/joid/onos/cloud-sh-onos/glance.sh
new file mode 100644
index 00000000..467932ff
--- /dev/null
+++ b/framework/scripts/installer/joid/onos/cloud-sh-onos/glance.sh
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+. ~/admin-openrc
+
+wget http://cloud-images.ubuntu.com/trusty/current/MD5SUMS
+
+wget http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img
+glance image-create --name ubuntu-trusty-daily --disk-format qcow2 --container-format bare --owner admin --file trusty-server-cloudimg-amd64-disk1.img --checksum $(grep trusty-server-cloudimg-amd64-disk1.img MD5SUMS | cut -d " " -f 1) --is-public True