Build quantal 64 box with new json metadata
This commit is contained in:
parent
7f7e3d8a51
commit
3a2ffbd06f
2 changed files with 24 additions and 0 deletions
9
boxes/quantal-64/metadata.json
Normal file
9
boxes/quantal-64/metadata.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"provider": "lxc",
|
||||
"vagrant-lxc-version": "0.0.1",
|
||||
|
||||
"template-opts": {
|
||||
"--arch": "x86_64",
|
||||
"--release": "quantal"
|
||||
}
|
||||
}
|
|
@ -18,5 +18,20 @@ namespace :boxes do
|
|||
sh 'rm -f output/ubuntu-cloud.box'
|
||||
sh 'cd boxes/ubuntu-cloud && tar -czf ../output/ubuntu-cloud.box ./*'
|
||||
end
|
||||
|
||||
desc 'Build Ubuntu Quantal x64 Vagrant LXC box'
|
||||
task 'quantal-64' do
|
||||
unless File.exists?('/var/cache/lxc/quantal/rootfs-amd64')
|
||||
puts "Right now you need to run `lxc-create` with the right arguments to build debootstrap's cache " +
|
||||
"prior to building the box.\n" +
|
||||
"Please contact me at the mail you'll find at https://github.com/fgrehm/vagrant-lxc/issues\n" +
|
||||
"if you want to find out how to get this going."
|
||||
exit 1
|
||||
end
|
||||
|
||||
sh 'mkdir -p boxes/output'
|
||||
sh 'rm -f output/lxc-quantal-64.box'
|
||||
sh 'cd boxes/quantal-64 && tar -czf ../output/lxc-quantal-64.box ./*'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue