From f9f10e84a7e334ffd07519d0424b93a442643464 Mon Sep 17 00:00:00 2001 From: mbasnight Date: Wed, 22 Feb 2012 22:20:35 -0600 Subject: [PATCH] Adding the beginnings of ubuntu bootstrap --- development/bootstrap.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 development/bootstrap.sh diff --git a/development/bootstrap.sh b/development/bootstrap.sh new file mode 100644 index 0000000000..b28cda229e --- /dev/null +++ b/development/bootstrap.sh @@ -0,0 +1,28 @@ +# At this point this script is manual. We will need to work this in to a more automated script. + +pkg_install () { + echo Installing $@... + sudo -E DEBIAN_FRONTEND=noninteractive $HTTP_PROXY apt-get -y --allow-unauthenticated --force-yes install $@ +} + +pkg_install debootstrap schroot +echo ' +[oneiric] +description=Ubuntu oneiric +location=/var/chroot/oneiric +priority=3 +users= +groups=sbuild +root-groups=root' | sudo tee -a /etc/schroot/schroot.conf + +sudo debootstrap --variant=buildd oneiric /var/chroot/oneiric http://us.archive.ubuntu.com/ubuntu/ +sudo chroot /var/chroot/oneiric +apt-get update +DEBIAN_FRONTEND=noninteractive apt-get -y --allow-unauthenticated --force-yes install mysql-server +exit + +#now that u are out of the vm, lets tar it up +cd /var/chroot/oneiric/ +sudo tar czvf ../onieric_mysql.tar.gz . + +glance add -A $REDDWARF_TOKEN name="ubuntu-mysql.img" is_public=true type=raw < onieric_mysql.tar.gz