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.

Difference between revisions of "ROCCI Server installation in the testing image"

From EGIWiki
Jump to navigation Jump to search
(Created page with "== Dummy Backend == Starting from the clean testing image (CENTOS) yum ruby-devel adduser rocci printf "\nrocci\tALL=NOPASSWD: /bin/bash,/usr/bin/gem,/usr/bin/bundle,/usr/...")
 
 
(7 intermediate revisions by the same user not shown)
Line 5: Line 5:
  yum ruby-devel
  yum ruby-devel
   
   
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
  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
  su - rocci
   
   
git clone git://github.com/gwdg/rOCCI-server.git
  cd rOCCI-server
  cd rOCCI-server
  git checkout 0.5.1
  git checkout 0.5.1
Line 20: Line 18:
  sudo usermod -a -G rvm rocci
  sudo usermod -a -G rvm rocci
  rvm requirements
  rvm requirements
  rvm install ruby-`ruby -v | awk '{ print $2 }' | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+\'`
  rvm install ruby-`ruby -v | awk '{ print $2 }' | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+'`
  rvm --rvmrc --create ruby-`ruby -v | awk '{ print $2 }' | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+'`@rOCCI-server
  rvm --rvmrc --create ruby-`ruby -v | awk '{ print $2 }' | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+'`@rOCCI-server
  echo export rvm_trust_rvmrcs_flag=1 >> .rvmrc  
  echo export rvm_trust_rvmrcs_flag=1 >> .rvmrc  
Line 30: Line 28:
  sudo bundle exec passenger-install-apache2-module
  sudo bundle exec passenger-install-apache2-module
  sudo /etc/init.d/httpd restart
  sudo /etc/init.d/httpd restart
[[rOCCICMFDocs|Back to Documentation page]]
[[VT_OCCI_for_CMF|Back to Mini-Project page]]

Latest revision as of 16:25, 30 April 2013

Dummy Backend

Starting from the clean testing image (CENTOS)

yum ruby-devel

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

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 }' | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+'`
rvm --rvmrc --create ruby-`ruby -v | awk '{ print $2 }' | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+'`@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