Author: tlinnet Date: Sat Oct 1 00:59:50 2016 New Revision: 28233 URL: http://svn.gna.org/viewcvs/relax?rev=28233&view=rev Log: Make new filename for script.
Added: trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64.sh - copied unchanged from r28232, trunk/devel_scripts/deploy_google_computing_redhat.sh Removed: trunk/devel_scripts/deploy_google_computing_redhat.sh Removed: trunk/devel_scripts/deploy_google_computing_redhat.sh URL: http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/deploy_google_computing_redhat.sh?rev=28232&view=auto ============================================================================== --- trunk/devel_scripts/deploy_google_computing_redhat.sh (original) +++ trunk/devel_scripts/deploy_google_computing_redhat.sh (removed) @@ -1,140 +0,0 @@ -#!/bin/bash -# -*- coding: UTF-8 -*- -# Script for deploying relax on Google Cloud Computing GCC - -# Install yum packages -function doaptget { - # Install lynx - sudo yum -y install lynx - - # Install for running relax in multiple CPU mode - sudo yum -y install openmpi-devel - echo "module load openmpi-1.10-x86_64" >> $HOME/.bash_profile - #bash --init-file <(echo 'mpirun --report-bindings -np 2 echo "hello world"; exit') - - # mpi4py - sudo yum -y install mpi4py-openmpi - - # Install python pip - sudo easy_install pip - - # Install dependencies - sudo yum -y install numpy - sudo yum -y install scipy python-matplotlib - - # For trunk checkout and graphs - sudo yum -y install subversion scons - - # Install xmgrace - wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm - sudo rpm -ivh epel-release-6-8.noarch.rpm - sudo yum -y install grace -} - -# Install python packages -function dopip { - sudo pip install epydoc -} - -function getversions { - # From the wiki, get current versions - VMIN=`lynx -dump "http://wiki.nmr-relax.com/Template:Current_version_minfx" | grep -A 10 "Template:Current version minfx" | grep -B 1 "Retrieved from" | head -n 1 | tr -d '[[:space:]]'` - VBMR=`lynx -dump "http://wiki.nmr-relax.com/Template:Current_version_bmrblib" | grep -A 10 "Template:Current version bmrblib" | grep -B 1 "Retrieved from" | head -n 1 | tr -d '[[:space:]]'` - VMPI=`lynx -dump "http://wiki.nmr-relax.com/Template:Current_version_mpi4py" | grep -A 10 "Template:Current version mpi4py" | grep -B 1 "Retrieved from" | head -n 1 | tr -d '[[:space:]]'` - VREL=`lynx -dump "http://wiki.nmr-relax.com/Template:Current_version_relax" | grep -A 10 "Template:Current version relax" | grep -B 1 "Retrieved from" | head -n 1 | tr -d '[[:space:]]'` - - echo "Current version of minfx is: $VMIN" - echo "Current version of bmrblib is: $VBMR" - echo "Current version of mpi4py is: $VMPI" - echo "Current version of relax is: $VREL" -} - -# Make home bin -function dobin { - mkdir -p $HOME/bin -} - -# Do local istallations of pip -function dopiplocal { - # Install minfx - mkdir -p $HOME/Downloads - cd $HOME/Downloads - curl http://download.gna.org/minfx/minfx-$VMIN.tar.gz -o minfx-$VMIN.tar.gz - tar -xzf minfx-$VMIN.tar.gz - cd minfx-$VMIN - sudo pip install . - cd $HOME - - # Install bmrblib - mkdir -p $HOME/Downloads - cd $HOME/Downloads - curl http://download.gna.org/bmrblib/bmrblib-$VBMR.tar.gz -o bmrblib-$VBMR.tar.gz - tar -xzf bmrblib-$VBMR.tar.gz - cd bmrblib-$VBMR - sudo pip install . - cd $HOME -} - -# Get latest compiled version of relax -function getlatest { - cd $HOME - if [ ! -d "$HOME/relax-$VREL" ]; then - curl http://download.gna.org/relax/relax-$VREL.GNU-Linux.x86_64.tar.bz2 -o relax-$VREL.GNU-Linux.x86_64.tar.bz2 - tar xvjf relax-$VREL.GNU-Linux.x86_64.tar.bz2 - rm relax-$VREL.GNU-Linux.x86_64.tar.bz2 - fi - if [ ! \( -e "$HOME/bin/relax_$VREL" \) ]; then - ln -s $HOME/relax-$VREL/relax $HOME/bin/relax_$VREL - fi - cd $HOME -} - -# Get the trunk of relax with subversion -function gettrunk { - cd $HOME - if [ ! -d "$HOME/relax_trunk" ]; then - svn co svn://svn.gna.org/svn/relax/trunk relax_trunk - fi - cd $HOME/relax_trunk - svn up - scons - if [ ! \( -e "$HOME/bin/relax_trunk" \) ]; then - ln -s $HOME/relax_trunk/relax $HOME/bin/relax_trunk - fi - cd $HOME -} - -# Do some check of installation -function checkinstallation { - # Then check server - uptime - whoami - lscpu - mpirun --version - mpirun --report-bindings -np 4 echo "mpirun with 4 CPU echoes" - - # Print info - which relax_$VREL - relax_$VREL -i - - which relax_trunk - relax_trunk -i -} - -# Combine functions -function installandcheck { - doaptget - dopip - getversions - dobin - dopiplocal - getlatest - gettrunk - checkinstallation -} - -echo "You should restart the terminal or logout and login again" - -# Do functions -#installandcheck - _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-commits mailing list relax-commits@gna.org To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits