summaryrefslogtreecommitdiffstats
path: root/ci/odl/juju-deployer/scripts/glance.sh
blob: 82c84bbe1b0d9136da5bfb167771b49e4619087f (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh -e

. ~/admin-openrc

wget -P /tmp/images http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img
wget -P /tmp/images http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img
glance image-create --name "cirros-0.3.3-x86_64" --file /tmp/images/cirros-0.3.3-x86_64-disk.img --disk-format qcow2 --container-format bare --is-public True --owner admin --progress
glance image-create --name "ubuntu-trusty-daily" --file /tmp/images/trusty-server-cloudimg-amd64-disk1.img --disk-format qcow2 --container-format bare --is-public True --owner admin --progress
rm -rf /tmp/images