Last active
December 16, 2015 07:59
-
-
Save robinmonjo/5402675 to your computer and use it in GitHub Desktop.
Script used to provision a lxc container on productions servers
This file contains 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
set -e | |
sudo apt-get install -y curl build-essential bison libreadline6 libreadline6-dev zlib1g zlib1g-dev libyaml-dev libxml2-dev libxslt-dev autoconf | |
#installing ruby | |
wget -q http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz | |
tar xf ruby-1.9.3-p0.tar.gz | |
cd ruby-1.9.3-p0 | |
./configure --disable-install-doc | |
make | |
sudo make install | |
cd .. | |
rm -rf ruby-1.9.3-p0* | |
sudo gem install foreman | |
#installing nodejs and psdock | |
sudo apt-get install -y nodejs npm | |
npm config set registry http://registry.npmjs.org/ | |
sudo npm install -g ps-dock | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment