#!/bin/bash # The init of docker image; this starts postgres, upgrades DaCHS, and # runs some regression tests. # # Yes, this is running postgres and DaCHS in one container. This is about # integration testing, not deployment, so best practices go to hell. /usr/bin/pg_ctlcluster $PGVERSION main start while ! /usr/bin/pg_ctlcluster $PGVERSION main status > /dev/null; do sleep 5; echo "Waiting for database to come up" done apt-get -y update dachs serve start cd /var/gavo-inputs if [ -d rr ]; then cd rr svn update else svn checkout http://svn.ari.uni-heidelberg.de/svn/gavo/hdinputs/rr cd rr fi /bin/bash