summaryrefslogtreecommitdiffstats
path: root/ci/opencontrail/cloud-sh-contrail/glance.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/opencontrail/cloud-sh-contrail/glance.sh')
-rwxr-xr-xci/opencontrail/cloud-sh-contrail/glance.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/ci/opencontrail/cloud-sh-contrail/glance.sh b/ci/opencontrail/cloud-sh-contrail/glance.sh
new file mode 100755
index 00000000..467932ff
--- /dev/null
+++ b/ci/opencontrail/cloud-sh-contrail/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