Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 35 lines (24 sloc) 897 Bytes
#!/usr/bin/env ruby
$:.unshift(File.expand_path("../../lib", __FILE__))
# this is required to run the compiler from the source tree
# when run as part of the vmbuilder, the agent lib is copied
# into the micro lib
$:.unshift(File.expand_path("../../../agent/lib", __FILE__))
require 'micro/compiler'
ENV['PATH'] = "/var/vcap/bosh/bin:#{ENV['PATH']}"
def usage
# should output this in red to make it easier to spot in among the
# gazillion messages in the build log
STDERR.puts "usage: #{$0} <deployment manifest> <release tarball>"
exit 1
usage unless ARGV.size == 2
manifest = File.expand_path(ARGV[0])
tarball = File.expand_path(ARGV[1])
usage unless File.exist?(manifest) && File.exist?(tarball)
opts = {
"logging" => {"level" => "DEBUG"},
"base_dir" => "/var/vcap",
"platform_name" => "microcloud"
ngc =, tarball)
Jump to Line
Something went wrong with that request. Please try again.