Skip to content

Instantly share code, notes, and snippets.

@fearoffish
Last active August 29, 2015 14:16
Show Gist options
  • Save fearoffish/0f8495e1ff2278ed9944 to your computer and use it in GitHub Desktop.
Save fearoffish/0f8495e1ff2278ed9944 to your computer and use it in GitHub Desktop.
Set up a bosh jump box (inception) on Amazon Linux
#!/bin/bash
sudo yum install -y git gcc make readline-devel openssl-devel vim emacs libffi-devel make glibc-devel gcc patch libxslt-devel libxml2-devel mysql mysql-devel postgresql-devel dnsmasq autoconf automake bison gcc-c++ libyaml-devel zlib-devel sqlite-devel cmake libssh2-devel
echo 'GIT_PROMPT_THEME=Solarized' >> ~/.bashrc
echo 'source ~/.bash-git-prompt/gitprompt.sh' >> ~/.bashrc
git clone git://github.com/sstephenson/ruby-build.git /tmp/ruby-build
cd /tmp/ruby-build
./install.sh
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
echo 'gem: --no-document' > ~/.gemrc
rbenv install 2.2.0 && rbenv global 2.2.0
gem install eventmachine --pre - -with-ssl-dir=/usr/bin/openssl
gem install bosh_cli_plugin_micro bosh-workspace
curl -L -O 'https://github.com/cloudfoundry-incubator/spiff/releases/download/v1.0.3/spiff_linux_amd64.zip'
unzip spiff_linux_amd64.zip
sudo mv spiff /usr/local/bin/
curl -L -o cf-linux-amd64.tgz 'https://cli.run.pivotal.io/edge?arch=linux64&source=github'
tar zxvf cf-linux-amd64.tgz
rm cf-linux-amd64.tgz
sudo mv cf /usr/local/bin/
@fearoffish
Copy link
Author

source <(curl -s https://gist.githubusercontent.com/fearoffish/0f8495e1ff2278ed9944/raw/7b5c678ffac63c68e370e2528b1daaaa9b4e9a96/amazon_linux_inception.sh)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment