diff --git a/openbis/source/bash/sprint_install.sh b/openbis/source/bash/sprint_install.sh new file mode 100755 index 0000000000000000000000000000000000000000..8422f672a8ffec77e1d59b42b2ede42fc7e49910 --- /dev/null +++ b/openbis/source/bash/sprint_install.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# This script assumes that you already are on the sprint server and must be run from that place +# in the home directory. + +if [ $# -lt 1 ]; then + echo "Usage: $0 <sprint number>" + exit 1 +fi + +VER=$1 +PREV_VER=$(( $VER - 1 )) +DB_SNAPSHOT=db_snapshots/sprint$PREV_VER-lims_productive.sql + +./sprint/openBIS-server/apache-tomcat/bin/shutdown.sh +./sprint/download-server/download-service.sh stop + +pg_dump -U postgres -O lims_productive > $DB_SNAPSHOT +tar -cf - $DB_SNAPSHOT | bzip2 >db_snapshots/sprint$PREV_VER-lims_productive.tar.bz2 +rm -f $DB_SNAPSHOT + +mv sprint-$PREV_VER old +rm sprint +mkdir sprint-$VER +ln -s sprint-$VER sprint +cd sprint +unzip ../openBIS-server-S$VER-* +cd openBIS-server +./install.sh $PWD ../../service.properties + +cd .. +unzip ../download-server-S$VER-* +cd download-server +cp ~/old/sprint-$PREV_VER/download-server/etc/service.properties etc/ +chmod 700 download-service.sh +export JAVA_HOME=/usr +./download-service.sh start +cd +mv *.zip tmp \ No newline at end of file diff --git a/openbis/source/bash/tag_and_build.sh b/openbis/source/bash/tag_and_build.sh new file mode 100755 index 0000000000000000000000000000000000000000..70fb00222564fcbea1629f7aae94ccebed97aac2 --- /dev/null +++ b/openbis/source/bash/tag_and_build.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# This script assumes that 'sprint-openbis' matches the sprint server (hostname: 'sprint-openbis.ethz.ch') +# configured in the SSH config file and that 'hal' matches hostname 'cisd-hal.ethz.ch'. + +if [ $# -lt 1 ]; then + echo "Usage: $0 <sprint number>" + exit 1 +fi + +TODAY=`date "+%Y-%m-%d"` +VER=$1 +FULL_VER=S$VER.0 + +svn checkout svn+ssh://source.systemsx.ch/repos/cisd/build_resources/trunk build_resources +cd build_resources +./tag_sprint.sh openbis S$VER +./build.sh openbis S$VER + +HAL_PATH=../cisd/sprint_builds/openBIS +HAL_DIR=$HAL_PATH/$TODAY-$FULL_VER +echo "mkdir -p $HAL_DIR" | ssh -T hal +scp *.zip hal:$HAL_DIR + +scp openBIS-server-*.zip sprint-openbis:. +scp download-server-*.zip sprint-openbis:.