Last active
August 29, 2015 14:16
-
-
Save fearoffish/0f8495e1ff2278ed9944 to your computer and use it in GitHub Desktop.
Set up a bosh jump box (inception) on Amazon Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/ |
Author
fearoffish
commented
Mar 11, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment