Skip to content

Instantly share code, notes, and snippets.

@pimpin
Forked from Wallsays/bootstrap.sh
Last active January 4, 2016 19:19
Show Gist options
  • Save pimpin/8666161 to your computer and use it in GitHub Desktop.
Save pimpin/8666161 to your computer and use it in GitHub Desktop.
Bootstrap Ruby & Chef Solo for Ubuntu 12.04 LTS 64 bit with the command `curl -l https://gist.github.com/pimpin/8666161/raw/f5e67635a68197f24b00f235bf6ea2caead608e6/chef_solo_bootstrap.sh | bash`
#!/usr/bin/env bash
sudo apt-get -y update
# Install dependencies
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev
# Install Ruby 1.9.3 from source
sudo wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
sudo tar -xvzf ruby-1.9.3-p194.tar.gz
cd ruby-1.9.3-p194/
sudo ./configure --prefix=/usr/local
# Make
sudo make install
sudo echo "gem: --no-ri --no-rdoc" >> ~/.gemrc
sudo gem install bundler
# Install Chef
sudo gem install chef ruby-shadow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment