Created
September 26, 2013 06:04
-
-
Save yudai/6710397 to your computer and use it in GitHub Desktop.
For building stemcells locally. Put this rake file as `bosh-dev/lib/bosh/dev/tasks/local.rake`, and run `sudo CANDIDATE_BUILD_NUMBER=3939 bundle exec rake "local:build_microbosh[openstack,ubuntu]"`.
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
namespace :local do | |
desc 'build MicroBOSH Stemcell locally' | |
task :build_microbosh, [:infrastructure_name, :operating_system_name] do |_, args| | |
require 'bosh/dev/build' | |
require 'bosh/dev/micro_bosh_release' | |
require 'bosh/dev/stemcell_builder' | |
build = Bosh::Dev::Build.candidate | |
release_tarball_path = Bosh::Dev::MicroBoshRelease.new.tarball | |
Bosh::Stemcell::BuilderCommand.new( | |
infrastructure_name: args[:infrastructure_name], | |
operating_system_name: args[:operating_system_name], | |
version: ENV['CANDIDATE_BUILD_NUMBER'], | |
release_tarball_path: release_tarball_path, | |
).build | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment