Author: tlinnet Date: Sat Oct 1 09:52:33 2016 New Revision: 28237 URL: http://svn.gna.org/viewcvs/relax?rev=28237&view=rev Log: Moved deploy scripts.
There would probably have to be a deploy script for each system. Added: trunk/devel_scripts/deploy_scripts/ trunk/devel_scripts/deploy_scripts/deploy_google_computing_redhat_6_86_x64.sh - copied unchanged from r28236, trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64.sh trunk/devel_scripts/deploy_scripts/deploy_google_computing_redhat_6_86_x64_upgrade_python.sh - copied unchanged from r28236, trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64_upgrade_python.sh trunk/devel_scripts/deploy_scripts/deploy_google_computing_ubuntu.sh - copied unchanged from r28236, trunk/devel_scripts/deploy_google_computing_ubuntu.sh Removed: trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64.sh trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64_upgrade_python.sh trunk/devel_scripts/deploy_google_computing_ubuntu.sh Removed: trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64.sh URL: http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64.sh?rev=28236&view=auto ============================================================================== --- trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64.sh (original) +++ trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64.sh (removed) @@ -1,139 +0,0 @@ -#!/bin/bash -# -*- coding: UTF-8 -*- -# Script for deploying relax on Google Cloud Computing GCC - -# Install yum packages -function doyum { - # 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 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. Add the EPEL repository. - 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 { - # Install python pip - sudo easy_install pip - 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 { - doyum - dopip - getversions - dobin - dopiplocal - getlatest - gettrunk - checkinstallation -} - -echo "After running 'installandcheck', you should restart the terminal or logout and login again." - -# Do functions -#installandcheck - Removed: trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64_upgrade_python.sh URL: http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64_upgrade_python.sh?rev=28236&view=auto ============================================================================== --- trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64_upgrade_python.sh (original) +++ trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64_upgrade_python.sh (removed) @@ -1,139 +0,0 @@ -#!/bin/bash -# -*- coding: UTF-8 -*- -# Script for deploying relax on Google Cloud Computing GCC - -# Install yum packages -function doyum { - # 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 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. Add the EPEL repository. - 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 { - # Install python pip - sudo easy_install pip - 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 { - doyum - dopip - getversions - dobin - dopiplocal - getlatest - gettrunk - checkinstallation -} - -echo "After running 'installandcheck', you should restart the terminal or logout and login again." - -# Do functions -#installandcheck - Removed: trunk/devel_scripts/deploy_google_computing_ubuntu.sh URL: http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/deploy_google_computing_ubuntu.sh?rev=28236&view=auto ============================================================================== --- trunk/devel_scripts/deploy_google_computing_ubuntu.sh (original) +++ trunk/devel_scripts/deploy_google_computing_ubuntu.sh (removed) @@ -1,132 +0,0 @@ -#!/bin/bash -# -*- coding: UTF-8 -*- -# Script for deploying relax on Google Cloud Computing GCC - -# Install apt-get packages -function doaptget { - # Install lynx - sudo apt-get -y install lynx - - # Install for server management - sudo apt-get -y install htop - - # Install for running relax in multiple CPU mode - sudo apt-get -y install openmpi-bin openmpi-doc libopenmpi-dev - - # Install dependencies - sudo apt-get -y install python-numpy - sudo apt-get -y install python-scipy python-matplotlib python-pip - - # For trunk checkout and graphs - sudo apt-get -y install subversion scons grace -} - -# Install python packages -function dopip { - sudo pip install mpi4py - 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 - echo '' >> $HOME/.bashrc - echo 'export PATH=$PATH:$HOME/bin' >> $HOME/.bashrc - source $HOME/.bashrc -} - -# 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 -} - -# 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