Skip to content

Instantly share code, notes, and snippets.

@kornypoet
Last active August 29, 2015 14:03
Show Gist options
  • Save kornypoet/0d04e0cc2b4d24820851 to your computer and use it in GitHub Desktop.
Save kornypoet/0d04e0cc2b4d24820851 to your computer and use it in GitHub Desktop.
# To prepare for AMI:
#
# Install epel repo
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# sudo rpm -ivh epel-release-6-8.noarch.rpm
# rm epel-release-6-8.noarch.rpm
#
# Install xfsprogs by hand
# wget http://mirror.centos.org/centos/6.5/os/x86_64/Packages/xfsprogs-3.1.1-14.el6.x86_64.rpm
# wget http://mirror.centos.org/centos/6.5/os/x86_64/Packages/xfsprogs-devel-3.1.1-14.el6.x86_64.rpm
# sudo yum install -y xfsprogs-*
# rm xfsprogs-*
#
# Install bare minimum ruby dependencies
# sudo yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison glibc
#
# Install Ruby
# wget http://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p545.tar.gz
# tar -xzvf ruby-1.9.3-p545.tar.gz
# cd ruby-1.9.3-p545
# ./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/lib64 --with-openssl-dir=/usr/include/openssl
# make
# sudo make install
# sudo rm -r ruby-*
#
# Install chef gems
# sudo gem install bundler chef --no-ri --no-rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment