Skip to content

intuit-archive/omnibus-s3cmd

Repository files navigation

omnibus-s3cmd

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

This contains the skeleton for building Omnibus s3cmd package.

Build

To build the s3cmd RPM on the local system:

  • The environment variables for version and iteration must be set, the version will correspond to gem version being pulled down and will result in the package version being created. Iteration only corresponds to the rpm version iteration.

      export version=1.5.0-alpha3
      export iteration=1
      export md5_checksum=3aa1a6af0bc9ae46e39c2fd47f5a73f1
    
      yum install -y --quiet intu-ruby git s3cmd rpm-build  python-setuptools
      gem install bundler -v 1.2.2 --no-ri --no-rdoc --quiet
      git clone --quiet https://github.com/intuit/omnibus-s3cmd.git /var/tmp/omnibus-s3cmd
      cd /var/tmp/omnibus-s3cmd
      bundle install --quiet --binstubs
      bin/omnibus build project s3cmd
    

Continuous Integration

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

  • Clone omnibus-s3cmd 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

Intuit packaging repo for s3cmd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published