Skip to content
Snippets Groups Projects
Commit 510d24a4 authored by felmer's avatar felmer
Browse files

LMS-478 rename 'openbis' -> 'openbis_all'

SVN: 8174
parent 98a80d0e
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="source/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/authentication"/>
<classpathentry combineaccessrules="false" kind="src" path="/bds"/>
<classpathentry combineaccessrules="false" kind="src" path="/common"/>
<classpathentry combineaccessrules="false" kind="src" path="/dataset_download"/>
<classpathentry combineaccessrules="false" kind="src" path="/dbmigration"/>
<classpathentry combineaccessrules="false" kind="src" path="/etlserver"/>
<classpathentry combineaccessrules="false" kind="src" path="/lims"/>
<classpathentry combineaccessrules="false" kind="src" path="/lims_base"/>
<classpathentry combineaccessrules="false" kind="src" path="/lims_webclient"/>
<classpathentry combineaccessrules="false" kind="src" path="/args4j"/>
<classpathentry kind="output" path="targets/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>openbis</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
<project name="openbis" default="dist" basedir="..">
<import file="../../build_resources/ant/build-common.xml" />
<property name="result.dir" value="${targets}/dist" />
<target name="dist">
<exec executable="ant" failonerror="true">
<arg value="-lib"/>
<arg value="../build_resources/lib/ecj.jar"/>
<arg value="-f"/>
<arg value="../lims_webclient/build/build.xml"/>
<arg value="dist"/>
</exec>
<copy todir="${result.dir}">
<fileset dir="../lims_webclient/${dist}"/>
</copy>
<exec executable="ant" failonerror="true">
<arg value="-lib"/>
<arg value="../build_resources/lib/ecj.jar"/>
<arg value="-f"/>
<arg value="../etlserver/build/build.xml"/>
<arg value="dist"/>
</exec>
<copy todir="${result.dir}">
<fileset dir="../etlserver/${dist}"/>
</copy>
<exec executable="ant" failonerror="true">
<arg value="-lib"/>
<arg value="../build_resources/lib/ecj.jar"/>
<arg value="-f"/>
<arg value="../dataset_download/build/build.xml"/>
<arg value="dist"/>
</exec>
<copy todir="${result.dir}">
<fileset dir="../dataset_download/${dist}"/>
</copy>
</target>
<target name="clean">
<delete dir="${dist}" />
<exec executable="ant" failonerror="true">
<arg value="-lib"/>
<arg value="../build_resources/lib/ecj.jar"/>
<arg value="-f"/>
<arg value="../lims_webclient/build/build.xml"/>
<arg value="clean"/>
</exec>
<exec executable="ant" failonerror="true">
<arg value="-lib"/>
<arg value="../build_resources/lib/ecj.jar"/>
<arg value="-f"/>
<arg value="../etlserver/build/build.xml"/>
<arg value="clean"/>
</exec>
<exec executable="ant" failonerror="true">
<arg value="-lib"/>
<arg value="../build_resources/lib/ecj.jar"/>
<arg value="-f"/>
<arg value="../dataset_download/build/build.xml"/>
<arg value="clean"/>
</exec>
</target>
</project>
\ No newline at end of file
#!/bin/bash
# Performs the sprint components installation.
# 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
echo Stopping the components...
./sprint/openBIS-server/apache-tomcat/bin/shutdown.sh
./sprint/download-server/download-service.sh stop
echo Making a database dump...
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
echo Installing openBIS server...
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
echo Installing download server...
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
echo Doing some cleaning...
cd
mv *.zip tmp
echo Done!
\ No newline at end of file
#!/bin/bash
# Tags, builds the software components, uploads them to sprint server
# and places a copy of them on the sprint server ready for installation.
#
# This script assumes that you have a SSH access on 'sprint-openbis.ethz.ch'
# and 'cisd-vesuvio.ethz.ch'. This is typically configured in the SSH config file.
if [ $# -lt 1 ]; then
echo "Usage: $0 <sprint number> [subversion]"
exit 1
fi
TODAY=`date "+%Y-%m-%d"`
VER=$1
SUBVER=0
if [ $2 ]; then
SUBVER=$2
fi
FULL_VER=S$VER.$SUBVER
SPRINT_SERVER=sprint-openbis.ethz.ch
CISD_SERVER=cisd-vesuvio.ethz.ch
SPRINT_INSTALL_SCRIPT=sprint_install.sh
svn checkout svn+ssh://source.systemsx.ch/repos/cisd/build_resources/trunk build_resources
cd build_resources
echo Tagging openBIS to $FULL_VER...
./tag_sprint.sh openbis $FULL_VER
echo Building openBIS...
./build.sh openbis $FULL_VER
echo Copying new openBIS components to \'$CISD_SERVER\'...
OPENBIS_PATH=/localhome/cisd/sprint_builds/openBIS
SPRINT_DIR=$OPENBIS_PATH/$TODAY-$FULL_VER
echo "mkdir -p $SPRINT_DIR" | ssh -T $CISD_SERVER
scp *.zip $CISD_SERVER:$SPRINT_DIR
echo Copying new openBIS components to \'$SPRINT_SERVER\'...
scp openBIS-server-*.zip $SPRINT_SERVER:.
scp download-server-*.zip $SPRINT_SERVER:.
# If sprint install script is present and executable, run it!
if [ -x $SPRINT_INSTALL_SCRIPT ]; then
echo Installing server remotely...
cat $SPRINT_INSTALL_SCRIPT | ssh -T $SPRINT_SERVER "cat > ~/$SPRINT_INSTALL_SCRIPT ; chmod 755 ~/$SPRINT_INSTALL_SCRIPT ; ~/$SPRINT_INSTALL_SCRIPT $VER ; rm -f ~/$SPRINT_INSTALL_SCRIPT"
fi
echo Done!
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment