Created
April 15, 2012 03:35
-
-
Save amitsaha/2389752 to your computer and use it in GitHub Desktop.
Script for creating a sample virtual appliance using BoxGrinder libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ruby | |
# Script for creating a sample virtual appliance using | |
# BoxGrinder libraries. | |
# See: http://echorand.me/2012/03/18/parallel-computing-test-bed-using-virtual-appliances/ | |
require 'rubygems' | |
require 'boxgrinder-build' | |
log = BoxGrinder::LogHelper.new(:level => :trace) | |
log.info "Building appliance F16-node" | |
begin | |
BoxGrinder::Appliance.new('f16-node.appl', BoxGrinder::Config.new(:platform => :virtualbox), :log => log).create | |
log.info "Done!" | |
rescue => e | |
log.error e | |
log.error "Appliance build failed!" | |
end |
For details on the BoxGrinder library usage, see: http://boxgrinder.org/blog/2011/01/26/boxgrinder-build-0-8-0-features-using-boxgrinder-as-a-library/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The .appl file used here can be obtained from: http://echorand.me/2012/03/18/parallel-computing-test-bed-using-virtual-appliances/