Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BGBUILD-55: Use euca2ools instead of ec2-ami-tools

  • Loading branch information...
commit 91b7cb13bb0940446f59fee3a8606fe1b5446684 1 parent d76a972
Marek Goldmann goldmann authored
1  delivery/s3/CHANGELOG
View
@@ -1,6 +1,7 @@
v0.0.5
+* [BGBUILD-55] Use euca2ools instead of ec2-ami-tools
* [BGBUILD-115] PackageHelper should take directory instead of file list to package
v0.0.4
7 delivery/s3/lib/boxgrinder-build-s3-delivery-plugin/s3-plugin.rb
View
@@ -162,8 +162,7 @@ def bundle_image( deliverables )
aki = "--kernel #{KERNELS['us_east'][@appliance_config.os.name][@appliance_config.os.version][@appliance_config.hardware.base_arch][:aki]}"
ari = KERNELS['us_east'][@appliance_config.os.name][@appliance_config.os.version][@appliance_config.hardware.base_arch][:ari].nil? ? "" : "--ramdisk #{KERNELS['us_east'][@appliance_config.os.name][@appliance_config.os.version][@appliance_config.hardware.base_arch][:ari]}"
- @exec_helper.execute("ec2-bundle-image -i #{deliverables[:disk]} #{aki} #{ari} -c #{@plugin_config['cert_file']} -k #{@plugin_config['key_file']} -u #{@plugin_config['account_number']} -r #{@appliance_config.hardware.base_arch} -d #{@ami_build_dir}")
- #@exec_helper.execute("euca-bundle-image --ec2cert #{File.dirname(__FILE__)}/src/cert-ec2.pem -i #{deliverables[:disk]} #{aki} #{ari} -c #{@plugin_config['cert_file']} -k #{@plugin_config['key_file']} -u #{@plugin_config['account_number']} -r #{@appliance_config.hardware.base_arch} -d #{@ami_build_dir}")
+ @exec_helper.execute("euca-bundle-image --ec2cert #{File.dirname(__FILE__)}/src/cert-ec2.pem -i #{deliverables[:disk]} #{aki} #{ari} -c #{@plugin_config['cert_file']} -k #{@plugin_config['key_file']} -u #{@plugin_config['account_number']} -r #{@appliance_config.hardware.base_arch} -d #{@ami_build_dir}")
@log.info "Bundling AMI finished."
end
@@ -188,8 +187,7 @@ def image_already_uploaded?
def upload_image
@log.info "Uploading #{@appliance_config.name} AMI to bucket '#{@plugin_config['bucket']}'..."
- @exec_helper.execute("ec2-upload-bundle -b #{ami_bucket_key(@appliance_config.name, @plugin_config['path'])} -m #{@ami_manifest} -a #{@plugin_config['access_key']} -s #{@plugin_config['secret_access_key']} --retry")
- #@exec_helper.execute("euca-upload-bundle -U #{@plugin_config['url']} -b #{ami_bucket_key(@appliance_config.name, @plugin_config['path'])} -m #{@ami_manifest} -a #{@plugin_config['access_key']} -s #{@plugin_config['secret_access_key']}")
+ @exec_helper.execute("euca-upload-bundle -U #{@plugin_config['url']} -b #{ami_bucket_key(@appliance_config.name, @plugin_config['path'])} -m #{@ami_manifest} -a #{@plugin_config['access_key']} -s #{@plugin_config['secret_access_key']}")
end
def register_image
@@ -197,7 +195,6 @@ def register_image
if info
@log.info "Image is registered under id: #{info.imageId}"
- return
else
info = @ec2.register_image(:image_location => bucket_manifest_key(@appliance_config.name, @plugin_config['path']))
@log.info "Image successfully registered under id: #{info.imageId}."
2  delivery/s3/rubygem-boxgrinder-build-s3-delivery-plugin.spec
View
@@ -13,7 +13,7 @@ URL: http://www.jboss.org/boxgrinder
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
Requires: ruby(abi) = %{rubyabi}
-Requires: euca2ools
+Requires: euca2ools >= 1.3.1-4
Requires: rubygem(boxgrinder-build)
Requires: rubygem(amazon-ec2)
Requires: rubygem(aws)
Please sign in to comment.
Something went wrong with that request. Please try again.