Skip to content

Instantly share code, notes, and snippets.

@yudai
Created September 26, 2013 06:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yudai/6710397 to your computer and use it in GitHub Desktop.
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]"`.
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