====== Performance Appraisal - Software Installation (In progress) ======
===== Software Versions =====
ruby : 2.2.3
rubygems : 2.4.5
rails : 4.1.8
===== Setup Instructions =====
yum install epel-release -y
yum update -y
yum groupinstall "Development Tools" -y
yum groupinstall "Additional Development" -y
yum install gcc gcc-c++ make wget mutt git libtool libxml libxml-devel libxslt libxslt-devel subversion curl-devel java-1.7.0-openjdk java-1.7.0-openjdk-devel git-core openssl-devel -y
yum install ImageMagick ImageMagick-devel -y
yum purge postfix -y
yum install pcre-devel wget git curl curl-devel subversion mutt sendmail -y
##add appuser
adduser expdev01
vi /etc/sudoers
expdev01 ALL=(ALL) NOPASSWD: ALL ##add this line
su - expdev01
==== 1) Ruby & Rubygems ====
=== Using rbenv ===
a) Install rbenv
# Check out rbenv into ~/.rbenv.
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
# Add ~/.rbenv/bin to your $PATH for access to the rbenv command-line utility.
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
# Ubuntu Desktop note: Modify your ~/.bashrc instead of ~/.bash_profile.
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
# Restart your shell so that PATH changes take effect. (Opening a new terminal tab will usually do it.)
# Now check if rbenv was set up -
type rbenv
#=> "rbenv is a function"
b) Install rbenv-build
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
c) Install ruby 2.2.3
rbenv install 2.2.3
d) Update rubygems to 2.4.5
rbenv global 2.2.3 #make this version of ruby global
rbenv rehash #reload shims
gem -v #check the gem version (Most likely this will be 2.4.5.1)
gem install rubygems-update
update_rubygems
gem update --system -v 2.4.5
mkdir -p ~/.rbenv/plugins
git clone git://github.com/dcarley/rbenv-sudo.git ~/.rbenv/plugins/rbenv-sudo
=== Using rvm ===
TO DO
==== 2) Rails & other gems ====
a) Install bundler
gem install capistrano-bundler -v '1.1.4'
gem install capistrano-ext -v '1.2.1'
gem install capistrano-log_with_awesome -v '0.0.2'
gem install capistrano-passenger -v '0.2.0'
gem install capistrano-rails -v '1.1.6'
gem install capistrano-rbenv -v '2.0.4'
gem install capistrano-stats -v '1.1.1'
gem install god -v '0.13.7'
gem install highline -v '1.7.8'
gem install i18n -v '0.7.0'
gem install io-console -v '0.4.3'
gem install json -v '1.8.1'
gem install minitest -v '5.4.3'
gem install net-scp -v '1.2.1'
gem install net-ssh -v '3.0.2'
gem install passenger -v '5.0.23'
gem install power_assert -v '0.2.2'
gem install psych -v '2.0.8'
gem install rack -v '1.6.4'
gem install rake -v '10.4.2'
gem install rdoc -v '4.2.0'
gem install specific_install -v '0.3.1'
gem install sshkit -v '1.8.1'
gem install test-unit -v '3.0.8'
rbenv sudo passenger-install-nginx-module
b) Rails & others
Will be installed through wget "https://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/15.07/ejabberd-15.07-linux-x86_64-installer.run"
chmod 751 ejabberd-15.07-linux-x86_64-installer.run
./ejabberd-15.07-linux-x86_64-installer.run
Do you accept this license? [y/n]: y
Installation Directory [/opt/ejabberd-15.07]:
ejabberd server domain [devtalent02.exphosted.com]: devtalent01.exphosted.com
Administrator username [admin]:
Administrator password [********] :
Retype password [********] :
Cluster [y/N]: n
Do you want to continue? [Y/n]: y
----------------------------------------------------------------------------
Please wait while Setup installs ejabberd on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
cd /opt/ejabberd-15.07/bin
cp ejabberd.init /etc/init.d/ejabberd
/etc/init.d/ejabberd start from the code base.
===== 3) Ejabber installation =====
===== 4) Setup Solr =====