Alert.png The wiki is deprecated and due to be decommissioned by the end of September 2022.
The content is being migrated to other supports, new updates will be ignored and lost.
If needed you can get in touch with EGI SDIS team using operations @ egi.eu.

ROCCI Server installation for SL6

From EGIWiki
Revision as of 16:23, 30 April 2013 by Zsustr (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Dummy Backend

Starting from a clean SL6 machine

Known to work in SL6.4

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install -y ruby rubygems ruby-devel gcc libxml2-devel libxslt-devel gcc-c++ expat-devel git readline-devel libyaml-devel libffi-devel openssl-devel autoconf automake libtool bison curl-devel httpd httpd-devel sed awk patch make

adduser rocci
printf "\nrocci\tALL=NOPASSWD: /bin/bash,/usr/bin/gem,/usr/bin/bundle,/usr/sbin/usermod,/usr/local/rvm/bin/rvm,/etc/init.d/httpd\n\n" >> /etc/sudoers
su - rocci

git clone git://github.com/gwdg/rOCCI-server.git
cd rOCCI-server
git checkout 0.5.1
cp etc/backend/dummy/dummy.json etc/backend/default.json
sed -i "s/rocci.info/`hostname -f`/" etc/backend/default.json
sudo gem install bundler
sudo bundle install

curl -L https://get.rvm.io | sudo bash -s stable
sudo usermod -a -G rvm rocci
rvm requirements
rvm install ruby-`ruby -v | awk '{ print $2 }'`
rvm --rvmrc --create ruby-`ruby -v | awk '{ print $2 }'`@rOCCI-server
echo export rvm_trust_rvmrcs_flag=1 >> .rvmrc 
cd ..
cd rOCCI-server

bundle install
bundle exec passenger start
sudo bundle exec passenger-install-apache2-module
sudo /etc/init.d/httpd restart

Back to Documentation page

Back to Mini-Project page