Giter Site home page Giter Site logo

ec2_amitools's Introduction

ec2_amitools

Install Amazon's EC2 AMI Tools as gem.

Origins

Source files for this library were taken from here: http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools-1.5.7.zip More info about original installation from AWS: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-up-ami-tools.html

Dependencies

  • curl
  • gzip
  • mkfifo
  • openssl
  • rsync
  • Ruby 2.0.0 or later
  • tee

For more info take a look at: https://github.com/sfate/ec2_amitools/blob/master/readme-install.txt

Installation

Add this line to your application's Gemfile:

gem 'ec2_amitools'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ec2_amitools

Usage

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-tools-commands.html

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sfate/ec2_amitools

License - Amazon Software License

http://github.com/sfate/ec2_amitools/blob/master/license.txt

ec2_amitools's People

Contributors

sfate avatar

Watchers

 avatar  avatar

ec2_amitools's Issues

[CentOS 7] No support for grub2..

RIght now ec2-ami-tools ami creation is based on grub util.
However it doesn't support grub2, which means that for new systems it's not possible to process with (e.g. centos 7).

[CentOS 7] Failed to mount image

For some reason on CentOS 7 it's not possible to mount image as xfs filesystem.

Here is backtrace:

/usr/local/lib/ruby/gems/2.4.0/gems/ec2_amitools-1.0.2/lib/ec2/platform/linux/image.rb:793:in `execute': Failed to execute: 'mount -t xfs /dev/mapper/hda1 /mnt/img-mnt' (FatalError)
 from /usr/local/lib/ruby/gems/2.4.0/gems/ec2_amitools-1.0.2/lib/ec2/platform/linux/image.rb:670:in `mount_image'
 from /usr/local/lib/ruby/gems/2.4.0/gems/ec2_amitools-1.0.2/lib/ec2/platform/linux/image.rb:174:in `make'
 from /usr/local/lib/ruby/gems/2.4.0/gems/ec2_amitools-1.0.2/lib/ec2/amitools/bundlevol.rb:184:in `bundle_vol'
 from /usr/local/lib/ruby/gems/2.4.0/gems/ec2_amitools-1.0.2/lib/ec2/amitools/bundlevol.rb:231:in `main'
 from /usr/local/lib/ruby/gems/2.4.0/gems/ec2_amitools-1.0.2/lib/ec2/amitools/tool_base.rb:201:in `run'
 from /usr/local/lib/ruby/gems/2.4.0/gems/ec2_amitools-1.0.2/lib/ec2/amitools/bundlevol.rb:239:in `<top (required)>'
 from /usr/local/lib/ruby/gems/2.4.0/gems/ec2_amitools-1.0.2/bin/ec2-bundle-vol:6:in `load'
 from /usr/local/lib/ruby/gems/2.4.0/gems/ec2_amitools-1.0.2/bin/ec2-bundle-vol:6:in `<top (required)>'
 from /bin/ec2-bundle-vol:22:in `load'
 from /bin/ec2-bundle-vol:22:in `<main>'

Related topics:
https://www.centos.org/forums/viewtopic.php?t=51542

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.