Skip to content

Commit e8f10b7

Browse files
committed
Devcloud build process fixes.
1 parent 6f833d2 commit e8f10b7

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

‎tools/devcloud/basebuild/Vagrantfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Vagrant::Config.run do |config|
2727

2828
# Uncomment this line to enable the console for debugging the
2929
# build process.
30-
config.vm.boot_mode = :gui
30+
#config.vm.boot_mode = :gui
3131

3232
# Setup port forwarding
3333
config.vm.forward_port 22, 2222

‎tools/devcloud/build_vagrant_basebox.sh‎

100644100755
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ export rvm_trust_rvmrcs_flag=1
3131
cd vagrant
3232
bundle install
3333
rake install
34-
cd ../veewee
34+
cd ~/builddevcloud/veewee
3535
bundle install
3636
rake install
37-
vagrant basebox define 'devcloudbase' 'ubuntu-12.04-server-i386'
37+
bundle exec vagrant basebox define 'devcloudbase' 'ubuntu-12.04-server-i386'
3838
wget --no-check-certificate -O ./definitions/devcloudbase/definition.rb https://git-wip-us.apache.org/repos/asf\?p\=incubator-cloudstack.git\;a\=blob_plain\;f\=tools/devcloud/veewee/definition.rb\;hb\=HEAD
3939
wget --no-check-certificate -O ./definitions/devcloudbase/postinstall.sh https://git-wip-us.apache.org/repos/asf\?p\=incubator-cloudstack.git\;a\=blob_plain\;f\=tools/devcloud/veewee/postinstall.sh\;hb\=HEAD
4040
wget --no-check-certificate -O ./definitions/devcloudbase/preseed.cfg https://git-wip-us.apache.org/repos/asf\?p\=incubator-cloudstack.git\;a\=blob_plain\;f\=tools/devcloud/veewee/preseed.cfg\;hb\=HEAD
41-
vagrant basebox build 'devcloudbase' -f -a -n
41+
bundle exec vagrant basebox build 'devcloudbase' -f -a -n
4242
# possibly use -r here too ^
43-
vagrant basebox export 'devcloudbase' -f
44-
vagrant basebox destroy 'devcloudbase' -f
45-
vagrant box add 'devcloudbase' 'devcloudbase.box' -f
43+
bundle exec vagrant basebox export 'devcloudbase' -f
44+
bundle exec vagrant basebox destroy 'devcloudbase' -f
45+
bundle exec vagrant box add 'devcloudbase' 'devcloudbase.box' -f
4646
rm -f devcloudbase.box
47-
cd ../vagrant
47+
cd ~/builddevcloud/vagrant
4848
mkdir devcloudbase
4949
cd devcloudbase
5050
mkdir puppet-devcloudinitial
@@ -62,5 +62,8 @@ wget --no-check-certificate -O puppet-devcloudinitial/manifests/init.pp "https:/
6262

6363
vagrant up
6464
vagrant halt
65-
cd ..
65+
vagrant package default --output ~/devcloud.box
66+
vagrant destroy -f
67+
vagrant box remove devcloudbase virtualbox
6668

69+
echo "Your new devcloud base box is stored in ~/devcloud.box"

‎tools/devcloud/devcloudbox/puppet-devcloud/manifests/init.pp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@
127127
enable => 'true',
128128
}
129129

130+
# TODO - it would be great to have an MD5 sum to check for each of these downloads, so that the files can be re-downloaded if they have been changed.
131+
130132
exec { '/usr/bin/wget http://download.cloud.com/templates/devcloud/defaulttemplates/1/dc68eb4c-228c-4a78-84fa-b80ae178fbfd.vhd -P /opt/storage/secondary/template/tmpl/1/1/':
131133
creates => '/opt/storage/secondary/template/tmpl/1/1/dc68eb4c-228c-4a78-84fa-b80ae178fbfd.vhd',
132134
require => File['/opt/storage/secondary/template/tmpl/1/1/'],

0 commit comments

Comments
 (0)