Skip to content

Instantly share code, notes, and snippets.

@robinmonjo
Last active December 16, 2015 07:59
Show Gist options
  • Save robinmonjo/5402675 to your computer and use it in GitHub Desktop.
Save robinmonjo/5402675 to your computer and use it in GitHub Desktop.
Script used to provision a lxc container on productions servers
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