Skip to content

intuit-archive/omnibus-aws_cli

Repository files navigation

omnibus-aws_cli

!!! This project has been deprecated. We recommend you fork it or look for an alternative solution. !!!

This contains the skeleton for building Omnibus aws_cli package.

Build

To build the aws_cli RPM on the local system:

yum install -y --quiet intu-ruby git aws_cli rpm-build  python-setuptools
gem install bundler -v 1.2.2 --no-ri --no-rdoc --quiet
git clone --quiet https://github.com/intuit/omnibus-aws_cli.git /var/tmp/omnibus-aws_cli
cd /var/tmp/omnibus-aws_cli
bundle install --quiet --binstubs
bin/omnibus build project aws_cli

Updating the RPM to a new iteration

  • Update the ./script/ci_setup script to adjust the 'version' and 'itertion' as needed
  • version = the version of aws-cli you are building
  • iteration = the version of the RPM we have produced

Continuous Integration

omnibus-aws_cli leverages knife-ec2 to create an instance which is used to build the RPM during CI. Over view of CI:

  • Clone omnibus-aws_cli on CI instance and execute ./scripts/ci_setup
  • The ci_setup script uses knife-ec2 to create an ec2 instance
  • The instance is bootstraped using the omnibus.rb bootstrap script.
  • The git repo is cloned on the newly created build box.
  • The necessary omnibus tools are installed.
  • The RPM is built via omnibus.
  • The RPM is uploaded to S3. Any RPMs with the same name, version and build iteration are replaced.
  • The ci_setup script executes cleanup.rb to destroy any build boxes.

Requirements

  • AWS account with access to upload to S3 bucket and manage EC2 instances.
  • Credentials set as AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID
  • Ruby version 1.9.2 or higher
  • Access to the AMI listed in the file script/knife/config/knife.rb

About

Omnibus build for the AWS universal CLI (https://github.com/aws/aws-cli)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published